TCS ASPIRE WEB TECHNOLOGY QUIZ AND ANSWER 2014

  1. Question 1 of 10 10.0 Points
  2. Which of the following sequences of HTML tags is correct?
  3. A. <html><head><title></<title><body></body></head></html>
  4. B. <html><title></<title><head></head><body></body></html>
  5. C. <html><head></head><body><title></<title></body></html>
  6. D. <html><head><title></<title></head><body></body></html>
  7. Answer Key: D
  8. Feedback: <html><head><title></<title></head><body></body></html>

  9. Question 2 of 10 10.0 Points
  10. What does CSS stand for?
  11. A. Cascading Style Sheets
  12. B. Common Style Sheets
  13. C. Central Style Sheets
  14. D. Control Style Sheets
  15. Answer Key: A

  16. Question 3 of 10 10.0 Points
  17. How would you define id selector?
  18. A. None of the above
  19. B. id selector as #
  20. C. id selector as @
  21. D. id selector as $
  22. Answer Key: B

  23. Question 4 of 10 10.0 Points
  24. In an HTML document, which is the correct place to refer to an external style sheet?
  25. A. In the <head> section
  26. B. At the end of the document
  27. C. At the beginning of the document
  28. D. In the <body> section
  29. Answer Key: A

  30. Question 5 of 10 10.0 Points
  31. Which of the following tags would you use to insert JavaScript in an HTML page?
  32. A. <script type=”text/javascript”></script>
  33. B. <HTMLScript type=”text/javascript”></HTMLScript>
  34. C. <JScript type=”text/javascript”></JScript>
  35. D. <JavaScript type=”text/javascript”></JavaScript>
  36. Answer Key: A

  37. Question 6 of 10 10.0 Points
  38. The ——– JavaScript is also known as server-side JavaScript.
  39. A. Navigator
  40. B. Microsoft
  41. C. LiveWire
  42. D. Native
  43. Answer Key: C

  44. Question 7 of 10 10.0 Points
  45. The following code would allow you to set background with CSS:
  46. <style type=”text/css”>
  47. body {background-color: yellow}
  48. </style>
  49. True
  50. False
  51. Answer Key: True

  52. Question 8 of 10 10.0 Points
  53. If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
  54. A. para1.firstChild.nodeValue= “New Text”;
  55. B. para1.nodeValue=”New Text”;
  56. C. “New Text”?
  57. D. para1.value=”New Text”;
  58. Answer Key: D

  59. Question 9 of 10 10.0 Points
  60. How does JavaScript store date in a date object?
  61. A. None of the above
  62. B. The number of seconds since Netscape’s public stock offering.
  63. C. The number of milliseconds since January 1st, 1970
  64. D. The number of days since January 1st, 1900
  65. Answer Key: C

  66. Question 10 of 10 10.0 Points
  67. How would you define First-line pseudo-element in CSS?
  68. A. None of the above
  69. B. selector:pseudo-elements {property: values}
  70. C. select:pseudo-element {property: value}
  71. D. selector:pseudo-element {property: value}
  72. Answer Key: D




  73. Question 1 of 10 10.0 Points
  74. What does CSS define in HTML?
  75. A. How to display HTML elements
  76. B. How to send HTML elements
  77. C. How to made HTML elements
  78. D. How to save HTML elements Reset Selection

  79. Question 2 of 10 10.0 Points
  80. Which of the following HTML tags is used to define an internal style sheet?
  81. A. <script>
  82. B. <style>
  83. C. <css> Reset Selection

  84. Question 3 of 10 10.0 Points
  85. What does CSS stand for?
  86. A. Common Style Sheets
  87. B. Central Style Sheets
  88. C. Cascading Style Sheets
  89. D. Control Style Sheets
  90. Question 4 of 10 10.0 Points
  91. Which of the following event fires when the form element loses the focus: <button>, <input>, <label>, <select>, <textarea>?
  92. A. onblur
  93. B. ondblclick
  94. C. onclick
  95. D. onfocus Reset Selection

  96. Question 5 of 10 10.0 Points
  97. Which of the following popup boxes would you use when you want a value from the user before opening a page?
  98. A. alert(“Write some text here”)
  99. B. prompt(“Write here some text”,”Write default value here”)
  100. C. confirm(“Write some text here”) Reset Selection

  101. Question 6 of 10 10.0 Points
  102. Among the following optionsl, which is the correct syntax as per w3c standard?
  103. a.<br><p>Welcome to tcs</br></p>
  104. b.<p>Welcome to tcs</p>
  105. c.<br><p>Welcome to tcs</p></br>
  106. d.<b><p>Welcome to tcs</p></b>
  107. e.<b><p>Welcome to tcs</b></p>
  108. A. a,e
  109. B. c,e
  110. C. b,d
  111. D. a,c
  112. If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
  113. A. para1.firstChild.nodeValue= “New Text”;
  114. B. para1.nodeValue=”New Text”;
  115. C. para1.value=”New Text”;
  116. D. “New Text”? Reset Selection

  117. Question 8 of 10 10.0 Points
  118. Among the following options, select the command that you can use to link a page with an HTML page?
  119. A. <a attach=\”page.htm\” ></a>
  120. B. <a connect=\”page.htm\” ></a>
  121. C. <a href=\”page.htm\”?phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88acea2d2a393515f6bf38f2 ></a>
  122. D. <a link=\”page.htm\” ></a>

  123. Question 10 of 10 10.0 Points
  124. Why would you use variables in JavaScript programs?
  125. A. For Varying randomly
  126. B. For storing numbers, dates, or other values
  127. C. For causing high-school algebra flashbacks
  128. D. None

  129. Question 9 of 10 10.0 Points
  130. Which of the following tags would you use to insert JavaScript in an HTML page?
  131. A. <script type=”text/javascript”></script>
  132. B. <HTMLScript type=”text/javascript”></HTMLScript>
  133. C. <JavaScript type=”text/javascript”></JavaScript>
  134. D. <JScript type=”text/javascript”></JScript>
  135. Q: You used CSS class into your html, but divided your page without break line. Which of following would you have to use?
  136. A. <div> </div>
  137. B. None
  138. C. <p>
  139. D. <span></span>
  140. In an HTML document, which is the correct place to refer to an external style sheet?
  141. A. In the <body> section
  142. B. In the <head> section
  143. C. At the end of the document
  144. D. At the beginning

    IF you have More Question Share in Comment

No comments:

Post a Comment