Web Technology Questions

Q:

What does window.history object?

Answer

The window.history object can be written without the window prefix.
To protect the privacy of the users, there are limitations to how JavaScript can access this object.
Some methods:


    history.back() - same as clicking back in the browser
    history.forward() - same as clicking forward in the browser

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2439
Q:

What is JavaScript?

Answer

JavaScript is a scripting language most often used for client-side web development.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2413
Q:

What is the primary function of the Web browsers?

Answer

- Web browser functions are to provide the resources or information to the user when asked by them. 


- It processes the user inputs in the form of URL like https://www.google.com in the browser and allows the access to that page. 


- URL is used to identify the resources and fetch them from the server and displays it to the client. 


- It allows the user to interact with the web pages and dynamic content like surveys, forms, etc. 


- It also allows the user to navigate through the complete web page and see its source code in the HTML format. 


- It provides security to the data and the resources that are available on the web that is by using the secure methods.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2405
Q:

What is Contextual Selector ?

Answer

Contextual selector addresses specific occurrence of an element.
It is a string of individual selectors separated by white space (search pattern), where only the last element in the pattern is addressed providing it matches the specified contex.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

2 2404
Q:

Differentiate between localStorage and sessionStorage objects.

Answer

- localStorage object stores the data without an expiry date while sessionStorage object stores the data only for one session. 


- With localStorage object, data will not be deleted when the browser window is closed while the data is deleted when the browser window closes with sessionStorage objects.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2394
Q:

Which command displays memory usage in linux?

A) Top B) Free
C) Buffer D) Swap
 
Answer & Explanation Answer: B) Free

Explanation:

Free command displays memory usage in linux.

Report Error

View Answer Report Error Discuss

3 2377
Q:

What are the different types of components involved in URI?

Answer

URI is known as Uniform Resource Identifier as it identifies the resources requested by clients and fetches them from the server. 


The components that are used in URI are as follows:


- http: is the first thing that is used in a URL and it is used to tell what kind of resource that needs to be retrieved over the server.


 This includes the server details and it is itself a protocol known as Hypertext Transfer Protocol (HTTP) that is used to fetch the information. 


- Web browsers sometimes use the secure protocol that is represented using HTTPs used in case of secure transaction over the internet. 


- FTP: is also a protocol that is known as File Transfer Protocol that allows the transfer from a file from local computer to server

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2357
Q:

What is XML Namespace?

Answer

An XSL sheet or a document may have duplicate elements and attributes. Therefore, the XML namespaces define a way to distinguish between duplicate element types and attribute names.


An XML namespace is a collection of element type and attribute names. It is a URI due to which any element type or attribute name in an XML namespace can be uniquely identified. 


It consists of two parts : the name of the XML namespace and the local name.


e.g.: xmlns: h=”https://www.abc.com”


After this, you can write


<h:table>


……..


</h:table>


to associate the table with the declared namespace. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2340