NEW
Font size
S
M
L
XL
WorksheetsMidterm Exam - ITEDEV - BSIS3A
Total questions: 70
Worksheet time: 53mins
Name
Class
Date
1.
What does HTML stand for?
a)
Hyperlink and Text Markup Language
b)
Hyper Text Markup Language
c)
Home Tool Markup Language
d)
High-Level Text Management Language
2.
Which tag is used to define the title of an HTML document?
a)
<body>
b)
<title>
c)
<head>
d)
<meta>
3.
The correct sequence of HTML document structure is:
a)
<html>, <body>, <head>
b)
<head>, <html>, <body>
c)
<html>, <head>, <body>
d)
<body>, <head>, <html>
4.
Which tag is used to display an image in an HTML document?
a)
<img>
b)
<picture>
c)
<src>
d)
<image>
5.
What attribute is used to specify alternative text for an image?
a)
src
b)
alt
c)
title
d)
href
6.
Which tag is used to create a hyperlink in HTML?
a)
<a>
b)
<hlink>
c)
<href>
d)
<link>
7.
Which HTML element is used to specify a section of content that is separate from others?
a)
<div>
b)
<span>
c)
<section>
d)
<article>
8.
What is the correct way to write a comment in HTML?
a)
// This is a comment
b)
/* This is a comment */
c)
<!-- This is a comment -->
d)
** This is a comment **
9.
Which tag is used for defining an ordered list?
a)
<ol>
b)
<ul>
c)
<li>
d)
<dl>
10.
What does the <meta> tag provide?
a)
Metadata about the document
b)
A link to an external stylesheet
c)
A way to insert an image
d)
A method to define table structure
11.
How do you create a table row in HTML?
a)
<table>
b)
<row>
c)
<tr>
d)
<td>
12.
What attribute is used to merge two or more columns in a table?
a)
rowspan
b)
colspan
c)
merge
d)
span
13.
What input type is used for a password field in an HTML form?
a)
text
b)
password
c)
secure
d)
hidden
14.
Which form method sends form data as a part of the URL?
a)
GET
b)
POST
c)
SUBMIT
d)
SEND
15.
What is the main difference between HTML and XHTML?
a)
XHTML is case-insensitive
b)
HTML is stricter than XHTML
c)
XHTML requires all tags to be properly closed
d)
HTML requires all attributes to be enclosed in quotes
16.
What does the <iframe> tag do?
a)
Inserts a table
b)
Inserts an external webpage inside the current page
c)
Creates an inline CSS style
d)
Adds an image
17.
Which tag is used for bold text in HTML?
a)
<strong>
b)
<b>
c)
Both <b> and <strong>
d)
<bold>
18.
Which tag represents a cell in an HTML table?
a)
<tr>
b)
<table>
c)
<th>
d)
<td>
19.
How do you specify a CSS style inside an HTML document?
a)
<css>
b)
<style>
c)
<format>
d)
<design>
20.
What does the tabindex attribute do in forms?
a)
Changes the font style
b)
Controls the order of focus when using the Tab key
c)
Sets the text color
d)
Adds a new field
21.
What is the default file extension for an HTML document?
a)
.xml
b)
.html
c)
.css
d)
.docx
22.
Which HTML tag is used to define a form for user input?
a)
<form>
b)
<input>
c)
<fieldset>
d)
<label>
23.
Which tag is used to create a drop-down selection menu in an HTML form?
a)
<select>
b)
<dropdown>
c)
<option>
d)
<list>
24.
How do you make a checkbox in an HTML form?
a)
<input type='checkbox'>
b)
<checkbox>
c)
<input type='check'>
d)
<tickbox>
25.
What is the correct way to link an external CSS file in an HTML document?
a)
<style href='styles.css'>
b)
<css link='styles.css'>
c)
<link rel='stylesheet' href='styles.css'>
d)
<stylesheet>styles.css</stylesheet>
26.
Which HTML tag is used for inserting a horizontal line?
a)
<hr>
b)
<line>
c)
<br>
d)
<border>
27.
How do you create a radio button in an HTML form?
a)
<input type='checkbox'>
b)
<input type='radio'>
c)
<radio>
d)
<input type='button'>
28.
How do you create a text area for multi-line input in an HTML form?
a)
<textbox>
b)
<input type='text'>
c)
<textarea>
d)
<multi-line>
29.
Which attribute is used to specify that an input field must be filled out before submitting a form?
a)
required
b)
validate
c)
mandatory
d)
necessary
30.
What is the purpose of the <fieldset> tag in HTML forms?
a)
It is used to define a border around the entire form
b)
It is used to group related elements within a form
c)
It is used to style the form elements
d)
It is used to create checkboxes and radio buttons
31.
HTML stands for Hyper Text Markup Language.
a)
True
b)
False
32.
The <head> section of an HTML document contains visible content.
a)
True
b)
False
33.
The <div> element is an inline element in HTML.
a)
True
b)
False
34.
The <b> tag and the <strong> tag serve the same purpose.
a)
True
b)
False
35.
An <iframe> allows you to embed another webpage inside an existing HTML page.
a)
True
b)
False
36.
The <meta> tag is used to define metadata about an HTML document.
a)
True
b)
False
37.
The <body> section of an HTML document contains the main visible content.
a)
True
b)
False
38.
The <ul> tag is used to create an ordered list.
a)
True
b)
False
39.
The 'alt' attribute in the <img> tag provides a description for an image.
a)
True
b)
False
40.
XHTML allows attributes to be written without quotes.
a)
True
b)
False
41.
What does CSS stand for?
a)
Cascading Style Sheets
b)
Computer Style Sheets
c)
Creative Style Sheets
d)
Colorful Style Sheets
e)
None of the above
42.
Which HTML tag is used to link an external CSS file?
a)
<style>
b)
<link>
c)
<css>
d)
<script>
e)
<external>
43.
Which property is used to change the background color of an element?
a)
color
b)
background-color
c)
bgcolor
d)
background
e)
None of the above
44.
Which selector is used to target an element with a specific id?
a)
.
b)
#
c)
*
d)
id:
e)
None of the above
45.
Which CSS property controls the text size?
a)
text-size
b)
font-style
c)
font-size
d)
text-style
e)
None of the above
46.
Which CSS property makes text bold?
a)
bold
b)
text-weight
c)
font-bold
d)
font-weight
e)
None of the above
47.
Which unit is not relative in CSS?
a)
em
b)
px
c)
rem
d)
%
e)
vw
48.
Which of the following is NOT a valid CSS positioning value?
a)
static
b)
relative
c)
absolute
d)
floating
e)
fixed
49.
Which CSS property removes underline from links?
a)
text-decoration
b)
font-style
c)
text-underline
d)
text-transform
e)
None of the above
50.
What does the 'z-index' property do?
a)
Controls visibility
b)
Defines stacking order
c)
Changes opacity
d)
Positions elements
e)
None of the above
51.
Which of these is a pseudo-class?
a)
::before
b)
:hover
c)
::after
d)
::selection
e)
None of the above
52.
What is the default position value in CSS?
a)
absolute
b)
relative
c)
fixed
d)
static
e)
none
53.
Which CSS property specifies whether an element is visible?
a)
display
b)
opacity
c)
visibility
d)
z-index
e)
None of the above
54.
Which CSS property is used to create space between elements?
a)
margin
b)
padding
c)
spacing
d)
border-spacing
e)
None of the above
55.
Which value for 'overflow' will hide excess content?
a)
scroll
b)
visible
c)
auto
d)
hidden
e)
None of the above
56.
Which property sets the transparency of an element?
a)
visibility
b)
opacity
c)
alpha
d)
transparent
e)
None of the above
57.
Which of these is not a valid CSS display property?
a)
block
b)
inline
c)
flex
d)
grid
e)
hidden
58.
Which of the following is NOT an appropriate way to apply CSS?
a)
Inline
b)
Internal
c)
External
d)
Database
e)
None of the above
59.
What does 'inherit' do in CSS?
a)
Sets default value
b)
Takes value from parent
c)
Hides element
d)
Creates a new rule
e)
None of the above
60.
Which property is used to create a flex container?
a)
display
b)
position
c)
flex-wrap
d)
justify-content
e)
align-items
61.
CSS allows multiple stylesheets to be applied to a single document.
a)
True
b)
False
62.
The !important rule increases the specificity of a CSS rule.
a)
True
b)
False
63.
Relative positioning moves an element in relation to its normal position.
a)
True
b)
False
64.
A pseudo-element can style a specific part of an element.
a)
True
b)
False
65.
CSS grids allow both rows and columns to be defined.
a)
True
b)
False
66.
The float property removes an element from the normal document flow.
a)
True
b)
False
67.
The margin property affects the space inside an element.
a)
True
b)
False
68.
CSS animations can be created using @keyframes.
a)
True
b)
False
69.
The position property must be set to 'absolute' for z-index to work.
a)
True
b)
False
70.
A CSS variable is declared using the var() function.
a)
True
b)
False
Reset
