The following DHTML MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of DHTML. We encourage you to answer these multiple-choice questions to assess your proficiency.
Please continue by scrolling down.
A. Dynamic HTML
B. Digital HTML
C. Data-Binding HTML
D. Document HTML
A. 3
B. 0
C. 2
D. None of these
A. It is used to bind the particular column with the database value when the Autogenerate column of the binding control is false
B. It is treated as server side code in scripting languages
C. It is used for accessing any server side variable into the HTML (in .aspx) page
D. It is used for special HTML tags
A. capture = "false" will cause doThis() to return null when onClick() event is detected at the capture phase
B. capture = "false" will cause doThis() to be executed when onClick() event is detected at the capture phase
C. capture = "true" will cause doThis() to be executed when onClick() event is detected at the bubble phase
D. capture = "true" will cause doThis() to be executed when onClick() event is detected at the capture phase
A. AJAX
B. JavaScript
C. CSS
D. CSS and JavaScript
A. Create an element with id = "intro" and return that element
B. Returns false
C. Returns null
D. Returns 0
A. onmouseup
B. ondblclick
C. oninit
D. onclick
A. True
B. False
A. document.getElementsByClassName('person')[0].style.display = 'none';
B. All three codes will not display the text “Invisible Man”
C. document.getElementsByTagName('div')[0].style.display = 'none';
D. document.getElementById('name').style.display = 'none';
A. Allows multiple common actions to be handled centrally
B. Reduces the number of code changes required to update a document
C. Reduces the amount of overall code in the Web page
D. All are valid reasons
A. JavaScript
B. HTML
C. CSS
D. None of these
A. onMouseDown
B. onMouseOver
C. onRun
D. onMouseOut
A. It automatically and dynamically generate tables in your document
B. All are true
C. Lets you easily bind individual elements in your document to data from another source
D. It helps to bind the fields in a form to fields in a record
A. JavaScript
B. CSS
C. HTML
D. three choices are DHTML technology
A. True
B. False
A. False
B. True
A. The height of the layer
B. The width of the layer
C. The name of the layer
D. The external html document contained inside the layer
A. False
B. True
A. All three choices could be used
B. element.offsetTop
C. element.clientHeight
D. window.setTimeout()
A. Simple Animation
B. Data Entry
C. Input Validation
D. Rollover Buttons
A. <horizontal>
B. <move>
C. <marquee>
D. <scroll>
A. VB
B. Conventional HTML
C. DOM
D. Absolute Positionin
A. It is treated as server side code in scripting languages
B. It is used to bind the particular column with the database value when the Autogenerate column of the binding control is false
C. It is treated as code comments
D. It is used for special HTML tags
A. It is used for moving nodes
B. It inserts the new node at the beginning of the list of children of the node
C. It inserts the new node to the end of the list of children of the node
D. It inserts the new node but not necessarily at the beginning or end of list of children of the node
A. 1
B. 3
C. 2
D. 4
A. Server
B. Client
C. Neither Client nor Server
D. Both Client and Server
A. <link>
B. <stylesheet>
C. <css>
D. <text>
A. JavaScript, DOM and CSS
B. CSS
C. JavaScript
D. DOM
A. blue
B. yellow
C. red
D. green
A. document.getElementById('id').innerHtml = Date();
B. document.getElementById('id').innerTEXT= Date();
C. document.getElementById('id').innerText= Date();
D. document.getElementById('id').innerHTML = Date();
A. Both submit and reset event
B. Only submit event
C. Neither submit nor reset
D. Only reset event
A. the function testFunc() will run as soon as user defined DOMContentLoaded() function returns
B. The function testFunc() will never be invoked
C. The function testFunc() will run as soon as the DOM for the document has fully initialized
D. The function testFunc() will always be invoked
A. Neither by returning "false" from the event handler nor by setting window.event.returnValue to "false
B. Only by setting window.event.returnValue to "false and NOT by returning "false" from the event handler
C. Either by returning "false" from the event handler or by setting window.event.returnValue to "false
D. Only by returning "false" from the event handler and NOT by setting window.event.returnValue to "false
A. copyChild(node)
B. cloneChild(node)
C. copy(node)
D. deepCopy(node)
A. HTML is markup language while DHTML is not a language
B. HTML cannot have server side code while DHTML may have server side code
C. HTML cannot connect to database while DHTML can connect to database
D. All three statements are true
A. "document" refers to the actual page
B. "document" tag is under the <HTML> tag
C. DOM has a hierarchical structure
D. <HTML> tag is under the "document"
A. load()
B. GetXML()
C. LoadXML()
D. ActiveXObject()
A. last child of the referenced node
B. before the referenced node
C. after the referenced node
D. first child of the referenced node
A. stopPropagation()
B. fireEvent()
C. stopEvent()
D. hault()
A. True
B. False
A. DIV tag is used as a paragraph break as it creates a logical division of the document in which it is applied
B. DIV is used to select a block of text so that one can apply styles to it
C. DIV is used to select inline text
D. DIV has ALIGN attribute in it
A. font-size is a DOM property and fontSize is a CSS attribute
B. font-size is a CSS property and fontSize is a DOM attribute
C. font-size is a CSS attribute and fontSize is a DOM property
D. font-size is a DOM attribute and fontSize is a CSS property
A. autocomplete=”false”
B. complete=”false”
C. autocomplete=”off”
D. complete=”off”
A. mobile
B. all
C. screen
D. print
A. SPAN has ALIGN attribute in it
B. SPAN simply applies the same style and alignment as specified
C. SPAN is used to select inline text and lets users to apply styles to it
D. SPAN is used to apply styles inline.
A. DHTML is NOT a scripting language
B. DHTML is a collection of features that together, enable your web page to be dynamic
C. DHTML is a scripting language
D. DHTML is the combination of several built-in browser features in fourth generation browsers
A. DHTML does not allows scripting languages to change variables in a web page's definition language
B. In DHTML there may not be any interaction between the client and server after the page is loaded
C. DHTML page is request/reload-based
D. DHTML allows scripting languages to change variables in a web page's definition language
A. Total size of all external style sheets
B. Length of inline style sheet
C. Size of first external style sheet
D. Total # of external style sheets
A. DOM is a language dependent convention
B. DOM is a language-independent convention
C. DOM is a cross-platform
D. Objects in the DOM tree may be addressed and manipulated by using methods on the objects
A. 1
B. depends on the browser
C. 0
D. 2