Font size
WorksheetsComputing 0860 - Stage 8 (Cover Page)
Total questions: 41
Worksheet time: 21mins
Choose the correct answer. Which of the following is a block-based programming language?
Python
Scratch
Java
C++
Choose the correct answer. Which of the following is a text-based programming language?
Blockly
Scratch
Python
Alice
Choose the correct answer. A flowchart is mainly used to:
Store data
Shows program steps visually
Debug code automatically
Design websites
Choose the correct answer. Which of the following is an arithmetic operator in Python?
if
+
else
Choose the correct answer. What does IDE stand for?
Internet Development Engine
Integrated Development Environment
Debug code automatically
Design websites
Choose the correct answer. In Python, which of the following is a valid variable name?
2age
my-name
Age2
Choose the correct answer. What is the output of the code below? print(24}
1
24
25
error
Choose the correct answer. An algorithm can be best described as:
A computer hardware part
A step-by-step procedure to solve a problem
A flowchart symbol
A flowchart symbol
Choose the correct answer. What will the following code output? print("Hello GISU")
Hello Gisu
Hello World!
Hello, World!
A flowchart symbol
Choose the correct answer. What will the code below output? If age > 18: print("adult") Else: print("child")
Adult
Error
Child
Imani
What is a pseudocode?
A programming language executed by the computer
A plain-language description of algorithm steps using structured words and symbols
A hardware diagram used to assemble computers
A graphic file format used for screenshots
Select all Python data types from the list below.
int
float
string (str)
list
motherboard
Which description best represents a simple guess game program in Python?
The program asks the user for a number, compares it to a secret number, gives higher/lower hints, and repeats until correct
The program prints the user’s name once and exits without checking anything
The program continuously adds two numbers entered by the user without any conditions
The program draws a flowchart showing steps but does not take input or compare values
What is networking?
Connecting computers and devices so they can share resources and information
Installing more storage inside a single computer
Writing code to control a robot arm
Replacing old computers with new ones
In Python, what is a keyword, and which of the following is an example?
A word you make up to name data; example: age2
A special reserved word with a fixed meaning in the language; example: if
A filename used to save programs; example: game.py
A library function you define yourself; example: print_user()
What is Python programming?
Designing computer hardware components
Writing instructions in the Python language to create programs that solve problems
Only drawing flowcharts for algorithms
Browsing the internet with Python
What is the output of the following code? print(" HELLO WORLD!')
HELLO WORLD!
Error
HELLO WORLD! (with a leading space)
No output
What is the output of the following code? password = "RichardTamba147!"; if password == "Gisu2025": print("Access granted") else: print("Access denied")
Access granted
Access denied
RichardTamba147!
Error
What is the output of the following code? num = 8; if NUM % 2 == 0: print("EVEN") else: print("ODD")
EVEN
ODD
8
Error
What is the output of the following code? fieldStatus = "closed"; if fieldStatus == "Open": print("I want to go for play break.") elif fieldStatus == "CLOSED": print("I want to go and attend classes") elif fieldStatus == "closed": print("I want to go for snack break") else: print("Mr. Job Abe is our computing Teacher.")
I want to go for play break.
I want to go and attend classes
I want to go for snack break
Mr. Job Abe is our computing Teacher.
A school has 40 computers. Why would networking be better than using each computer separately?
It allows sharing printers, files, and internet access and makes management easier
It makes every computer run without an operating system
It prevents any computer from communicating with others for security
It guarantees that no maintenance will ever be needed
What is a data type?
A classification that specifies the kind of data and the operations that can be performed on it
A device used to connect computers to a network
A step-by-step plan for solving a problem
A printed report of program output
What is a network topology (2 marks)?
The physical size of a computer network
The arrangement or layout of devices and cables in a network
The brand of network devices used in an office
A software program that monitors internet usage
What is encryption? Choose the option that correctly explains it with an example (2 marks).
Turning data into a secret code so only authorized users can read it, such as converting a message with a key before sending it
Making a backup copy of files to protect against loss, such as saving a document to the cloud
Compressing files to save space, such as zipping a folder before emailing it
Scanning a computer for viruses, such as using an antivirus program daily
Explain the use of a router (2 marks). Select the most accurate description.
It stores files for users on a network
It connects multiple networks and forwards data packets between them, often linking a LAN to the internet
It provides electrical power to computers on a network
It encrypts all wireless traffic by default
A school wants to protect its network from hackers. Which network device should they use and why (2 marks)?
Switch, because it increases internet speed for every user
Firewall, because it monitors and filters incoming and outgoing traffic based on security rules
Router, because it assigns usernames to students automatically
Repeater, because it extends the physical length of network cables
Draw any one type of topology you know and give a name to it (4 marks). Choose the option that correctly describes a named topology you could draw.
Star topology: all devices connect to a central switch or hub
Bus topology: devices form a closed loop with no terminators
Ring topology: all devices connect to a single central backbone cable
Mesh topology: all devices connect to a single hub only
A school uses a star topology. One day all computers lost connection. Which device likely failed and why (3 marks)?
A single computer’s network card, because it controls the whole network
The central switch or hub, because it is a single point of failure for all connections
One user’s Ethernet cable, because it disconnects every device
The printer, because print jobs can block the network
In a star topology, how are devices connected and what is the central device commonly called (2 marks)?
Devices connect in a daisy-chain; the central device is a repeater
Each device connects directly to a central switch or hub; the central device is a switch or hub
Devices connect along a backbone; the central device is a router only
Devices connect randomly; there is no central device
A business wants a network where communication continues even if one cable fails. Which topology should they choose and why (3 marks)?
Bus topology, because it uses a single backbone
Ring topology, because each device has only one path
Mesh topology, because multiple paths between devices provide redundancy
Star topology, because devices are isolated and never depend on the center
Who created Python and in which year was it released (1 mark)?
James Gosling, 1995
Guido van Rossum, 1991
Dennis Ritchie, 1972
Bjarne Stroustrup, 1985
Consider the code shown: a variable score is set to 90, then an if–elif–else chain prints a grade based on these ranges: 80–100 → A, 70–79 → B, 60–69 → C, 50–59 → D, 0–49 → E; otherwise prints an invalid score message. What will be printed when the code runs (5 marks)?
Grade: A
Grade: B
Grade: E
Invalid score. Please enter a value between 0 and 100.
Instagram wants to classify users by follower counts using these rules: 0–1,000 → Less Famous; 1,001–1,000,000 → Famous; 1,000,001–10,000,000 → Very Famous; Above 10,000,000 → Legendary Famous. If a user has 8,000,000 followers, what level should be displayed (5 marks)?
Less Famous
Famous
Very Famous
Legendary Famous
Study the Python code shown in the diagram and choose the line that would be printed when the script runs with day set to "Wednesday" and gender set to "female".
Go to the swimming pool for practice.
Attend synchronized swimming practice.
Take part in athletics on the track.
It is the weekend! No school activities.
Based on the Python code in the diagram, if gender is set to "male" and day is set to "Tuesday", which message would be printed?
Attend basketball drills in the indoor court.
Join the gymnastics session.
Participate in rugby training.
Go for boxing exercises in the gym.
If a single equal sign is used in the if condition in the shown Python code (for example, if day = "Monday":), what will happen when the program is run?
The code will run but always evaluate the condition as true.
The program will raise a syntax error and stop running.
It will compare strings without considering letter case.
The assignment will silently change the value during the test with no error.
Which kind of project could be built using the shown code that decides activities based on the day and gender?
A sports activity scheduler that suggests sessions by day and gender.
A temperature converter between Celsius and Fahrenheit.
A random number guessing game.
An image editing tool with filters.
Which code snippet correctly checks whether an input number is positive, negative, or zero and prints the result?
n = int(input()) if n > 0: print("Positive") elif n < 0: print("Negative") else: print("Zero")
n = int(input()) if n >= 0: print("Negative") else: print("Positive")
n = int(input()) if n = 0: print("Zero")
n = int(input()) if n > 0: print("Positive")
For the Open-Mind Python Challenge, select all requirements your program must meet.
Be written in Python.
Have at least 6 lines of code.
Include at least one variable.
Print useful or fun output.
Include a graphical user interface.
Which option correctly defines a list in Python and gives a valid example?
An ordered collection of items, for example [1, 2, 3].
A single number stored in memory, for example 42.
A function that repeats code, for example for i in range(5).
A text variable, for example "hello".
What is a microbit?
A small programmable microcontroller board for learning coding and electronics.
A desktop operating system.
A word processing software application.
A type of computer virus.
