wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Pseudocode

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.
What does the word 'pseudo' mean in the context of pseudocode?
a)
Complex and confusing
b)
Precise and accurate
c)
Technical and detailed
d)
Not genuine or fake
2.
What is the purpose of conditional statements in pseudocode?
a)
To repeat a set of instructions
b)
To store data in memory
c)
To perform mathematical calculations
d)
To make decisions based on certain conditions
3.
How is pseudocode different from a programming language?
a)
Pseudocode is less precise and more human-readable
b)
Pseudocode is used for gaming programs
c)
Programming languages are more complex than pseudocode
d)
Programming languages are only used for web development
4.
Which command is used to output data in pseudocode?
a)

Output / Print

b)
Input
c)

While

d)
Variable
5.
What is the purpose of pseudocode in programming?
a)
To analyze data structures
b)
To develop hardware components
c)
To create complex computer graphics
d)
To describe algorithms using simple English statements
6.
Which command is used to ask the user for input in pseudocode?
a)
if-else
b)
print
c)
output
d)
input
7.
Which of the following is a common way to represent an algorithm before it is made into a program?
a)
Pseudocode
b)
Programming language
c)
Mathematical equations
d)
Hardware components
8.
What is a computer program?
a)
A set of instructions for a computer to follow
b)
A type of software used for gaming
c)
A physical device used for computing
d)
A type of computer hardware
9.
What is the purpose of input and output in programming?
a)
To interact with the user and display results
b)
To store data in memory
c)
To perform complex calculations
d)
To control the flow of a program
10.
Which of the following is an example of pseudocode?
a)
if (x < 10) then output 'Less than 10'
b)
while loop { print 'Hello' }
c)
for (i = 0; i < 5; i++) { print i; }
d)
int main() { return 0; }
11.
Which of the following is easier to understand: pseudocode or flowcharts?
a)
Pseudocode
b)
Both are equally easy to understand
c)
Flowcharts
d)
Neither is easy to understand
12.
How would you represent an algorithm using pseudocode?
a)
Using graphical representations
b)
Using complex programming languages
c)
Using mathematical symbols only
d)
Using short English words/statements
13.
What is the main difference between pseudocode and a programming language?
a)
Programming languages are used for gaming programs
b)
Pseudocode is less precise and more human-readable
c)
Programming languages are more complex than pseudocode
d)
Pseudocode is used for web development
14.
Write pseudocode for a program that asks the user to input a number and then outputs 'Positive' if the number is greater than 0, and 'Negative' if the number is less than or equal to 0.
a)
Number = input('Enter a number') if Number < 0 then output('Positive') else output('Negative')
b)
Number = input('Enter a number') if Number > 0 then output('Negative') else output('Positive')
c)
Number = input('Enter a number') if Number < 0 then output('Negative') else output('Positive')
d)
Number = input('Enter a number') if Number > 0 then output('Positive') else output('Negative')
15.
What is an algorithm?
a)
A type of computer virus
b)
A type of computer game
c)
A sequence of instructions used to solve a problem
d)
A hardware component of a computer
16.
Write pseudocode that asks the user to input two numbers, multiplies them together, and then outputs the result.
a)
Num1 = input('Enter first number') - Num2
b)
Num1 = input('Enter first number') * Num2
c)
Num1 = input('Enter first number') + Num2
d)
Num1 = input('Enter first number') / Num2
17.
Write pseudocode that asks the user to input a number and then outputs the number multiplied by 5.
a)
Number = input('Enter a number') + 5
b)
Number = input('Enter a number') - 5
c)
Number = input('Enter a number') * 5
d)
Number = input('Enter a number') / 5
18.
What is a variable in programming?
a)
A named storage location for data
b)
A type of computer virus
c)
A hardware component of a computer
d)
A type of programming language
19.
What is the opposite of an input command in programming?
a)
Print
b)
Output
c)
If-Else
d)
Variable
20.
Which of the following is a key characteristic of pseudocode?
a)
Hardware-dependent
b)
Machine-readable
c)
Human-readable
d)
Mathematically precise