← Grade 9 final exam model papers
Final Exam Model Paper 2
Full marks: 50Time: 2 hours
All questions are compulsory.
A full practice run of the Grade 9 final exam’s Computer Science theory paper: 50 marks in 2 hours, every question compulsory. Work out on paper what each program in a question does, as in the exam hall: those programs have no Run button. The programs in the answers do run.
A practice paper by Science Playground, made to CDC’s Specification Grid, Computer Science, Grade 9 (2082). Not an official CDC or exam board paper; the real Grade 9 final exam may differ.
Write your answers on paper first. Then open each answer and its marking scheme, and give yourself one mark for each point you got. In multiple choice, your first choice counts.
Paper to print (PDF, 3 pages) Answer key and marking scheme
Group A
10 × 1 = 10Choose the correct answer for each of the following questions.
Which of the following is an impact printer?
Pick an answer to see why.
A computer’s data bus is 32 bits wide. How many bytes can it carry in one transfer?
Pick an answer to see why.
Nirmala’s school wants every student to have office software (a word processor and a spreadsheet) on their home computer, free and legally. Which is the best choice?
Pick an answer to see why.
To which category of Scratch blocks does when green flag clicked belong?
Pick an answer to see why.
In which pair are both tags empty tags?
Pick an answer to see why.
Which CSS rule makes the text of every paragraph of a page blue?
Pick an answer to see why.
Which of the following is a search engine?
Pick an answer to see why.
Nabin is choosing a new password for his email. Which one is the strongest?
Pick an answer to see why.
Which of the following is a keyword in Python?
Pick an answer to see why.
What does this program print?
marks = [45, 62, 78, 90]print(marks[2])Pick an answer to see why.
Group B
10 × 2 = 20Write short answers to the following questions.
Write any two differences between system software and application software.
Answer
| System software | Application software |
|---|---|
| Runs and manages the computer itself: its memory, devices, files and processes. | Made for the user’s own tasks: writing, editing photos, billing. |
| Can run on its own; doesn’t need application software. | Can’t run without system software. |
| Runs from when the computer is switched on until it is switched off. | Runs when the user starts it, and stops when the user closes it. |
| Essential: the computer can’t work without it. | Not essential to the computer itself. |
| Examples: Windows, Linux, device drivers. | Examples: Word, a web browser, Zoom. |
(Any two.)
Marking scheme
- One correct difference with both sides (e.g. manages the computer / does the user’s tasks).
- A second correct difference (e.g. runs on its own / needs system software).
Laxmi is sorting files on her school’s computer. Convert as indicated, showing your working.
- a.3 GB into MB (1)
- b.5,120 KB into MB (1)
Answer
- a.A bigger unit into a smaller one: multiply by 1024. 3 GB = 3 × 1024 MB = 3,072 MB.
- b.A smaller unit into a bigger one: divide by 1024. 5,120 KB = 5,120 ÷ 1024 MB = 5 MB.
Marking scheme
- a. 3 × 1024 = 3,072 MB.
- b. 5,120 ÷ 1024 = 5 MB.
Convert as indicated.
- a.(247)₈ into decimal (1)
- b.(101101110)₂ into octal (1)
Answer
a. Multiply each digit by its place value (powers of 8) and add:
2 × 8² + 4 × 8¹ + 7 × 8⁰ = 128 + 32 + 7 = 167
So (247)₈ = (167)₁₀.
b. Make groups of 3 bits from the right, and write each group as one octal digit:
| 101 | 101 | 110 |
|---|---|---|
| 5 | 5 | 6 |
So (101101110)₂ = (556)₈. Check: both are 366 in decimal.
Marking scheme
- a. Place values of 8 shown and (167)₁₀.
- b. Groups of three bits shown and (556)₈.
Perform the following binary operations.
- a.(1101)₂ × (101)₂ (1)
- b.(11110)₂ ÷ (110)₂ (1)
Answer
a. Multiply by each digit of 101 and add the rows, shifting each row one place left:
1 1 0 1 × 1 0 1 --------- 1 1 0 1 (1101 × 1) 0 0 0 0 × (1101 × 0, shifted) 1 1 0 1 × × (1101 × 1, shifted twice) ------------- 1 0 0 0 0 0 1So the product is (1000001)₂. Check: 13 × 5 = 65.
b. Long division, each step 1 or 0:
1 0 1 ------- 1 1 0 ) 1 1 1 1 0 − 1 1 0 ----- 1 1 0 − 1 1 0 ----- 0- 110 goes into 111 once: write 1; 111 − 110 = 1.
- Bring down 1: 11. 110 doesn’t go: write 0.
- Bring down 0: 110. It goes once: write 1; 110 − 110 = 0, the remainder.
So the quotient is (101)₂, remainder 0. Check: 30 ÷ 6 = 5.
Marking scheme
- a. (1000001)₂, with the rows shown.
- b. Quotient (101)₂ (remainder 0), with the division steps shown.
Anju is making a web page about Rara Lake. Write the HTML code for:
- a.a link with the words “Visit Nepal Tourism Board” that opens https://www.welcomenepal.com in a new tab; (1)
- b.the picture
rara.jpg, with the text “Rara Lake” shown if the picture can’t be loaded. (1)
Answer
<a href="https://www.welcomenepal.com" target="_blank">Visit Nepal Tourism Board</a><img src="rara.jpg" alt="Rara Lake">href gives the address the link opens and target="_blank" opens it in a new tab. src names the picture’s file and alt gives the text shown, or read aloud, when the picture can’t be seen.
Marking scheme
- a.
<a href="https://www.welcomenepal.com" target="_blank">…</a>with the link’s words. - b.
<img src="rara.jpg" alt="Rara Lake">.
Durga’s uncle in Ilam can’t open a program on his laptop. From her home in Kathmandu, Durga connects to his laptop with AnyDesk and fixes it. What is remote login? Write one more use of it.
Answer
Remote login is logging in to a computer somewhere else (the remote computer) over a network, and using it from your own computer (the local computer): your keys and clicks go to the remote computer, and a picture of its screen comes back to you.
One more use (any one): working from home on an office computer and its files; looking after servers in a data center; a teacher showing a student how to do something on the student’s own computer.
Marking scheme
- Remote login: using a computer somewhere else over a network, from your own computer.
- One more correct use (e.g. working from home on an office computer).
Prakriti, the class captain, has to email a notice about a picnic to the parents of 30 classmates. The parents don’t know each other.
- a.In which field should she put the parents’ addresses? Give a reason. (1)
- b.Suggest a subject for her email, and say why a clear subject matters. (1)
Answer
- a.Bcc (blind carbon copy). Bcc recipients are hidden from everyone else, so no parent sees the other parents’ email addresses, which keeps them private. (In To or Cc every parent would see all 30 addresses.)
- b.A clear subject such as “Class 9 picnic this Saturday: notice for parents”. Parents see the subject first in their inbox, so it tells them what the email is about before they open it, and it isn’t mistaken for spam.
Marking scheme
- a. Bcc, because it hides the addresses from the other parents (keeps them private).
- b. A clear subject naming the picnic, with the reason (tells the reader what the email is about).
Write any two differences between a compiler and an interpreter.
Answer
| Compiler | Interpreter |
|---|---|
| Translates the whole program at once, before it runs. | Translates and runs the program line by line. |
| Shows the errors it finds together after reading the whole program; nothing runs until they are fixed. | Stops at the first error it meets; the lines before it have already run. |
| The compiled program runs faster. | The program runs slower. |
| Makes a separate machine-code file (such as an .exe). | Makes no separate file. |
| Example: GCC for C and C++. | Example: the Python interpreter. |
(Any two.)
Marking scheme
- One correct difference with both sides (e.g. whole program at once / line by line).
- A second correct difference (e.g. errors together / stops at the first error; a machine-code file / none).
Salim keeps the prices of four items of his shop in a list. Study the program and answer the questions.
prices = [120, 85, 60, 150]total = 0for p in prices: if p > 80: total = total + pprint("Total:", total)- a.How many times does the loop run? (1)
- b.Write the output of the program. (1)
Answer
- a.4 times: once for each item of the list.
- b.Only prices above 80 are added: 120 + 85 + 150 = 355 (60 is left out).
prices = [120, 85, 60, 150]total = 0for p in prices: if p > 80: total = total + pprint("Total:", total)Output
Total: 355Marking scheme
- a. 4 times.
- b.
Total: 355.
Kopila saves Rs 50 on the first day, and each day after that she saves Rs 10 more than the day before. Write a Python program that displays how much she saves on each of the first 10 days, and her total savings after 10 days.
Answer
saving = 50total = 0for day in range(1, 11): print(f"Day {day}: Rs {saving}") total = total + saving saving = saving + 10print(f"Total saved: Rs {total}")Output
Day 1: Rs 50Day 2: Rs 60Day 3: Rs 70Day 4: Rs 80Day 5: Rs 90Day 6: Rs 100Day 7: Rs 110Day 8: Rs 120Day 9: Rs 130Day 10: Rs 140Total saved: Rs 950(Any correct program.)
Marking scheme
- A loop that runs 10 times, displaying each day’s saving, going up by 10.
- The savings added up and the total (Rs 950) displayed.
Group C
5 × 4 = 20Write long answers to the following questions.
What is an input device? Write the use of any three input devices. [1+3]
Answer
An input device is a device used to enter raw data and instructions into a computer. It turns a key press, a movement, a sound or a picture into signals the computer works with.
Any three:
- Keyboard: to type text, numbers and commands.
- Mouse: a pointing device to point, click, select, drag and scroll.
- Scanner: to turn a paper document or photo into a digital picture.
- Microphone: to record sound, make voice and video calls and give spoken commands.
- Webcam: to capture live video for video meetings and online classes.
- Joystick: to play games and steer machines such as cranes and drones.
- Touchscreen or touchpad: to select, scroll and move the pointer with a finger.
Marking scheme
- Input device: a device that enters data and instructions into the computer.
- The first input device with its use (e.g. a keyboard to type text and numbers).
- The second (e.g. a scanner to turn a printed photo into a digital picture).
- The third (e.g. a microphone to record sound).
Study this Scratch script and answer the questions.
- a.Which block starts the script, and when does the script run? (1)
- b.What does the block ask What is 7 × 8? and wait do, and where is the user’s reply kept? (1)
- c.What does the sprite say if the user types 54? (1)
- d.Name the category of the if … then … else block and of the = block. (1)
Answer
- a.when green flag clicked (an Events block) starts it; the script runs when the green flag is clicked.
- b.It shows the question “What is 7 × 8?” and waits for the user to type a reply; the reply is kept in the Sensing block answer.
- c.54 is not equal to 56, so the condition is false and the else part runs: the sprite says “Try again!” for 2 seconds.
- d.if … then … else is a Control block; = is an Operators block.
Marking scheme
- a. when green flag clicked; it runs when the green flag is clicked.
- b. It shows the question and waits for a reply, which is kept in answer.
- c. “Try again!” (for 2 seconds), because 54 is not 56.
- d. if … then … else: Control; =: Operators.
Sagar works at a bus counter in Kathmandu. Write the HTML code to create the timetable shown below, with borders.
Answer
<table border="1"> <tr> <th rowspan="2">Route</th> <th colspan="2">Departure</th> </tr> <tr> <th>Morning</th> <th>Evening</th> </tr> <tr> <td>Kathmandu–Pokhara</td> <td>7:00 AM</td> <td>2:00 PM</td> </tr> <tr> <td>Kathmandu–Chitwan</td> <td>6:30 AM</td> <td>1:00 PM</td> </tr></table>Route is one cell two rows tall (rowspan="2"), so the second row has only two cells, Morning and Evening; Departure is one cell two columns wide (colspan="2"). (<td> in place of <th> for the headings is also accepted.)
Marking scheme
<table border="1">with each row in<tr>…</tr>, tags closed in order.rowspan="2"on the Route cell.colspan="2"on the Departure cell.- The Morning and Evening row and the two rows of times, each cell in
<td>(or<th>).
What is a digital footprint? Explain its two types with an example of each, and write one way to protect yourself from its risks. [1+2+1]
Answer
A digital footprint is the record of information created by a person’s activities online: searches, posts, messages, purchases and places visited. It is also called a digital shadow.
- Active digital footprint: information a user leaves knowingly, by choosing to share it. Examples: a social media post or comment, an email sent, a form filled in.
- Passive digital footprint: information collected without the user knowing or choosing to share it. Examples: the searches a search engine keeps, a phone’s location history, what you looked at while shopping online.
One way to protect yourself (any one): think before posting, since a post can stay forever; keep accounts private and share personal details only when needed; check the privacy settings and the apps’ permissions (location, contacts); clear the browsing history and cookies, or use incognito mode on a shared computer, and log out.
Marking scheme
- Digital footprint: the record (trail) of a person’s activities online.
- Active footprint, left knowingly, with an example (e.g. a post).
- Passive footprint, collected without knowing, with an example (e.g. location history, searches kept).
- One sensible way to protect yourself (e.g. think before posting; privacy settings).
A children’s park in Butwal charges for a ticket by the visitor’s age:
| Age | Ticket |
|---|---|
| under 3 years | free (Rs 0) |
| 3 to 12 years | Rs 50 |
| 13 to 59 years | Rs 100 |
| 60 years and above | Rs 50 |
Write a Python program that takes a visitor’s age as input and displays the price of the ticket.
Answer
# Input: the visitor's age in whole yearsage = int(input("Enter the visitor's age: "))# Find the ticket price from the tableif age < 3: price = 0elif age <= 12: price = 50elif age <= 59: price = 100else: price = 50# Output: the priceprint("Ticket price = Rs", price)Output
Enter the visitor's age: 14Ticket price = Rs 100The conditions are checked in order, so age <= 12 is reached only when the age is 3 or more. Test each band: 2 gives Rs 0, 9 Rs 50, 14 Rs 100, 65 Rs 50. (Any correct program.)
Marking scheme
- The age read with
int(input()). - The conditions with
if,elifandelsein the right order. - The right price in each branch (0, 50, 100, 50).
- The price displayed.
Your score
0 / 50
25 questions not marked yet
Marks lost, by unit
Mark a question to see your score here.
Found a mistake? Please tell us.
