Assessment - MCQS
Assessment - MCQS
Assessment - MCQS
12. What is the correct HTML for referring to an external style sheet?
A. <link rel="stylesheet" type="text/css" href="mystyle.css">
B. <stylesheet>mystyle.css</stylesheet>
C. <style src="mystyle.css">
22. Which class is used to create a big box for calling extra attention?
A. .jumbotron B. .container
C. .big-box D. There is no such class
28. Which class can be used to float an element to the right of the page?
A. .float-right B. .float-start
C. .float-end D. .float-r
31. What is the correct JavaScript syntax to change the content of the HTML
element below?
<p id="demo">This is a demonstration.</p>
35. Which event occurs when the user clicks on an HTML element?
A. Onclick B. Onmouseclick
C. onmouseonver D. onmousechange
36. How do you declare a JavaScript variable?
A. var carName; B. v carName;
B. variable carName
37. The external JavaScript file must contain the <script> tag.
A. False B. True
39. What is the correct JavaScript syntax for opening a new window called "w2" ?
A. w2 = window.new("http://www.w3schools.com");
B. w2 = window.open("http://www.w3schools.com");