wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Final Exam(WS101)

Total questions: 45

Worksheet time: 23mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyper Trainer Marking Language

b)

HyperText Markup Language

c)

HyperText Machine Language

d)

HighText Markup Language

2.

Which tag is used to create a hyperlink in HTML?

a)

<link>

b)

<href>

c)

<a>

d)

<hyperlink>

3.

Which tag is used to insert an image?

a)

<img>

b)

<image>

c)

<picture>

d)

<src>

4.

How can you make a numbered list?

a)

<ol>

b)

<ul>

c)

<dl>

d)

<li>

5.

Which tag is used to define a table row?

a)

<td>

b)

<tr>

c)

<th>

d)

<row>

6.

What is the correct HTML tag for the largest heading?

a)

A. <h6>

b)

B. <heading>

c)

C. <h1>

d)

D. <head>

7.

What is the correct tag to make text bold?

a)

<bold>

b)

<strong>

c)

<b>

d)

Both B and C

8.

Which of the following tags is used to create a checkbox?

a)

<checkbox>

b)

<input type="checkbox">

c)

<check>

d)

<box>

9.

What is the purpose of the <form> tag in HTML?

a)

Display content

b)

Add CSS

c)

Collect user input

d)

Create navigation

10.

What tag is used to insert a line break?

a)

<break>

b)

<br>

c)

<lb>

d)

<hr>

11.

What does CSS stand for?

a)

Computer Style Sheets

b)

Cascading Style Sheets

c)

Colorful Style Sheets

d)

Creative Style Sheets

12.

Which HTML tag is used to link an external CSS file?

a)

<css>

b)

<style>

c)

<link>

d)

<script>

13.

Which property is used to change the background color?

a)

color

b)

bgcolor

c)

background-color

d)

background

14.

Which is the correct CSS syntax to change font size to 14px?

a)

A. font-size: 14px;

b)

B. font: size 14px;

c)

C. font-size = 14px;

d)

D. text-size: 14px;

15.

Which property is used to center text?

a)

align: center;

b)

text-align: center;

c)

center-text: true;

d)

horizontal-align: center;

16.

How do you select an element with the id “header”?

a)

#header

b)

.header

c)

header

d)

*header

17.

Which CSS property controls the text size?

a)

font-style

b)

text-style

c)

text-size

d)

font-size

18.

Which CSS property controls the spacing inside an element’s border?

a)

margin

b)

padding

c)

border-spacing

d)

gap

19.

Which property is used to add space outside the border of an element?

a)

padding

b)

spacing

c)

margin

d)

border-width

20.

What does display: none; do to an element?

a)

Hides it but keeps space

b)

Makes it transparent

c)

Hides it and removes from layout

d)

Freezes the element

21.

Which HTML tag is used to embed JavaScript code?

a)

<script>

b)

<js>

c)

<javascript>

d)

<code>

22.

How do you write a comment in JavaScript?

a)

<!-- comment -->

b)

// comment

c)

/* comment */

d)

Both B and C

23.

What is the correct syntax to output “Hello” in an alert box?

a)

alertBox("Hello");

b)

msg("Hello");

c)

alert("Hello");

d)

alertMessage("Hello");

24.

How do you declare a variable in JavaScript?

a)

var name;

b)

let name;

c)

const name;

d)

All of the above

25.

What operator is used to assign a value to a variable?

a)

*

b)

=

c)

==

d)

=>

26.

How do you write a function in JavaScript?

a)

function myFunction() {}

b)

function:myFunction()

c)

func myFunction()

d)

define myFunction()

27.

What will typeof "123" return?

a)

integer

b)

number

c)

string

d)

text

28.

How do you write an if statement in JavaScript?

a)

if (x == 5)

b)

if x = 5 then

c)

if x == 5 then

d)

if x => 5

29.

What will console.log(5 + "5") output?

a)

10

b)

55

c)

Error

d)

NaN

30.

Which function is used to parse a string to an integer?

a)

parseString()

b)

parseInt()

c)

toInteger()

d)

int()

31.

How do you call a function named greet?

a)

call greet()

b)

greet.call()

c)

greet()

d)

function greet()

32.

Which method can be used to select an element by its ID?

a)

document.querySelector()

b)

document.getElementByClass()

c)

document.getElementById()

d)

document.selectId()

33.

Which loop is guaranteed to run at least once?

a)

for

b)

while

c)

do...while

d)

foreach

34.

Which of these is used to stop a loop immediately?

a)

stop

b)

exit

c)

break

d)

return

35.

Which method is used to write into the browser console?

a)

console.print()

b)

log.console()

c)

console.log()

d)

print.console()

36.

What is Bootstrap 5 primarily used for?

a)

Creating desktop apps

b)

Styling Excel sheets

c)

Designing responsive websites

d)

Writing server-side code

37.

Which class is used to create a responsive container in Bootstrap 5?

a)

.container-fixed

b)

.container-fluid

c)

.container-responsive

d)

.box

38.

What does col-md-6 mean in Bootstrap?

a)

6% width on medium screens

b)

Full width on all screens

c)

6 columns wide on medium devices

d)

It sets a margin

39.

Which Bootstrap component is used to create a navigation bar?

a)

.navmenu

b)

.navigation

c)

.navbar

d)

.menubar

40.

Which class adds margin in Bootstrap?

a)

.m-3

b)

.pad-3

c)

.spacing-3

d)

.margin-3

41.

How many columns are in the Bootstrap 5 grid system?

a)

10

b)

12

c)

16

d)

20

42.

What class makes an image responsive in Bootstrap 5?

a)

.img-scale

b)

.img-auto

c)

.img-responsive

d)

.img-fluid

43.

Which Bootstrap class adds padding to an element?

a)

.p-3

b)

.padding-3

c)

.add-padding

d)

.pad

44.

What is the purpose of .btn class?

a)

To create cards

b)

To create headers

c)

To create buttons

d)

To align images

45.

Which class is used to create a card in Bootstrap 5?

a)

.panel

b)

.card

c)

.box

d)

.block