wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GCSE Computer Science Easter Recap

Total questions: 80

Worksheet time: 1hrs 20mins

Name
Class
Date
1.
An IDE checks programming code using a:
a)
Debugger
b)
Fault finder
c)
Breakpoint
d)
Compiler
2.

Integrated Development Environment known as a software application that provide comprehensive facilities to computer programmers for software development. True or false?

a)

True

b)

False

3.

What does IDE stand for?

a)

Intelligent Development Environment

b)

Integrated Design Environment

c)

Intelligent Development Environment

d)

Integrated Development Environment

4.

How many of the following are features that could be found in an IDE?

a)

Code Editor

b)

Image Editor

c)

Libraries

d)

Translator

5.
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
a)
True
b)
False
6.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
7.
A syntax error in your code means:
a)
You have not used enough characters. 
b)
There was no defined index. 
c)
Python can't find a file to pass the code to. 
d)
There is an error with your typing and code structure. 
8.
What's the mistake in this code?
a)
The variable "surname" needs a capital letter (first line of code)
b)
"print" needs a capital letter
c)
"input" needs a capital letter
d)
There are plus signs in the final line of code
9.
What is computational thinking?
a)
It allows you to break down a large / complex problem into smaller parts.
b)
It is thinking like a robot
c)
It is being able to bake a cake.
d)
It is creating a coding solution to a problem.
10.
What are the three key parts of computational thinking?
a)
Programming, flowcharts and pseudo code
b)
Abstraction, decomposition and algorithm
c)
Input, processing and output
d)
Patterns, shapes and numbers
11.
What is abstraction?
a)
A painting
b)
A programming language
c)
This means focusing on the important details and ignoring the irrelevant information
d)
Abstraction is the breaking down of a big problem into smaller parts.
12.
What does decomposition mean?
a)
focuses on the important information only, ignoring irrelevant detail
b)
Step by step instructions on solving a problem.
c)
Thinking like a computer
d)
This is the breaking down of a complex problem into smaller parts
13.
What is an algorithm?
a)
A sequence of instructions on how to solve a problem.
b)
The breaking down of a problem into smaller parts.
c)
Focusing on important parts and ignoring the irrelevant details
d)
The recipe for a cake
14.
What are the two main ways that we represent an algorithm?
a)
By drawing pictures 
b)
Using flowcharts and pseudo code
c)
Using python and small basic
d)
Using Scratch and python
15.
What is a flowchart?
a)
A visual representation of an algorithm using symbols
b)
Using 'fake code' to plan an algorithm
c)
Using a programming language to show an algorithm
d)
Uisng different types of charts to show an algorithm
16.
What does the following symbol represent in a flowchart?
a)
An input
b)
Start
c)
End
d)
A process
17.
What does the following flowchart symbol represent?
a)
A process
b)
An output
c)
A decision (choice)
d)
End
18.
What does the following flowchart symbol represent?
a)
Input / Output
b)
Start of flowchart
c)
A process
d)
End
19.
What does the following flowchart symbol represent?
a)
Process
b)
Input
c)
Start / End
d)
Sub-process
20.

Putting commands in correct order so computers can read the commands

a)

loop

b)

repeat

c)

debugging

d)

sequencing

21.

Finding similarities and differences between parts of a problem is known as ____________.

a)

Pattern recognition

b)

Decomposition

c)

Algorithm design

d)

Abstraction

22.
What data type would be best used to record the number of people at a party?
a)
Integer
b)
Real
c)
String
d)
Boolean
23.
What data type would be best used to record an email address?
a)
String
b)
Integer
c)
Real
d)
Character
24.
What data type would be the answer to the expression x < 5?
a)
Boolean
b)
Character
c)
Real
d)
String
25.

What would you store using the Char data type?

a)

A cartoon character such as Daffy Duck

b)

A string such as PIG

c)

An integer such as 17

d)

A single character such as T

26.

Choose all that are iteration

a)

For z = 1 to Pigs.length - 1

Print(Pig(z))

Next

b)

Do While Pigs(z) <> "grunter"

Print(Pig(z))

z += 1

Loop

c)

