Web Technology Questions

Q:

Differentiate different types of Doctypes from one another.

Answer

Doctype helps the web browser to correctly render the web pages. There are different types of Doctype that are available and they are as follows:


=> Strict Doctype: it consists of all the HTML elements and it is also known as DTD (Document type definition) but it doesn't include the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also not allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"


"https://www.w3.org/TR/html4/strict.dtd">


=> Transitional Doctype: it consists of all the HTML elements and attributes. It is also known as DTD (Document type definition). It includes the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also not allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


"https://www.w3.org/TR/html4/loose.dtd">


=> Frameset Doctype: it consists of all the HTML elements and attributes. It is also known as DTD (Document type definition). It includes the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"


"https://www.w3.org/TR/html4/frameset.dtd">

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1963
Q:

What is a Node.js?

Answer

Node.js is a framework for web applications built on Google Chrome's JavaScript Engine(V8 Engine).


Node.js is comes with runtime environment on which a cript based on javascript can be interpreted and executed (It is analogus to JVM to JAVA byte code). This runtime environment allows to execute a JavaScript code on any machine outside a browser. Because of this runtime of Node.js, JavaScript is now can be executed on server also.


Node.js is provides a rich library of various javascript modules which eases the developement of web application using Node.js to greater extents.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

0 1963
Q:

What is Shift() method in Javascript?

Answer

-The shift() method is similar as the pop() method but the difference is that Shift method works at the beginning of the array. 


-The shift() method take the first element off of the given array and returns it. The array on which is called is then altered.


For example


var myarray = ["apple ", "banana ", "mango "]; 


console.log(myarray.shift());


console.log(myarray);


we get the following console output:


apple


["banana ", "mango "];


 


When we call shift() on an empty array, it will return an undefined value.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1943
Q:

How to insert Javascript in HTML?

Answer

We can insert JavaScript in HTML using <Script tag>. JavaScript can be enclosed in <script type = text/javascript> and ending with </script>.


Example: 


<html> 


  <body> 


        <script type="text/javascript"> 


               ...JavaScript….


         </script> 


   </body> 


</html>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1940
Q:

What is the difference between "==" and "==="?

Answer

"==" checks equality only,
"===" checks for equality as well as the type.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1917
Q:

What is a Manifest file?

Answer

A Manifest file is a simple text file that tells the browser what to cache and what not to cache. 


There are three sections of a Manifest file:


i.) CACHE MANIFEST - Files listed here are cached after they are downloaded for the first time. 


ii.) NETWORK - Files listed here require a connection to the server, and are never cached


iii.) FALLBACK - Files listed here specify fallback pages if a page is inaccessible

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1905
Q:

What is the difference between Unix and Windows shared hosting services?

Answer

There are two major platforms that providing hosting and servers to host on. The differences between them are as follows:


- Unix are more efficient in performing offsite and onsite, whereas windows doesn’t provide very good efficiency to work with. 


- Unix provide lower hosting cost for the website using the high bandwidth, whereas windows take more resources and have the cost higher for the storage. 


- Unix is better for the websites that are static and includes HTML and graphics, whereas Windows is used for heavy websites and having more requirements. 


- Unix supports the scripting languages like PHP and databases like MySQL and other related categories, whereas Windows supports IIS, coldfusion and big applications that take more space.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1889
Q:

What are the ways through which the files can be transferred to server?

Answer

- Files can be transferred to the server by using the FTP protocol also known as File Transfer Protocol. 


- FTP is used as a standard network protocol that transfers the file from one computer to another computer using the TCP protocol network.


- This uploads the pages and other documents that are stored in private disk to the public web hosting server. 


- FTP is used on a client server architecture that allows different controls and data connections between the client and the server. 


- FTP uses clear-text sign in protocol that allows the client to use the user name and password for authentication purpose.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1876