Wednesday, December 16, 2015

DHTML test answers of 2016.

Find Complete and recently updated Correct Question and answers of DHTML. All Answers updated regularly with new questions. Upwork DHTML test answers of 2016.



Question:* What does DHTML Stand For?

Answer: • Dynamic HTML

Question:* Which of the following functions copies and returns a node?

Answer: • cloneChild(node)

Question:* Which of the following is not a DOM Mouse Event?

Answer: • oninit

Question:* Which of the following code will display the text “Invisible Man”? <div id="name" class="person">The Invisible Man</div>

Answer: • All three codes will not display the text “Invisible Man”

Question:* Which of the following correctly describes Layer attribute "src"?

Answer: • The external html document contained inside the layer

Question:* Which of the following is TRUE about data binding feature of DHTML?

Answer: • All are true

Question:* Which of the following is an INVALID event?

Answer: • onRun

Question:* Which of the following is a DHTML technology?

Answer: • three choices are DHTML technology

Question:* Which DHTML technology does the following code utilize? document.write(Date());

Answer: • JavaScript

Question:* True or False. CSS supports child selector.

Answer: • True

Question:* True or False. DHTML can be used in conjunction with AJAX.

Answer: • True

Question:* True or False. DHTML can be used in conjunction with HTML5.

Answer: • True

Question:* True or False? DHTML is a single technology.

Answer: • False

Question:* Event bubbling is useful because of which of the following reasons?

Answer: • All are valid reasons

Question:* Which of the following is not a VALID component of DHTML?

Answer: • VB

Question:* What kind of scripting language is DHTML?

Answer: • Client

Question:* Which of the following tags can be used for moving text Up to down or left ot right or vise versa?

Answer: • <marquee>

Question:* Which of the following is TRUE about code written in <% %>?

Answer: • It is treated as server side code in scripting languages

Question:* Which of the following is not a typical use of DHTML?

Answer: • Data Entry

Question:* Which of the following is TRUE about appendChild(newNode)?

Answer: • It inserts the new node to the end of the list of children of the node

Question:* Which of the following tags can be used to refer a .css file in a web page?

Answer: • <link>

Question:* What does document.getElementById("intro") function returns if "intro" does not exist?

Answer: • Returns null

Question:* Which of the following properties/methods would you use to animate a div section moving across the screen?

Answer: • All three choices could be used

Question:* Which of the following is an INVALID nodeType?

Answer: • 4

Question:* Which DHTML technology does the following code utilize? document.getElementById('id').style.color = 'blue';

Answer: • JavaScript, DOM and CSS

Question:* What is the color of “Rainbow” in the following code? <style> div {color:blue;} </style> <div id="Rainbow" color="green" style="color:red;">Hello World</div> <script> document.getElementById('Rainbow').style.color = 'yellow'; </script>

Answer: • yellow

Question:* Which of the following code will reliably display the current date in most major browsers?

Answer: • document.getElementById('id').innerHTML = Date();

Question:* Which of the following is NOT TRUE about DOM

Answer: • "document" tag is under the <HTML> tag

Question:* What technology does DHTML use to produce dynamic content?

Answer: • CSS and JavaScript

Question:* Which of the following will cancel the default action of onclick event in IE?

Answer: • Either by returning "false" from the event handler or by setting window.event.returnValue to "false

Question:* Which of the following is TRUE about function : document.addEventListener("DOMContentLoaded", testFunc, false)?

Answer: • The function testFunc() will run as soon as the DOM for the document has fully initialized

Question:* What value is displayed in the following code? <div id="id">0</div> <script> document.getElementById('id').innerHTML = 1 document.getElementsByTagName('div').innerHTML = 2 document.getElementsByTagName('div')[0].innerHTML = 3 </script>

Answer: • 3

Question:* Which of the following events do all Forms have by default?

Answer: • Both submit and reset event

Question:* True or False? JQuery is a DHTML technology.

Answer: • False

Question:* Which of the following functions can be used to stop the event from traversing the rest of the document?

Answer: • stopPropagation()

Question:* Which of the following is true about the function : object.addEventListener(click, doThis, capture)?

Answer: • capture = "true" will cause doThis() to be executed when onClick() event is detected at the capture phase

Question:* Which statement about the difference between DHTML and HTML is true?

Answer: • All three statements are true

Question:* Which of the following is not a CSS media type?

Answer: • mobile

Question:* Which of the following is FALSE about DIV?

Answer: • DIV is used to select inline text

Question:* What is the child object appended in the appendChild() method?

