0% found this document useful (0 votes)
19 views6 pages

Assessment - MCQS

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 6

Course Name: Web Development (Front End)

Total Questions: 40 Date: _______________


Note: Check the correct option of each question.

1. Who is making the Web standards?


A. Google B. Mozilla
C. Microsoft D. The World Wide Web Consortium

2. What is the correct HTML for adding a background color?


A. <background>yellow</background>
B. <body style="background-color:yellow;">
C. <body bg="yellow">

3. What is the correct HTML for creating a hyperlink?


A. <a href="http://www.w3schools.com">W3Schools</a>
B. <a>http://www.w3schools.com</a>
C. <a name="http://www.w3schools.com">W3Schools.com</a>
D. <a url="http://www.w3schools.com">W3Schools.com</a>

4. Which character is used to indicate an end tag?


A. ^ B. * C. / D. ^

5. Which of these elements are all <table> elements?


A. <table><head><tfoot> B. <table><tr><tt>
C. <table><tr><td> D. <thead><body><tr>

6. What is the correct HTML for inserting an image?


A. <img src="image.gif" alt="MyImage">
B. <img href="image.gif" alt="MyImage">
C. <img alt="MyImage">image.gif</img>
D. <image src="image.gif" alt="MyImage">

7. Which doctype is correct for HTML5?


A. <!DOCTYPE HTML5>
B. <!DOCTYPE html>
C. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN"
"http://www.w3.org/TR/html5/strict.dtd">

8. In HTML, you can embed SVG elements?


A. False B. False

9. Graphics defined by SVG is in which format?


A. HTML B. CSS C. XML

10. Which input type defines a slider control?


D. Search B. Range C. Control D. Slider

11. In HTML, what does the <aside> element define?


A. The ASCII character-set; to send information between computers on the
Internet
B. A navigation list to be shown at the left side of the page
C. Content aside from the page content

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">

13. Which HTML tag is used to define an internal style sheet?


A. <style> B. <script> C. <css>

14. Which CSS property controls the text size?


A. font-style B. text-size
C. text-stye D. font-size
15. When using the padding property; are you allowed to use negative values?
A. Yes B. No

16. How do you select all p elements inside a div element?


A. div + p B. div.p C. div p

17. What is the default value of the position property?


A. Relative B. Static
C. Absolue D. Fixed

18. Which contextual class is used to create an orange text color?


A. .bg-warning B. .txt-orange
C. .text-warning D. .txt-warning

19. The Bootstrap grid system is based on how many columns?


A. 12 B. 6 C. 3 D. 9

20. Which class shapes an image to a circle?


A. .img-rounded B. .img-round
C. .rounded-circle D. .img-circle

21. Which component is used to cycle through elements, like a slideshow?


A. Orbit B. Carousel
C. Slideshow D. Scrollspy

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

23. Which class is used to create a loader?


A. .spinner-border B. .spinner
C. .loader D. .spinner-loader
24. Which class adds a heading to a card?
A. .card-footer B. .card-heading
C. .card-head D. .card-header

25. Which class is used to create a vertical navigation bar?


A. .navbar-vertical
B. .navbar navbar-vertical
C. .navbar-inverse
D. .navbar

26. Which contextual class indicates a positive action?


A. .bg-info B. .bg-primary
C. .bg-success D. .bg-warning

27. A standard navigation tab is created with:


A. <ul class="nav tabs">
B. <ul class="nav nav-navbar">
C. <ul class="navigation-tabs">
D. <ul class="nav nav-tabs">

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

29. Inside which HTML element do we put the JavaScript?


A. <javascript> B. <scripting>
C. <js> D. <script>
30. How does a WHILE loop start?

A. while i = 1 to 10 B. while (i <= 10)


B. while (i <= 10; i++)

31. What is the correct JavaScript syntax to change the content of the HTML
element below?
<p id="demo">This is a demonstration.</p>

A. #demo.innerHTML = "Hello World!";


B. document.getElementByName("p").innerHTML = "Hello World!";
C. document.getElementById("demo").innerHTML = "Hello World!";
D. document.getElement("p").innerHTML = "Hello World!";

32. Where is the correct place to insert a JavaScript?


A. The <head> section
B. Both the <head> section and the <body> section are correct
C. The <body> section

33. How to write an IF statement in JavaScript?


A. if i = 5 then B. if (i == 5)
C. if i == 5 then D. if i = 5

34. What is the correct way to write a JavaScript array?


A. var colors = (1:"red", 2:"green", 3:"blue")
B. var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
C. var colors = ["red", "green", "blue"]
D. var colors = "red", "green", "blue"

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

38. How do you call a function named "myFunction"?

A. call function myFunction() B. myFunction()


B. call myFunction()

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");

40. Which operator is used to compare 2 variables?


A. += B. ==
C. = D. ?=

You might also like