wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AQA Computer Science 8525 Giant Quizizz - Paper 1 (Python)

Total questions: 100

Worksheet time: 43mins

Name
Class
Date
1.

An algorithm is

a)

sequence of steps to complete a task

b)

instructions for a computer to follow

c)

breaking a problem down into chunks

d)

a flowchart

2.

Breaking a problem down into a number of sub problems, so each sub-problem accomplishes a identifiable task, is called...

a)

Decomposition

b)

Abstraction

c)

Analysis

d)

Processing

3.

Process of taking away or removing irrelevant characteristics in terms of the problem being solved in order to reduce it to something simpler to understand is called...

a)

Decomposition

b)

Abstraction

c)

Analysis

d)

Processing

4.

What is the table called?

a)

Testing Table

b)

Trace Table

c)

Truth Table

d)

Technical Table

5.

What should be the value in the yellow box?

a)

1

b)

3

c)

4

d)

5

6.

When would this function return TRUE?

a)

When the num is equal to 0

b)

When the num is even

c)

When the num is odd

d)

When 2 = 0

7.

What does MOD do?

a)

finds the remainder when dividing two numbers

b)

like division but returns a whole number or integer

c)

divides the first value by the second value and returns a decimal

d)

'powers of'

8.

num is an example of a

a)

parameter

b)

constant

c)

varied number

d)

return value

9.

The difference between a function and a procedure is that a function MUST

a)

return a value

b)

contain a loop

c)

be passed a parameter

d)

contain MOD

10.

A value that doesn't change when the program is running is called a

a)

variable

b)

constant

c)

loop

d)

condition

11.

> < = are all examples of

a)

relational operators

b)

mathematical operators

c)

comparison statements

d)

if statement controllers

12.

The output would be...

a)

true

b)

false

13.

Which type of loop runs a set number of times?

a)

FOR loop

b)

WHILE loop

c)

DO UNTIL loop

d)

Infinite loop

14.

What would the output be from this piece of code?

a)

0 1 2 3 4 5 6 7 8 9 10

b)

1 2 3 4 5 6 7 8 9 10

c)

0 1 2 3 4 5 6 7 8 9

d)

0 1 2 3 4 5 7 8 9 10

15.

This loop would continue infinitely as it's missing a line of code. What is missing where the question mark is?

a)

index = index + 1

b)

index = 1

c)

END LOOP

d)

REPEAT LOOP

16.

This loop is known as a

a)

conditional controlled loop

b)

count controlled loop

c)

infinite loop

d)

repeat loop

17.

What would this pseudo code output?

a)

0 1 2 3 4 5

b)

1 2 3 4 5

c)

0 1 2 3 4

d)

0 1 2 3 4 5 6

18.

A numeric value (1, 2, 3) without a decimal is called

a)

an integer

b)

a boolean

c)

a real

d)

a character

19.

Which data type uses a floating point and is sometimes known as a float?

a)

an integer

b)

a boolean

c)

a real

d)

a character

20.

Which data type can store a single, alphanumeric character? (includes letters, numbers or symbols)

a)

an integer

b)

a boolean

c)

a real

d)

a character

21.

What two values can be represented in a boolean?

a)

1 and 2

b)

true and false

c)

correct and wrong

d)

ant and dec

22.

What would the output be?

a)

Fortnite

b)

F

c)

8

d)

7

23.

What would the output be?

a)

John Smith

b)

JohnSmith

c)

JOHNSMITH

d)

J Smith

24.

A structure that contains many items of data of the same type is called

a)

an array

b)

a variable

c)

a constant

d)

a sorting list

25.

What is the output?

a)

4

b)

5

c)

6

d)

7

26.

Which sorting algorithm sorts an unordered list by comparing adjacent items?

a)

Bubble

b)

Merge

c)

Binary

d)

Quick

27.

Which sorting algorithm sorts an unordered list by repeatedly dividing a list into two smaller lists until the size of each list becomes one. Also known as divide and conquer.

a)

Bubble

b)

Merge

c)

Binary

d)

Quick

28.

Bubble Sort is (select two)

a)

Simplest and easiest to code

b)

Slowest

c)

Fastest

d)

More difficult to code

29.

A linear search

a)

starts at the beginning of the list and moves through each item one by one until it finds a matching value or gets to the end

b)

looks at the middle term of a sorted list and compares it with the search value to dispose of half of the list

c)

only works when you're looking for words and symbols

d)

only works when you have an odd amount of values in a list/array

30.

A binary search

a)

starts at the beginning of the list and moves through each item one by one until it finds a matching value or gets to the end

b)

looks at the middle term of a sorted list and compares it with the search value to dispose of half of the list

c)

only works when you're looking for words and symbols

d)

only works when you have an odd amount of values in a list/array

31.

A logical error is where

a)

your code won't run because you've typed something incorrectly

b)

your code will run but won't do what you want it to do

c)

your code will crash half way through running

d)

an IDE will show you there's a problem

32.

What are the two types of variables? Select two.

a)

Local

b)

Global

c)

Quick

d)

Accessible

33.

Local variables

a)

are used within a subroutine or loop, and are then discarded when they have completed their work

