Web Technology Questions

Q:

How to Accessing Elements using javascript?

Answer

The elements of JavaScript are accessed by their names. By default the browser is accessed by the element ‘windows’ and the page by ‘document’. The corresponding element has user defined names for forms and its elements. For example


var pwd = windows.document.frmLogin.password.value;


assigns the value of the password field of the form fromLogin in the current document, where password is the name of the element and frmLogin is the name of the form. Like wise any form element is accessed.

Report Error

View answer Workspace Report Error Discuss

0 1620
Q:

What are the principles in providing the security for the computer programs?

Answer

- The principle of least privilege is used to provide more security to the computer programs. 


- The principle allows the designing of the program such that any unauthorized access is not allowed and only the person who owns the program will be able to access it. 


- The services provided should be able to access only those products that need the services. 


- Web servers that are involved in responding the queries of the web users provide only accessing to the HTML files that will serve the purpose of the programs. 


- Computer programs should be made such that it provides secure features of logging into the program with proper authentication.

Report Error

View answer Workspace Report Error Discuss

0 1619
Q:

What is Web Server?

Answer

Web server handles client side and server side validations and helps to deliver web content that can be accessed through the Internet protocols.


Examples:


Microsoft IIS (Internet Information Service)


Apache web server from Apache


Java web server


Pramathi web server etc...

Report Error

View answer Workspace Report Error Discuss

0 1619
Q:

Where are cookies actually stored on the hard disk?

Answer

The storage of cookies on the hard disk depends on OS and the browser. The Netscape navigator on Windows, the file cookies.txt contains all the cookies. The path is :


c:\Program Files\Netscape\Users\username\cookies.txt


 


The Internet Explorer stores the cookies on a file by name username@website.txt is


c:\Windows\Cookies\username@Website.txt

Report Error

View answer Workspace Report Error Discuss

0 1619
Q:

What is the use of providing web hosting services?

Answer

- Web hosting services provide internet hosting and its services that provide organization to build the websites. 


- The web hosting services also allow the individuals to access the websites through the World Wide Web. 


- Web hosting provides the space to put their content and allow the clients to provide the Internet connectivity. 


- It provides the data center that allows the use of higher space and connectivity properties for the Internet users. 


- It provides tools to allow the website to run on the servers and easily accessible from the outside world using the browser.

Report Error

View answer Workspace Report Error Discuss

0 1616
Q:

Which method is used to draw an image on the canvas?

Answer

drawImage(image,x,y) method is used to draw an image on the canvas.

Report Error

View answer Workspace Report Error Discuss

0 1614
Q:

What is the difference between class selector and ID selector?

Answer

- Class selector can be given to an overall block. This is sometimes termed as block element as well, whereas ID selector identifies a unique name and a style for a specific element. 


- ID selector declares the style for only one particular element which can be differentiated from other element, whereas Class selector is being given for the whole complete block.

Report Error

View answer Workspace Report Error Discuss

0 1611
Q:

What is the use of IP based hosting?

Answer

The web hosting on the server can be accomplished by using the IP based hosting that provides resources and services as follows:


- IP based hosting provides dedicated IPs that consists of virtual hosts and having the different IP address. 


- Web server is configured with different and multiple physical network interfaces using the same physical interface. 


- Web server uses this IP address to connect the client with the server to determine the web site that provides the client a view of it. 


- IP addresses provide the resources that are required in order to use the SSL certificates and other resources rather than shared certificate.

Report Error

View answer Workspace Report Error Discuss

0 1608