  Representing Algorithms in Pseudo-code

Quiz by GCSE AQA Computer Science

GCSE (AQA)
Computer Science
English National Curriculum

Feel free to use or edit a copy

includes Teacher and Student dashboards

### Measures 1 skill fromGCSE (AQA)Computer ScienceEnglish National Curriculum

3.1.1.b

Track each student's skills and progress in your Mastery dashboards

• edit the questions
• save a copy for later
• start a class game
• view complete results in the Gradebook and Mastery Dashboards
• automatically assign follow-up activities based on students’ scores
• assign as homework
• share a link with colleagues
• print as a bubble sheet

### Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!  12 questions
• Q1
What does the pseudo-code shown here do? Adds the user input to existing value of A
Names a variable to match the user input
Creates a variable called 'A' and assigns this with the value of a user input
Asks a user to input 'A'
45s
3.1.1.b
• Q2
What does the following algorithm return? 'Comp'
'mpute'
'puter'
'COM', 'PUTER S'
45s
3.1.1.b
• Q3
What does the pseudo-code shown here do? adds the number 29 to a string
converts the string value 29 to an integer value
concatenates the integer 29 and string 29
adds the integer 29 and string 29
45s
3.1.1.b
• Q4
Which of these algorithms correctly shows adding items to a list called 'names'? 3
1
2
4
45s
3.1.1.b
• Q5
What is the correct pseudo-code for showing a randomly generated integer from 1 to 20?
RANDOM_INT(1,20)
RANDOM(1,20)
RANDOM.RANDINT(1,20)
RAND.INT(1-20)
45s
3.1.1.b
• Q6
In most programming languages, what is the equivalent of this pseudo code symbol? =!
==
=
!=
45s
3.1.1.b
• Q7
What does the pseudo code shown here do? Adds an item to the array in index positions 3 and 2
returns the value of a 2D array from item found in the 3rd column, 2nd row
Delete the item found in the 3rd row, 2nd column
returns the value of a 2D array from item found in the 3rd row, 2nd column
45s
3.1.1.b
• Q8
What is the correct pseudo-code for showing comments and annotations?
#
::
//
##
45s
3.1.1.b
• Q9
What does the pseudo-code shown do? converts a file to programming code
converts a character to its ascci equivalent
converts a character to an integer
converts an ascii character to an integer
45s
3.1.1.b
• Q10
What does the pseudo-code shown here do? moves the letter p in the string 'computer science'
prints the index position of the letter p
returns the index position of the letter p
adds the letter p to 'computer science'
45s
3.1.1.b
• Q11
What does the pseudo-code shown here do? creates a for loop that prints a 99 times
prints a = 1 and then a = 99
creates a for loop that prints a 100 times
creates a while loop that keeps going until a = 99
45s
3.1.1.b
• Q12
What must always go at the end of a WHILE loop in pseudo-code?
ENDWHILE
DO UNTIL
END
WHILE FINISH
45s
3.1.1.b

Teachers give this quiz to your class