b)

are used within the main program and can be used by any of the commands or subroutines in the program

34.

Which type of test checks the highest and lowest acceptable numbers, and those just inside or outside the acceptable range?

a)

Boundary Test

b)

Erroneous Test

c)

Beta Testing

d)

Normal Test

35.

A REPEAT UNTIL loop does a comparison

a)

at the beginning of the code block

b)

at the end of the code block

36.

What is the name given to a variable called?

a)

identifier

b)

variable name

c)

calling id

d)

declared name

37.

>

a)

greater than

b)

less than

c)

equal to

d)

not equal to

38.

What are the two criteria that make a good algorithm?

a)

Efficiency

b)

Correctness

c)

Selection

d)

Iteration

39.

FOR, WHILE and DO UNTIL are all examples of

a)

Iteration

b)

Selection

c)

Sequence

d)

Error Prevention

40.

Which of these is an example of an IDE?

a)

PHP

b)

C#

c)

Visual Studio

d)

VB.Net

41.

"Rubber Duck" is an example of which data type?

a)

Integer

b)

String

c)

Boolean

d)

Decimal/Real

42.

Which of the following would be the most appropriate way of declaring a variable?

a)

1HouseNumber

b)

House Number

c)

houseNumber

d)

thePropertyorBuildingHouseNumber

43.

There are two ways you can name variables - carSpeed or car_speed. What is it called when you remove the space but capitalise every word after the first word - carSpeed?

a)

Upper Case

b)

Snake Case

c)

Lower Case

d)

Camel Case

44.

What is this boolean condition in plain English?


IF 30 < 20 THEN

a)

If 30 is less than 20 then

b)

If 30 is more than 20 then

45.

If the user entered '4', what would be the output?

a)

Home

b)

About

c)

Play Game

d)

Settings

e)

Exit

46.

What would be the output of the following piece of pseudocode?

a)

Option A

b)

Option B

47.

Select a loop that is a type of definite iteration

a)

FOR

b)

WHILE

c)

DO UNTIL

48.

A presence check

a)

checks the data is a certain type

b)

checks the data falls within a range

c)

checks the field not left blank

d)

checks the data matches a pattern

e)

checks the data is a certain amount of characters

49.

What is the technique in which the system checks data against a set of predetermined rules?

a)

Validation

b)

Verification

50.

The error above is an example of what type of error?

a)

Syntax Error

b)

Runtime Error

c)

Logical Error

51.

The error above is an example of what type of error?

a)

Syntax Error

b)

Runtime Error

c)

Logical Error

52.

If we wanted to test to see if our code would accept the days in the month of November, which of the following would be an acceptable boundary test?

a)

1, 30

b)

0, 31

c)

5, 25

d)

2, 31

53.

Which of these is NOT a type of IDE diagnostic tool?

a)

Variable Tracing

b)

Breakpoint

c)

Step

d)

Loop Recorder

54.

Which of the following is a valid output from this function? (select all that apply)

a)

2

b)

5

c)

7

d)

0

e)

error

55.

Indexing starts at 0

OUTPUT Students[2][1]

a)

English

b)

Maths

c)

Smith

d)

Green

56.

What is it called when you set values in an array, before you use the array?

a)

Initialising an array

b)

Starting an array

c)

Building an array

d)

Locating an array

57.

SUBSTRING(2, 9, 'computer science')

a)

mputer s

b)

co

c)

mputer

d)

cmptrscec

58.

What is this string handling operation called?

a)

Substring

b)

Concatenation

c)

Conversion

d)

Positioning

59.

What would you expect to write where the question mark is...


RECORD Car

make : __?__

model : ___

num_doors : ___

price : ___

END RECORD

a)

String

b)

Integer

c)

Car

d)

Ford

60.

Select the correct method for declaring a variable in Python

a)

name = “Bob”

b)

name == “Bob”

c)

name as Int = "Bob"

d)

"Bob" = name

61.

Select the correct method for assigning a value to a variable in Python

a)

score = 5

b)

score == 5

c)

score as Int = 5

d)

5 = score

62.

Select the correct method for obtaining a user input in Python

a)

name = INPUT

b)

name = input(“Enter an input”)

c)

name = user_input[]

d)

user_input - "Please enter your name"

63.

Select the correct method for outputting data to the screen in Python 3.

a)

OUTPUT "Hello World"

b)

PRINT (Hello World)

c)

print("Hello World")

d)

print "Hello World"

64.

What word would go in the empty space in Python


IF age > 18:

print("Tickets will be £20")

____ age > 12:

print("You get a student ticket at £10")

else:

print("Child tickets are £5")

a)

else if

b)

elif:

c)

else if:

d)

elif

65.

Which of these would be the correct way of declaring a definite loop in Python?

a)

for i in range(1,20):

b)

while lives > 3:

c)

for names 1 to 10:

d)

while score is more than 10 { }

66.

Which of these is the correct way to declare an array in Python?

a)

scores = (10, 12, 11, 5)

b)

scores = 10, 12, 11, 5

c)

scores = [10, 12, 11, 5]

d)

scores = {10, 12, 11, 5}

67.

How would I retrieve the number 12 from the array?

