Practicals

Model Examination Paper 2026 & Onwards — Computer Science Paper III (Practical)

Time Allowed: 1 hour · Total Marks: 10 (Stage I: 2 Marks, Stage II: 2 Marks, Stage III: 4 Marks, School Record: 2 Marks) · Instructions: Copy and paste the HTML/JavaScript codes for Task 1 through Task 6 into an MS Word file, save it with your Name and Candidate ID, and submit the printout along with the practical booklet.

Task 1 — Construct & Save an HTML Webpage in NotepadSTAGE I · 2 Marks · SLO 3.2.2, 3.3.1

Topic: Topic 3: Programming Fundamentals (Hypertext Markup Language - HTML)

Equipment & Software: Computer, Printer, Notepad, and Web Browser (MS Word for code printout submission)

Write an HTML code in Notepad for the given webpage ('Impact of Computers on Society') and save it as an .html file. Note: The title of this webpage should be the candidate's name and ID.

Task 1 — Construct & Save an HTML Webpage in Notepad
Reference HTML / JavaScript Solution Code:
<!DOCTYPE html>
<html>
<head>
    <title>Candidate Name - Candidate ID</title>
</head>
<body>
    <h3>Impact of Computers on Society</h3>
    <p>The use of computers in a society has become widespread. You find them at schools, in shops, in banks, at airport, in hospitals, police departments and many other areas. They play a very important role in the society because of many advantageous functions they perform. Computers have made a very strong effect on every aspect of our life.</p>
    <p>The important thing to remember is that a computer is a machine which takes in data, performs the operations as instructed and gives results.</p>
</body>
</html>
Task 2 & Task 3 — HTML Font Formatting & Webpage Background/Text ColoursSTAGE II · 2 Marks · SLO 3.3.2, 3.5.2

Topic: Topic 3: Programming Fundamentals (HTML Text Formatting & Backgrounds)

Equipment & Software: Computer, Notepad, and Web Browser

Task 2 (1 Mark): Set the font size '4', font colour 'Red' and font type 'Arial' for the heading line 'Impact of Computers on Society'. Task 3 (1 Mark): Select black as the background colour and white as the colour of text of this webpage.

Reference HTML / JavaScript Solution Code:
<!DOCTYPE html>
<html>
<head>
    <title>Candidate Name - Candidate ID</title>
</head>
<body bgcolor="black" text="white">
    <p><font size="4" color="Red" face="Arial">Impact of Computers on Society</font></p>
    <p>The use of computers in a society has become widespread. You find them at schools, in shops, in banks, at airport, in hospitals, police departments and many other areas. They play a very important role in the society because of many advantageous functions they perform. Computers have made a very strong effect on every aspect of our life.</p>
    <p>The important thing to remember is that a computer is a machine which takes in data, performs the operations as instructed and gives results.</p>
</body>
</html>
Task 4, Task 5 & Task 6 — JavaScript prompt(), Arithmetic Sum, document.write() & alert()STAGE III · 4 Marks · SLO 3.10.5, 3.10.6, 3.11.1

Topic: Topic 3: Programming Fundamentals (JavaScript I/O & Arithmetic Operators)

Equipment & Software: Computer, Notepad, and Web Browser

Perform the following tasks on a new saved HTML file using JavaScript: • Task 4 (1 Mark): Ask the user to take two numbers from the user using prompt(). • Task 5 (1 Mark): Calculate their sum using the arithmetic operator. • Task 6 (2 Marks): Display the result using document.write() on the browser ('Practical Model Paper - Sum of Two Numbers' / 'Sum: 40') and show the message 'Sum Calculated Successfully' in an alert() box.

Task 4, Task 5 & Task 6 — JavaScript prompt(), Arithmetic Sum, document.write() & alert()
Task 4, Task 5 & Task 6 — JavaScript prompt(), Arithmetic Sum, document.write() & alert() output
Reference HTML / JavaScript Solution Code:
<!DOCTYPE html>
<html>
<head>
    <title>Sum of Two Numbers</title>
</head>
<body>
    <h2>Practical Model Paper - Sum of Two Numbers</h2>
    <script>
        var num1 = Number(prompt("Enter first number:"));
        var num2 = Number(prompt("Enter second number:"));
        var sum = num1 + num2;
        document.write("Sum: " + sum);
        alert("Sum Calculated Successfully");
    </script>
</body>
</html>
Practical Journal / Portfolio VerificationSCHOOL RECORD · 2 Marks · SLO Practical Portfolio

Topic: Endorsed Practical Lab Journal (Grades IX Practical Activities 1–10)

Equipment & Software: Endorsed Practical Journal / Portfolio

Practical journal/portfolio developed by the student and endorsed by a teacher or principal, submitted at the time of the Paper III Practical Examination (2 Marks).