Web Development Test | Class 9 Computer Science
{“<>“}
#CSS{ }
function()
console.log
const
import

Web Development Test

Class 9th – Computer Science (SNC) – Chapter 8
2025@everexams.com
Paper Date:
Time: 60 minutes
Total Marks: 30
Paper Type: Objective + Subjective

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?
<!– Adds an image to the webpage –>
<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?
// JavaScript code example
let userName = document.getElementById(“name”).value;
console.log(userName); // Gets text from input field
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;
}
// Example usage: add(5, 3) returns 8
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?
/* This is a CSS comment */
body {
  background-color: #f0f0f0; /* Sets background color */
}
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> <!– This is the root element –>
  <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!”);
}

Detailed Answer Questions (Answer any 2) 2×5=10

1 Discuss the fundamental differences between HTML, CSS, and JavaScript in the context of web development.
2 Describe Tim Berners-Lee’s contribution to web development, including the first website’s purpose.
<!– First website created in 1991 –>
<!– Purpose: To explain the World Wide Web project –>
<html>
  <head>
    <title>World Wide Web</title>
  </head>
  <body>
    <h1>World Wide Web</h1>
  </body>
</html>
3 Explain the purpose of the <head> tag and list three elements it can contain.
<head>
  <title>My Website</title>
  <meta charset=“UTF-8”>
  <link rel=“stylesheet” href=“styles.css”>
  <script src=“script.js”></script>
</head>