scores = [10, 12, 11, 5]

a)

print(scores[1])

b)

print(scores[2])

c)

print(scores)

d)

print("NUMBER 12")

68.

Correctly create a substring of the variable 'surname' in Python.

a)

surname.substring(0,2)

b)

substring(surname,0,2)

c)

surname.break{0,2}

d)

surname[0:2]

69.

What would this do in Python?


chr(83)

a)

Error

b)

Store 83 in a variable

c)

Turn 83 to '8' and '3'

d)

Convert the ASCII 83 to 'S'

70.

If I created a subroutine in Python what would I need in the gap?


____ VATcal(cost):

a)

def

b)

SUBROUTINE

c)

sub

d)

declare

71.

Which line of Python would I need in the gap (orange line) to make this work?

a)

total = item_cost + 12

b)

total = item_cost + VATcal(item_cost)

c)

total = item_cost + VAT

d)

VATcal(item_cost)

72.

This should print out the word "Bananas" 10 times... what have I done wrong?

a)

Put the loop between 0,10 instead of 0,11

b)

Not included a : on the end of line 1

c)

print should be PRINT

d)

Bananas doesn't need speech marks

73.

What parameter should go on the blue line?

a)

10

b)

area

c)

height

d)

width

74.

What is the error on line 2?

a)

Colon missing :

b)

Speech marks missing " "

c)

print should be PRINT

d)

print shouldn't have brackets

75.

What is the error on line 4?

a)

Colon missing :

b)

Speech marks missing " "

c)

PRINT should be print

d)

print shouldn't have brackets

76.

Which line contains an error?

a)

1

b)

2

c)

3

d)

4

77.

What's the error?

a)

else shouldn't have a :

b)

Line 1 should be if answer == 35:

c)

The indentation is wrong

d)

35 should be in speech brackets

78.

How many mistakes can you spot in this piece of code? (time has been extended for this question!)

a)

2

b)

3

c)

4

d)

5

79.

What is the error on line 6?

a)

multiplier should be in speech marks

b)

str isn't a Python function

c)

It's missing a bracket on the end )

d)

You can't add two strings together

80.

What would be the output?

a)

Coke

b)

Pizza

c)

Ice Cream

d)

Nothing

81.

What is the correct way of creating a random number in Python?

a)

random.randint(1,10)

b)

RANDOM(1,10)

c)

random.generate[1,10]

d)

rand.om(10)

82.

This is an example of creating what in Python?

a)

Function

b)

Procedure

c)

Record

d)

TypeCast

83.

In Python variable names must NOT have ______

a)

spaces

b)

capital letters

c)

underscores _

d)

numbers

84.

What would happen if you entered 'strawberry' as your password?

a)

It would say "Welcome! You're logged in"

b)

It would say "Sorry wrong password"

c)

An error would occur

d)

It would ask you to type in another password

85.

What is NOT an advantage of using a function

a)

Functions and procedures can be reused instead of repeating code

b)

If changes are needed, they can be made to just one block of code

c)

It is easier to organise the order in which the program runs

d)

Functions make it easier for the programmer to code complicated problems

86.

Which is the correct symbol to use in Python to add a comment?

a)

"

b)

@

c)

#

d)

_

87.

What would you expect this code to do?

a)

print each letter in the word one at a time

b)

print the word "computing"

c)

print i 8 times

d)

print 1,2,3,4,5,6,7,8

88.

What would this output?

a)

An error

b)

16

c)

15

d)

Computer Science

89.

What's the smallest number I could enter that would return "Number is big"

a)

99

b)

100

c)

101

d)

102

90.

Which of these could I enter to get my code to say "Thank You"

a)

[8] [6]

b)

[100] [50]

c)

[12] [3]

d)

[9] [120]

91.

What would I write on line 4 to call the function 'hello' in Python

a)

call "hello"

b)

call hello("Bob")

c)

hello("Bob")

d)

hello(Bob)

92.

What could I enter to get the code to say "Yep!"

a)

Any odd number

b)

Any even number

c)

0

d)

21

93.

What does the % sign mean in Python?

a)

DIV

b)

MOD

c)

divide

d)

XOR

94.

What would this code output?

a)

colours

b)

Blue, Green, Red

c)

Green, Red, Pink

d)

Green, Red

95.

What is wrong with this Python code?

a)

age should be in speech marks

b)

no indentation

c)

else doesn't need a colon :

d)

should end with an endif

96.

This is an example of

a)

Iteration

b)

Selection

c)

Sequence

d)

Variable Declaration

97.

What would be a suitable error message to enter in our except?

a)

Please enter an integer

b)

You didn't enter anything

c)

Please enter a string

d)

Error in the code, please try again

98.

Bonus question: What is the debugging method called where you talk your code through line by line to try and find errors?

a)

Line by line checking

b)

Rubber duck debugging

c)

Quick questioning

d)

Debug the debugger

99.

Bonus question: which of these is NOT a programming language?

a)

Ook!

b)

LOLCODE

c)

Chicken

d)

TikTokie

100.

How many times will the word "Apple" appear on the screen?

a)

49

b)

50

c)

1

d)

0