Web Technology Questions

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 1935
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 1932
Q:

What are the ways in which attackers can infiltrate the system?

Answer

- Web servers can be infiltrated using the command shell by an attacker to read the HTML files that is getting transferred. 


- If the set-uid scripts are not proper and bad then the infiltration can happen by the attacker. 


- The processes are not given proper permissions so that the password can be changed by using the “passwd” command to change the password of the system.


- This also authenticates the user for accessing the system and the files on it containing the data. 


- The program that is used in the operating system doesn’t follow the principle of least privilege and lead to security issues.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1930
Q:

What is difference between HTML and HTML5?

Answer

The differences between HTML and HTML5 are:


- Document of HTML is very large as compare to the HTML5.


- Audio and Video tags are not present in HTML whereas HTML5 contains audio and video tags.


- Vector technology is not integral part of HTML whereas HTML5 Vector technology is the integral part of it.


- HTML supported by all old browsers whereas HTML5 is supported by new browser.


- In HTML web sockets are not available whereas in HTML5 Full duplex communication channel is present.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1928
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 1910
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 1898
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 1877
Q:

What needs to be taken into consideration to host a website?

Answer

- To host a website a platform needs to be decided using which the hosting can be made simpler. 


- The specification needs to be determined before hosting the website and choosing the hosting platform. 


- The choice of operating system needs to be clear in choosing the website hosting services and the resources that the particular hosting platform requires need to be known. 


- The web hosting platform requires lots of services that need to be decided before hosting the website on the web.


- The space and the cost need to be kept minimum and according to that the choice has to be made between hosted or shared platforms.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1864