Answer: • last child of the referenced node

Question:* Which of the following is a valid way to restrict autocomplete of a form?

Answer: • autocomplete=”off”

Question:* Which of the following is NOT TRUE about DHTML?

Answer: • DHTML is a scripting language

Question:* Which of the following code will flicker the text?

Answer: • <div id='flicker'>Flicker</div> <script> function toggle() { setInterval(function() { var elm = document.getElementById('flicker'); if (elm.style.display == 'none&

Question:* Which of the following function is used for retrieving a XML file in IE5+?

Answer: • ActiveXObject()

Question:* What is the difference between font-size and fontSize?

Answer: • font-size is a CSS property and fontSize is a DOM attribute

Question:* Which of the following is FALSE about addEventListener?

Answer: • The first argument accepts the function to occur on the event

Question:* Which of the following is TRUE about code written in <%= %>?

Answer: • It is used for accessing any server side variable into the HTML (in .aspx) page

Question:* Which javascipt elements allow control in DHTML?

Answer: • HTML element

Question:* Which of the following is FALSE about SPAN?

Answer: • SPAN has ALIGN attribute in it

Question:* Which of the following is TRUE about cancelling event bubbling and event default action?

Answer: • Canceling an event's bubbling doesn't cancel its default action

Question:* Which of the following is FALSE about DOM?

Answer: • DOM is a language dependent convention

Question:* What does the Node.nodeType property returns?

Answer: • an integer representing the type of the node

Question:* Which of the following is FALSE about DHTML?

Answer: • DHTML does not allows scripting languages to change variables in a web page's definition language

Question:* Which of the following is an INVALID method for accessing HTML attributes using the DOM?

Answer: • addAttribute()

Question:* Which of the following is NOT a way to apply css to a web page?

Answer: • None of these are ways to apply css to a web page.

Question:* Which of the follow link will trigger an alert message that displays ‘myID’?

Answer: • <a id="myID" href="#" onclick="myFunc(this)" />click</a>

Question:* What statement about the marquee tag is false?

Answer: • works only on text elements

Question:* Which of the following function is used for restricting events to propogate to parent in IE?

Answer: • window.event.cancelBubble

Question:* What does the function "document.styleSheets.length" returns?

Answer: • Total # of external style sheets

Question:* True or False? DHTML is a predecessor of HTML5.

Answer: • False

Question:* True or False. The appendChild() method can be used to move an element from one element to another.

Answer: • True

Question:* What is the difference between DOM Node and Element?

Answer: • Node is the parent type of Element

Question:* What is the correct way to access a parent node?

Answer: • element.parentNode

Question:* What does document.body.nodeType returns?

Answer: • 1

Question:* What does element.childNodes return?

Answer: • a nodeList of child nodes

Question:* What is the event name which gets triggered when the submit button is pressed on the form?

Answer: • onClick

Question:* What is the color of “Rainbow” in the following code? <style> div {color:blue;} </style> <script> document.getElementById('id').style.color = 'yellow'; </script> <div id="id" color="green" style="color:red;">Rainbow</div>

Answer: • red

Question:* What value is displayed in the following code? <div id="id">0</div> <script> document.getElementById('id').innerText = 1 document.getElementsByTagName('div').innerText = 2 document.getElementsByTagName('div')[0].innerText = 3

Answer: • depends on the browser

Question:* What is the color of “Rainbow” in the following code? <style> div {color:blue !important;} </style> <div id="id" color="green" style="color:red !important;">Rainbow</div> <script> document.getElementById('id').style.color = 'yellow !important'; </script>

Answer: • red

Question:* Which of the following attributes is not involved in layer?

Answer: • align

Question:* Which of the following is not a DOM Event Property?

Answer: • name

Question:* Which of the following is TRUE about replaceChild(Node1, Node2)?

Answer: • Replace Node2 with Node1

Question:* Which of the following has the higest priority in CSS?

Answer: • user defined

Question:* Which of the following is not a DHTML technology?

Answer: • AJAX

Question:* Which of the following is TRUE about iFrame?

Answer: • iframe is used for creating an inline or floating frame

Question:* Which of the following tags checks the nested body content of a tag and determine whether the specified value is an appropriate substring of the requested variable?

Answer: • <logic>

Question:* Which of the following code will flicker the text?

Answer: • <div id='flicker'>Flicker</div> <script> function toggle() { setInterval(function() { var elm = document.getElementById('flicker'); if (elm.style.display == 'none&



No comments:

HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers