Web Technology Questions

Q:

How do you submit a form using Javascript?

Answer

Use document.forms[0].submit();

(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2081
Q:

What is the importance of Doctype in HTML?

Answer

Doctype tag is not a HTML tag, it is just an instruction that is passed to the web browser to check for the information that is being provided by the markup language in which the page is written. Doctype is sometimes referred as Document type definition (DTD) that describes some rules that has to be followed while writing the markup language so to make the web browser understand the language and the content correctly. Doctype is very important to be placed in the beginning of the HTML and before the <HTML> tag to allow easy rendering of the pages that are used.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

1 2058
Q:

What is the Advantage of AngularJS?

Answer

These are the advantages of AngularJS:



  • AngularJS provides capability to form Single Page Application in a very clean and maintainable method.

  • AngularJS provides data binding capability to HTML therefore giving user a rich and responsive experience.

  • AngularJS code is unit testable.

  • AngularJS uses dependency injection and build use of separation of concerns.

  • AngularJS provides reusable components.

  • AngularJS helps developer to writes less code and gets more functionality.

  • AngularJS, views are pure HTML pages, and controllers written in JavaScript do the business process.

  • AngularJS applications will run on all major browsers and good phones together with android and iOS based mostly phones/tablets.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2036
Q:

What is the difference between XML and HTML?

A) HTML is used for exchanging data, XML is not B) XML is used for exchanging data, HTML is not
C) HTML can have user defined tags, XML cannot D) XML can have user defined tags, HTML cannot
 
Answer & Explanation Answer: B) XML is used for exchanging data, HTML is not

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

0 2030
Q:

What are the reasons for slow loading of the web page?

Answer

- The web pages that are loading slowly might be using heavy scripts or might be getting loaded on an overloaded server. 


- If the content like flash is used then the web page performs really slowly in comparison to the normal pages that get created. 


- If the caching is inactive on the web browsers and the same web page is getting loaded again and again then the performance get degraded.


- Web pages load slowly due to the content on that page as if it is text it loads faster then the site that is made up of large photographs. 


- It takes longer time for a picture to get rendered and the transmission time also remains higher then the text.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1965
Q:

How to get the contents of an input box using Javascript?

Answer

Use the "value" property.
var myValue = window.document.getElementById("MyTextBox").value;

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1964
Q:

What is the difference between Silverlight 1.0 and 2?

Answer

Silverlight 1 is purely AJAX and JavaScript based. All the code has to be written in JavaScript and XAML. 


 Silverlight 2 supports managed code. When the Silverlight 2 runtime is installed, it installs a limited version of the .NET runtime on the client machine

Report Error

View answer Workspace Report Error Discuss

0 1948
Q:

What is the Fail-safe approach?

Answer

- Fail-safe approach defines the level that divides the security such that it is safe even in case the system is failed.


- The fail safe approach doesn’t allow an attacker to take the advantage by breaking in the system and crashes out.


- This approach allows the web server to perform the routines even if the system runs out of the memory in case of any attack. 


- The system in attacks doesn’t skip the access to the control check or it doesn’t skip serving any document requested. 


- Fail safe approach can force the web server to run of the memory and have a DoS attack.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1905