1
A robot is programmed to move forward while its path is clear. Which loop should its program use?
A SUBROUTINE used for reusable code only
B IF used for selection only
C WHILE
D FOR
What looks wrong with Question 1?
Send anonymously
Cancel
2
A smartphone app repeats a song 3 times. Which loop should it use?
A WHILE
B IF used for selection only
C FOR
D REPEAT UNTIL
What looks wrong with Question 2?
Send anonymously
Cancel
3
What is sequence in a program?
A A named block of code that can be called when needed
B Instructions carried out one after another in order
C A block of instructions repeated until a condition is met
D A choice between two paths in a program
What looks wrong with Question 3?
Send anonymously
Cancel
4
A FOR loop runs from 2 to 5. How many times does the loop body run?
A 3
B 40
C 5
D 4
What looks wrong with Question 4?
Send anonymously
Cancel
5
How many times does a REPEAT UNTIL loop run at least?
A Zero times
B Once
C Ten times
D Twice
What looks wrong with Question 5?
Send anonymously
Cancel
6
What is a string data type used for?
A A sequence of characters such as a name
B A value that is only True or False
C A whole number with no decimal point, in some situations
D A number with a decimal point
What looks wrong with Question 6?
Send anonymously
Cancel
7
What is meant by calling a subroutine?
A Running the subroutine from another part of the program
B Writing the subroutine for the first time
C Deleting the subroutine from the program
D Testing the subroutine with no input at all, in some situations
What looks wrong with Question 7?
Send anonymously
Cancel
8
What is the value of 2 + 2 * 7?
A 15
B 160
C 16
D 28
What looks wrong with Question 8?
Send anonymously
Cancel
9
In AQA pseudocode, what does DIV do?
A It gives the whole number part of a division
B It gives the remainder after a division
C It multiplies two numbers together
D It gives the answer as a decimal number, in some situations
What looks wrong with Question 9?
Send anonymously
Cancel
10
What is the value of True OR True?
A 1
B True
C False
D 0
What looks wrong with Question 10?
Send anonymously
Cancel