
21-22 S3 UT Past paper

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Hoi Lee Wong
Used 4+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The initial value of A and B are 9 and 3. After executing the following Python statements, what are the values of A and B?
C = A + B
A = C - A
B = C - A
3
3
3
9
6
9
9
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following expressions can generate an even random number from 16 to 30?
random.randint(16,30) + 2 * 8
random.randint (1,16) * 2 + 8
random.randint (0,7) + 16 * 2
random.randint (0,7) * 2 + 16
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the truth value for the following expression?
("APPLE" > "apple") or ("Boy">"B") and not("C">"c")
true
false
"A" or "B" and not "C"
no truth value
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many ‘#’ will be shown on the screen after executing the following program segment?
for i in range(-5,11):
print("#")
5
10
15
16
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final value of n after executing the following program segment?
n=0
for i in range(1,6):
n=n + 3 * i
15
30
45
60
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output after the execution of the following program segment?
for x in range(8,1,-1):
if x%2==0:
print(x,end="")
print()
8765432
8642
2468
864
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a is input as 60, what will be the output for the following program segment?
if a>50:
if a>80: print("P")
else: print("Q")
elif a<20: print("R")
else: print("S")
P
Q
R
S
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Tracing Loops in Java

Quiz
•
12th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
11 questions
Java Boolean Statements

Quiz
•
11th Grade
18 questions
Python 11

Quiz
•
9th Grade
20 questions
Unit 2.3 Robust Programs MCQs L1

Quiz
•
10th - 11th Grade
15 questions
Gateway Level 3 Python Quiz 3

Quiz
•
9th - 12th Grade
15 questions
Iteration

Quiz
•
9th - 12th Grade
15 questions
Pętla for i while

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade