NEW
Font size
WorksheetsCOMPUTING YEAR 5
Total questions: 25
Worksheet time: 13mins
Why is it important to give a clear name to each variable?
A) It makes the code longer
B)It makes the code look fancy
C)It helps others understand the purpose of the variable
D)It is not important at all
What is a variable in programming?
A) A fixed value
B) A changeable value
C) A constant value
D) A random value
What is the way with which computers represent data?
A) In letters and numbers
B) In colours and shapes
C) In binary code, using 0 and 1
D) In words and sentences
C) In binary code, using 0 and 1
If you were to write your name using binary code, what would each letter be represented by?
A) 0 and 1
B) Different colours
C) Shapes and patterns
D) Words and phrases
What does a variable allow you to do in a program?
A)Store and manipulate data
B) Print text on the screen
C) Create loops
D) Change the program's colour.
What is the purpose of using variables in algorithms?
A) To make the code confusing
B) To save time while coding
C) To store and manage data
D) To create errors in the program
C) To store and manage data
Why do computers use binary code to represent data?
A) Because it's easy to use
B) Because it's the language the computer understands
C) Because binary code is difficult to understand
D) Because it's colourful and fun
Which of the following is the smallest unit of data used in computers?
A) Bit
B) Byte
C) Kilobyte
D) Megabyte
What is the purpose of using variables in algorithms?
A) To make the code confusing
B)To save time while coding
C)To store and manage data
D) To create errors in the program
C) To store and manage data
What is the correct way to represent a text string in a variable?
A) name
B) action
C) drama
D) phone.
A) name
Which of the following is a storage device?
A) USB flash drive
B) Monitor
C) OCR
D) Keyboard
What is an algorithm?
A) A type of computer hardware
B) A set of rules or instructions for solving a problem
C) A computer program
D) A physical device
B) A set of rules or instructions for solving a problem
Which keyword is commonly used in a conditional statement to represent "ELSE"?
A)WHEN
B)OTHERWISE
C)ELSE
D) OTHERWISE IF
C) ELSE
What is the purpose of a conditional statement in programming?
A)To confuse the programmer
B)To execute code only if a certain condition is met
C)To create errors in the program
D)To print text on the screen
B) To execute code only if a certain condition is met
Which of the following is an example of an algorithm?
A) A computer mouse
B) A list of computer parts
C) Step-by-step instructions for making a sandwich
D) A computer screen
C) Step-by-step instructions for making a sandwich
What is the main function of an algorithm?
A) To make a computer program look fancy
B) To make a computer program run as slowly as possible
C) To solve a problem or complete a task in a systematic way
D) To confuse computer users
Which keyword is commonly used in a conditional statement to represent "IF"?
A)WHEN
B)BUT
C)IF
D) THEN
C) IF
What does the "ELSE" part of a conditional statement allow you to do?
A)Repeat the code
B)Skip the code
C)Execute an alternative code if the condition is not met
D)Print a message on the screen
C) Execute an alternative code if the condition is not met
1. What is an algorithm that contains selection?
A) A set of instructions for drawing pictures
B) A sequence of steps for solving maths problems
C) A series of if-then decisions to solve a problem
D) A list of random words
Why are "if-then" decisions important in algorithms?
A) They make the algorithm shorter
B) They add complexity to the algorithm
C) They allow the algorithm to make choices based on certain conditions.
D) They make the algorithm colourful
C) They allow the algorithm to make choices based on certain conditions.
In a simple IF-THEN statement, when is the code inside the "THEN" block executed?
A)Always
B)Only if the condition is true
C)Only if the condition is false
D)Before checking the condition
When is the code inside the "ELSE" block executed in a conditional statement?
A)Always
B)Only if the condition is true
C)Only if the condition is false
D)Before checking the condition
C)Only if the condition is false
In an algorithm for making a sandwich, what would be a condition for using a selection statement?
A) To check if the sandwich has lettuce
B) To determine the colour of the plate
C) To count the number of ingredients
D) To decide whether to add mayo or ketchup
In an algorithm for a traffic light, how would you use selection statements to control the light's behaviour at an intersection?
A) Set the light to always show green.
B) Use a random selection for the light's colour.
C) Check the traffic conditions and change the light accordingly
D) Only use red lights.
C) Check the traffic conditions and change the light accordingly
Which of the following storage devices is used to store the largest amount of data?
A) USB flash drive
B) DVD-ROM
C) Hard disk drive (HDD)
D) CD-ROM