If Pigs(z) = "scratcher"

Print("found")

End If

d)

Pigs(z + 1) = console.readline()

27.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
28.

How do we get user input from the keyboard?

a)

input = (What is your name?)

b)

input = What is your name?

c)

output = ("What is your name?")

d)

input("What is your name? ")

29.
Converts a number to a string
a)
str()
b)
int()
c)
parseInt()
d)
convert
30.

What does the print command do?

a)

Outputs a hard copy of a program to a printer

b)

Outputs a message on screen

c)

Print a hard copy of a flow chart to a printer

d)

Prints out the the commands line by line on the screen

31.
Variable names can't start with a number.
a)
True
b)
False
32.
Variable names can include spaces.
a)
False
b)
True
33.
Which of the following variables names is an example of camel case?
a)
totalScore
b)
TOTALSCORE
c)
TotalScore
34.
Which of the following statements can be used to extend selection from a single IF statement?
a)
ELSE
b)
DO
c)
CHOICE
d)
ELK
35.

What symbol must you place at the end of an if statement?

a)

)

b)

:

c)

;

d)

}

36.

What is an indentation in Python?

a)

A line of code that returns a value

b)

A subroutine

c)

A block of code that creates a variable

d)

A code block (body of a function, loop etc.) starts with indentation and ends with the first unintended line.

37.

5 >= 5

a)

True

b)

False

38.

How do you write an 'else if' in Python?

a)

elseif

b)

elif

c)

elife

d)

else

39.

what does != mean

a)

not

b)

swap value

c)

not equal

d)

equal

40.

What will this code print?

a)

access denied

b)

access granted

c)

error

d)

password

41.
What is this operator? /
a)
addition
b)
subtraction
c)
remainder
d)
division - only the whole number
42.
What is this operator? %
a)
Concatenation
b)
Remainder or mod
c)
Division - only the whole number
d)
Escape character
43.

With a NOT operator...

a)

The condition must be true

b)

The condition must be false

c)

Either condition must be true

d)

All conditions must be true

44.

With an AND operator...

a)

Both conditions must be false

b)

Either condition must be true

c)

Both conditions must be true

d)

Both numbers are added together

45.

With an OR operator...

a)

Both conditions must be true

b)

Either, not both, conditions must be true

c)

Either or both conditions must be false

d)

Either or both conditions must be true

46.

What is the maximum number of states that can be represented by a binary pattern of 8 bits?

a)

128

b)

256

c)

1024

d)

512

47.

How do computers represent and manipulate signed integers using two's complement?

a)

Leave the binary representation unchanged

b)

Subtract 1 from the binary representation

c)

Add 1 to the binary representation

d)

Invert all the bits and add 1

48.

What is the unit of data storage that is equivalent to 1024 bytes?

a)

Tebibyte

b)

Mebibyte

c)

Kibibyte

d)

Gibibyte

49.

What is the purpose of data types in programming?

a)

Data types are used to determine the color of text in programming

b)

Data types in programming are used to define the type of data that a variable can hold.

c)

Data types are used to define the size of images in programming

d)

Data types are used to control the speed of animations in programming

50.

How are arrays used in programming?

a)

Arrays are used to perform mathematical operations in programming.

b)

Arrays are used to store only one value in programming.

c)

Arrays are used to create loops in programming.

d)

Arrays are used to store multiple values of the same data type under a single variable name in programming.

51.

What is the syntax for declaring an integer variable in Python?

a)

int variable_name = 0

b)

variable_name = 0

c)

variable_name = '0'

d)

variable_name == 0

52.

How can you access elements in an array?

a)

array.at(index)

b)

array[index]

c)

array{index}

d)

array[element]

53.

Which of the following is a valid way to start a for loop in Python?

a)

for i = 0; i < 10; i++:

b)

for(i = 0; i < 10; i++):

c)

for i in range(10):

d)

for i in 10:

