Web Technology Questions

Q:

Text/Html is called the __________ of the page

A) content type B) MIME type
C) content type/MIME type D) None of these
 
Answer & Explanation Answer: C) content type/MIME type

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology - Technology

1 6278
Q:

How do we create a DHTML drop-down menu?

Answer

- In order to create a DHTML drop down menu we need JavaScript API. The API (Application Programming Interface) consists of core set of cross-browser JavaScript functions to make DHTML programming easy and quick. This API enables moving and hiding page elements as well as acts as getter and setter of page elements attributes.


- Second we define on image object and off image object and string containing the URL of the "off" version.


- Then we create the menu items, label items and sub-menu items. If we wish we can use images also.


- Then we need to define our own global variables that will be used by the menu. Using global goes against oops design but makes sharing data easier.


- Create the menubar object, adding the menu labels and writing menubars.


- Create menu object, adding menu items and writing menus.


- Hiding and displaying the menus and attaching stylesheet.

Report Error

View answer Workspace Report Error Discuss

5 6233
Q:

Explain about AngularJS boot process.

Answer

When the page is loaded in the browser, following action takes place:


HTML document is loaded into the browser, and evaluated by the browser. AngularJS JavaScript file is loaded; the angular global object is created. Next, JavaScript which registers controller functions is executed.


AngularJS scans through the HTML to look for AngularJS applications and views. Once view is located, it then connects that view to the corresponding controller function.


Then, AngularJS executes the controller functions. It then renders the views with data from the model populated by the controller. The page is ready.

Report Error

View answer Workspace Report Error Discuss

0 6108
Q:

What happens if the list-style-type property is used on a non-list element like a paragraph?

Answer

Here the property will be ignored without having any effect on the paragraph.

Report Error

View answer Workspace Report Error Discuss

3 6004
Q:

HTML language is a set of markup

A) Groups B) Attributes
C) Tags D) Sets
 
Answer & Explanation Answer: C) Tags

Explanation:

HTML language is a set of markup tags. The code used to specify the formatting are called tags. Markup languages are designed for the processing, definition and presentation of text. The language specifies code for formatting, both the layout and style, within a text file. 

 

HTML is an example of a markup language to improve the appearance of, and link text with data on the internet.

Report Error

View Answer Report Error Discuss

3 5931
Q:

How does Node.js prevents blocking code?

Answer

By providing callback function. Callback function gets called whenever corresponding event triggered.

Report Error

View answer Workspace Report Error Discuss

0 5812
Q:

Distinguish between Static vs. Dynamic HTML

Answer

- The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed.


- Static web pages cannot have database access but dynamic pages can be connected to database.


- Using static HTML no interactions persist between user and server but dynamic HTML has capability to interact with the user.


- Static HTML does not require server side coding but dynamic HTML requires server side coding.


- No animation, games can be developed using the static HTML but on the other hand dynamic HTML can perform this task.

Report Error

View answer Workspace Report Error Discuss

1 5561
Q:

Where are cookies actually stored on the hard disk?

Answer

This depends on the user's browser and OS.
In the case of Netscape with Windows OS,all the cookies are stored in a single file called

cookies.txt
c:\Program Files\Netscape\Users\username\cookies.txt
In the case of IE,each cookie is stored in a separate file namely username@website.txt.
c:\Windows\Cookies\username@Website.txt

Report Error

View answer Workspace Report Error Discuss

0 5145