NEW
Font size
WorksheetsUnderstanding Basic Programming Concepts
Total questions: 15
Worksheet time: 8mins
What is an algorithm?
A type of computer
A step by step set of instructions to solve a problem
A programming language
A maths equation
Which of the following is an example of an algorithm in everyday life?
Watching television
Brushing your teeth following a set of steps
Listening to music
Drawing a picture
In programming, what is a 'variable'?
A type of food
A place to store information
A musical instrument
A kind of animal
Which of the following is NOT a basic programming concept?
Loops
Variables
Recipes
Algorithms
What does a 'loop' do in a program?
Stops the program
Repeats a set of instructions
Changes the colour of the screen
Draws a picture
If you want to tell a computer to do something only if a condition is true, which programming concept do you use?
Loop
Variable
If statement
Algorithm
Which of the following is the correct order for writing an algorithm to make a cup of tea?
Pour water, add tea bag, boil water, drink tea
Boil water, add tea bag, pour water, drink tea
Drink tea, add tea bag, boil water, pour water
Add tea bag, drink tea, pour water, boil water
What is the main purpose of using step by step instructions in programming?
To confuse the computer
To make sure the computer knows exactly what to do
To make the program look longer
To use more electricity
Which of the following is a correct example of a variable name?
2apples
apples2
apples-2
apples 2
What does the following algorithm do? 1. Start 2. Get two numbers 3. Add the numbers 4. Show the answer 5. Stop
Multiplies two numbers
Adds two numbers
Subtracts two numbers
Divides two numbers
Which of the following is NOT a step in creating an algorithm?
Identifying the problem
Writing random instructions
Listing the steps in order
Testing the solution
If you want to repeat an action 5 times, which programming concept would you use?
Variable
Loop
If statement
Algorithm
What is the output of this algorithm? 1. Start 2. Set number = 10 3. Add 5 to number 4. Show number 5. Stop
5
10
15
20
Why is it important to write algorithms in the correct order?
So the computer can guess what you mean
So the steps make sense and the problem is solved correctly
To make the program look interesting
To use more memory
Which of the following is an example of a condition in programming?
If temperature >30∘ C, turn on the fan
Draw a picture
Eat lunch
Read a book
