Multiple Choice Questions 10×1=10
1
Which of the following tag is used to create a hyperlink in HTML?
<a href=“https://example.com”>Click Here</a>
A
<link>
B
<a>
C
<href>
D
<nav>
2
Which HTML tag is used to create an unordered list?
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
A
<ol>
B
<ul>
C
<li>
D
<list>
3
Which email service was created by Saber Bhatia and Jack Smith?
A
Gmail
B
Hotmail
C
Yahoo Mail
D
Outlook
4
Which skill is enhanced by fixing a slow website?
A
Cooking
B
Singing
C
Problem-solving
D
Painting
5
Which component is called the “skeleton” of a web page?
A
HTML
B
CSS
C
JavaScript
D
PHP
6
Full-stack developers handle which parts of a login system?
A
Only UI
B
Only databases
C
UI and back-end
D
Networking
7
The first website was created in which year?
A
1995
B
1991
C
2000
D
1989
8
What does <img src=”logo.jpg” alt=”Logo”> do?
<img src=“logo.jpg” alt=“Logo”>
A
Adds a hyperlink
B
Adds an image
C
Creates a table
D
Styles text
9
What is the output of document.getElementById(“name”).value?
let userName = document.getElementById(“name”).value;
console.log(userName);
A
Gets text from an input
B
Changes background
C
Creates a table field
D
Styles a heading
10
Which function calculates the sum of two numbers in JavaScript?
function add(a, b) {
return a + b;
}
A
multiply()
B
divide()
C
subtract()
D
add()
Short Answer Questions 10×2=20
1
Describe the syntax for creating a hyperlink in HTML.
<a href=“https://example.com” target=“_blank”>
Visit Example Website
</a>
2
How do you add a comment in CSS?
body {
background-color: #f0f0f0;
}
3
Explain the box model in CSS.
4
Which component of a web page is referred to as its “skeleton”?
5
Name two tools used in back-end development.
6
What is the root element of an HTML document?
<!DOCTYPE html>
<html>
<head>…</head>
<body>…</body>
</html>
7
Which tag defines the largest heading?
8
How do you write an HTML comment?
9
What tag defines a table row?
10
Which event occurs when a user clicks a button?
<button onclick=“myFunction()”>Click me</button>
function myFunction() {
alert(“Button clicked!”);
}