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?
href=“https://example.com”>Click Here
2 Which HTML tag is used to create an unordered list?

      
  • Item 1

  •   
  • Item 2

A
B
C
  • D
    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 ”Logo” do?

    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

    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?


      
      
    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?
    onclick=“myFunction()”>Click me

    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.



      
        </span>World Wide Web<span class="code-tag">
      
      
        

    World Wide Web


      
    3 Explain the purpose of the tag and list three elements it can contain.

      </span>My Website<span class="code-tag">
       charset=“UTF-8”>
       rel=“stylesheet” href=“styles.css”>
       src=“script.js”>