3 Questions · 15 Marks

Practical Examination 2026

HSC ICT Answer Sheet

Total Marks: 25  ·  Time: 1 hour

HTML Table C Programming SQL Database
Q1
Write the HTML code of the given table
HTML
1<!-- Device Specifications Table with Nested Table -->
2<!DOCTYPE html>
3<html>
4<head></head>
5<body>
6 <table border="2">
7 <tr style="background-color: grey;">
8 <th>Device</th>
9 <th>Brand</th>
10 <th colspan="2">Specifications</th>
11 </tr>
12 <tr>
13 <td>Smartphone</td>
14 <td>Apple</td>
15 <td colspan="2">
16 <table border="2">
17 <tr style="background-color: lightgrey;">
18 <th>Model</th>
19 <th>Storage</th>
20 </tr>
21 <tr>
22 <td>iPhone 12 Pro</td>
23 <td>256GB</td>
24 </tr>
25 <tr>
26 <td>iPhone SE</td>
27 <td>128GB</td>
28 </tr>
29 </table>
30 </td>
31 </tr>
32 <tr>
33 <td>Laptop</td>
34 <td>HP</td>
35 <td colspan="2">15.6" Display</td>
36 </tr>
37 <tr>
38 <td>Tablet</td>
39 <td>Samsung</td>
40 <td colspan="2">10.5" Display</td>
41 </tr>
42 </table>
43</body>
44</html>
Q2
C program — Total & Average of 5 subjects
C
1/* HSC ICT Q2 — Marks Calculator */
2#include <stdio.h>
3
4int main() {
5 int sub1, sub2, sub3, sub4, sub5;
6 int total;
7 float average;
8
9 printf("Enter marks of 5 subjects:\n");
10
11 printf("Subject No.1: "); scanf("%d", &sub1);
12 printf("Subject No.2: "); scanf("%d", &sub2);
13 printf("Subject No.3: "); scanf("%d", &sub3);
14 printf("Subject No.4: "); scanf("%d", &sub4);
15 printf("Subject No.5: "); scanf("%d", &sub5);
16
17 total = sub1 + sub2 + sub3 + sub4 + sub5;
18 average = total / 5.0; /* use 5.0 for float division */
19
20 printf("\nTotal Marks : %d\n", total);
21 printf("Average Marks: %.2f\n", average);
22
23 return 0;
24}
Q3
Create Student_Info database table
SQL
1-- Create the Student_Info table
2CREATE TABLE Student_Info (
3 Roll INT PRIMARY KEY,
4 Name VARCHAR(50),
5 Department VARCHAR(30),
6 GPA DECIMAL(3, 2)
7);
8
9-- Insert at least 3 records
10INSERT INTO Student_Info VALUES
11 (101, 'Rahul Kumar', 'Computer Science', 3.80),
12 (102, 'Priya Sharma', 'Information Technology', 3.60),
13 (103, 'Arjun Singh', 'Computer Science', 3.70);
14