54.
What are the only two numbers you can use in binary?
a)
0 and 1
b)
1 and 2
c)
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
d)
1, 2, 4, 8, 16
55.
What base is the hexadecimal number system?
a)
6
b)
7
c)
12
d)
16
56.
Smallest unit of computer memory
a)
Byte
b)
Kilobyte
c)
Megabyte
d)
Bit
57.
A nibble equals how many bits?
a)
1
b)
8
c)
2
d)
4
58.
What is pseudocode?
a)
Simplified programming language, that is not a specific language
b)
Complicated programming language
c)
Simple programming language, which is linked to a specific language
d)
A type of cheese
59.
What is sound measured in?
a)
Gigabytes
b)
bits
c)
Hertz
d)
Bytes
60.
Colour depth refers to:
a)
How many bits are used in a file to store colour information in every pixel
b)
Resolution divided by the number of colours in an image.
c)
Degree of file compression applied to an image file.
d)
Repeated resampling of an image.
61.

"An organised collection of data values, the relationships among them, and the operations that can be applied to the data"

a)

Data structure

b)

Variable

c)

Program

d)

Function

62.

Correct code to define a list in Python?

a)

scores = [15, 29, 4, 50]

b)

scores = {15, 29, 4, 50}

c)

Int[] scores = {15, 29, 4, 50};

d)

scores = (15, 29, 4, 50)

63.

Choose all the ways in which a Python list is different from an array ...

a)

Arrays have fixed length: Lists have dynamic length

b)

Arrays only contain one data type; Lists can contain many data types

c)

Arrays are indexed from 1; Lists are indexed from 0

d)

Arrays can not be empty; Lists can be empty

64.

Output is ...?

a)

mango

b)

pear

c)

kiwi

d)

['apple','banana','pear']

65.

Choose three valid methods that may be applied to lists in Python ...

a)

list.append(x)

b)

list.count(x)

c)

list.sort()

d)

list.format()

e)

list.isNumeric()

66.

Correct code to access the score 47 in this 2-D list?

a)

scores[1]

b)

scores[1][2]

c)

scores[2][3]

d)

scores[47]

67.

Example of ... ?

a)

Slicing

b)

Indexing

c)

Appending

d)

Concatenating

68.

Example of ... ?

a)

Indexing

b)

Appending

c)

Slicing

d)

Concatenation

69.

Mode in the following program to open file for writing in a mode where new data will be added at the end of old data

file =open("poem.txt","__")

a)

r

b)

w

c)

a

d)

r+

70.

Choose the correct statement to close a file stream named myfile:

a)

myfile.terminate()

b)

myfile.end()

c)

myfile.close()

d)

myfile.remove()

71.

Which function read single line at a time?

a)

read()

b)

read(n)

c)

readline()

d)

readlines()

72.

Which function is used to write multiple lines in text file?

a)

write()

b)

writelines()

c)

lines()

d)

print()

73.
Reading from a file often involves using...
a)
A loop
b)
An condition
c)
Comments
74.

What does the 'R' parameter signify when opening a file in Python?

a)

Read mode

b)

Binary mode

c)

Write mode

d)

Append mode

75.

In what way is a constant different from a variable?

a)

It can not change its value during program execution

b)

It can store more than one value

c)

It can only be used in the global scope

d)

Its name must be written in UPPER CASE

76.

The process of giving a value to a variable?

a)

Assignment

b)

Initialisation

c)

Coercion

d)

Declaration

77.

Choose all the recognised control structures in a computer program ...

a)

Sequence

b)

Selection

c)

Iteration

d)

Duplication

78.

Which of the following command is used to open a file “c:\temp.txt” in write-mode only?

a)

outfile = open(“c:\temp.txt”, “w”)

b)

outfile = open(“c:\\temp.txt”, “w”)

c)

outfile = open(file = “c:\temp.txt”, “w+”)

d)

outfile = open(file = “c:\\temp.txt”, “w+”)

79.

Which of the following command is used to open a file “c:\temp.txt” in read-mode only?

a)

infile = open(“c:\temp.txt”, “r”)

b)

infile = open(“c:\\temp.txt”, “r”)

c)

infile = open(file = “c:\temp.txt”, “r+”)

d)

infile = open(file = “c:\\temp.txt”, “r+”)

80.

Which logic gate is associated with the  truth table?


a)

NAND

b)

OR

c)

NOT

d)

AND