NEW
Font size
WorksheetsFinal Exam(WS101)
Total questions: 45
Worksheet time: 23mins
What does HTML stand for?
Hyper Trainer Marking Language
HyperText Markup Language
HyperText Machine Language
HighText Markup Language
Which tag is used to create a hyperlink in HTML?
<link>
<href>
<a>
<hyperlink>
Which tag is used to insert an image?
<img>
<image>
<picture>
<src>
How can you make a numbered list?
<ol>
<ul>
<dl>
<li>
Which tag is used to define a table row?
<td>
<tr>
<th>
<row>
What is the correct HTML tag for the largest heading?
A. <h6>
B. <heading>
C. <h1>
D. <head>
What is the correct tag to make text bold?
<bold>
<strong>
<b>
Both B and C
Which of the following tags is used to create a checkbox?
<checkbox>
<input type="checkbox">
<check>
<box>
What is the purpose of the <form> tag in HTML?
Display content
Add CSS
Collect user input
Create navigation
What tag is used to insert a line break?
<break>
<br>
<lb>
<hr>
What does CSS stand for?
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
Creative Style Sheets
Which HTML tag is used to link an external CSS file?
<css>
<style>
<link>
<script>
Which property is used to change the background color?
color
bgcolor
background-color
background
Which is the correct CSS syntax to change font size to 14px?
A. font-size: 14px;
B. font: size 14px;
C. font-size = 14px;
D. text-size: 14px;
Which property is used to center text?
align: center;
text-align: center;
center-text: true;
horizontal-align: center;
How do you select an element with the id “header”?
#header
.header
header
*header
Which CSS property controls the text size?
font-style
text-style
text-size
font-size
Which CSS property controls the spacing inside an element’s border?
margin
padding
border-spacing
gap
Which property is used to add space outside the border of an element?
padding
spacing
margin
border-width
What does display: none; do to an element?
Hides it but keeps space
Makes it transparent
Hides it and removes from layout
Freezes the element
Which HTML tag is used to embed JavaScript code?
<script>
<js>
<javascript>
<code>
How do you write a comment in JavaScript?
<!-- comment -->
// comment
/* comment */
Both B and C
What is the correct syntax to output “Hello” in an alert box?
alertBox("Hello");
msg("Hello");
alert("Hello");
alertMessage("Hello");
How do you declare a variable in JavaScript?
var name;
let name;
const name;
All of the above
What operator is used to assign a value to a variable?
*
=
==
=>
How do you write a function in JavaScript?
function myFunction() {}
function:myFunction()
func myFunction()
define myFunction()
What will typeof "123" return?
integer
number
string
text
How do you write an if statement in JavaScript?
if (x == 5)
if x = 5 then
if x == 5 then
if x => 5
What will console.log(5 + "5") output?
10
55
Error
NaN
Which function is used to parse a string to an integer?
parseString()
parseInt()
toInteger()
int()
How do you call a function named greet?
call greet()
greet.call()
greet()
function greet()
Which method can be used to select an element by its ID?
document.querySelector()
document.getElementByClass()
document.getElementById()
document.selectId()
Which loop is guaranteed to run at least once?
for
while
do...while
foreach
Which of these is used to stop a loop immediately?
stop
exit
break
return
Which method is used to write into the browser console?
console.print()
log.console()
console.log()
print.console()
What is Bootstrap 5 primarily used for?
Creating desktop apps
Styling Excel sheets
Designing responsive websites
Writing server-side code
Which class is used to create a responsive container in Bootstrap 5?
.container-fixed
.container-fluid
.container-responsive
.box
What does col-md-6 mean in Bootstrap?
6% width on medium screens
Full width on all screens
6 columns wide on medium devices
It sets a margin
Which Bootstrap component is used to create a navigation bar?
.navmenu
.navigation
.navbar
.menubar
Which class adds margin in Bootstrap?
.m-3
.pad-3
.spacing-3
.margin-3
How many columns are in the Bootstrap 5 grid system?
10
12
16
20
What class makes an image responsive in Bootstrap 5?
.img-scale
.img-auto
.img-responsive
.img-fluid
Which Bootstrap class adds padding to an element?
.p-3
.padding-3
.add-padding
.pad
What is the purpose of .btn class?
To create cards
To create headers
To create buttons
To align images
Which class is used to create a card in Bootstrap 5?
.panel
.card
.box
.block
