Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Giant GCSE Computer Science Quiz

Total questions: 74

Worksheet time: 1hrs 7mins

Name
Class
Date
1.

What is decomposition in computational thinking?

a)

Breaking a problem into smaller parts

b)

Making a program run faster

c)

Sorting data

d)

Checking data types

2.

What is abstraction?

a)

Ignoring irrelevant details

b)

Finding patterns in data

c)

Writing pseudocode

d)

Converting data types

3.

Pattern recognition is used to:

a)

Identify trends and similarities

b)

Ignore errors

c)

Write flowcharts

d)

Search databases

4.

Define decomposition.

4 lines
5.

What is the purpose of abstraction?

4 lines
6.

Which of the following is NOT part of computational thinking?

a)

Decomposition

b)

Compilation

c)

Abstraction

d)

Pattern recognition

7.

Which step comes first in solving a problem using computational thinking?

a)

Testing

b)

Pattern recognition

c)

Decomposition

d)

Programming

8.

Which of these best describes an algorithm?

a)

A detailed instruction to solve a problem

b)

A type of loop

c)

A random process

d)

A program error

9.

Name two benefits of using pattern recognition.

4 lines
10.

What does computational thinking help with?

a)

Understanding hardware

b)

Writing essays

c)

Problem solving

d)

Cleaning up code

11.

What does a rectangle represent in a flowchart?

a)

Input/Output

b)

Decision

c)

Process

d)

Start/End

12.

What shape is used for decision making in flowcharts?

a)

Oval

b)

Rectangle

c)

Diamond

d)

Circle

13.

What does an oval represent in a flowchart?

a)

Process

b)

Start/End

c)

Loop

d)

Error

14.

What is the purpose of a flowchart?

4 lines
15.

Which of these is NOT a valid flowchart symbol?

a)

Circle

b)

Rectangle

c)

Diamond

d)

Oval

16.

What symbol is used for an input/output in a flowchart?

(a)  

17.

Which search algorithm checks each item one by one?

a)

Binary

b)

Linear

c)

Bubble

d)

Sort

18.

What is a key requirement for binary search to work?

a)

Data must be sorted

b)

Data must be small

c)

Data must be unsorted

d)

Data must be in a queue

19.

Which search algorithm is faster on a large sorted list?

a)

Linear

b)

Binary

c)

Bubble

d)

None

20.

Define linear search.

4 lines
21.

When would you use linear search instead of binary search?

4 lines
22.

In binary search, what happens if the middle item is too high?

a)

Search lower half

b)

Search upper half

c)

Restart search

d)

Sort the list

23.

Which search algorithm has worst-case time complexity of O(n)?

a)

Binary search

b)

Linear search

c)

Bubble sort

d)

Merge sort

24.

How many comparisons would binary search need for a list of 16 items?

(a)  

25.

Binary search divides the list into:

a)

3 parts

b)

2 parts

c)

4 parts

d)

All items

26.

Write one advantage of binary search.

4 lines
27.

What is the main idea of bubble sort?

a)

Insert each item

b)

Compare and swap adjacent items

c)

Use divide and conquer

d)

Search the middle item

28.

When does bubble sort stop?

a)

When data is sorted

b)

After one pass

c)

After half the list is sorted

d)

It never stops

29.

Bubble sort has a worst-case time complexity of:

a)

O(log n)

b)

O(n)

c)

O(n^2)

d)

O(1)

30.

What happens during one pass of bubble sort?

4 lines
31.

Bubble sort is best suited for:

a)

Large datasets

b)

Real-time applications

c)

Small datasets

d)

Parallel processing

32.

What data type is used for whole numbers in Python?

a)

Float

b)

Int

c)

String

d)

Boolean

33.

What data type is used for whole numbers in Python?

a)

Float

b)

Int

c)

String

d)

Boolean

34.

What does a Boolean value represent?

a)

Text

b)

Decimal

c)

True/False

d)

Number

35.

What is the data type of 3.14?

a)

String

b)

Boolean

c)

Int

d)

Float

36.

Which of these is a string?

a)

"42"

b)

42

c)

True

d)

4.2

37.

Name two numeric data types in Python.

(a)  

38.

What data type would you use for user input that is text?

(a)  

39.

What is a variable?

a)

A fixed value

b)

A named storage for data

c)

A comment

d)

A Python module

40.

Which is a valid variable name in Python?

a)

1name

b)

name_1

c)

name-1

d)

print

41.

What is the purpose of a variable?

4 lines
42.

Which of these assigns a value to a variable in Python?

a)

a = 5

b)

a == 5

c)

5 = a

d)

a := 5

43.

Write Python code to store the number 10 in a variable called `score`.

(a)  

44.

What does `len("hello")` return?

a)

4

b)

5

c)

6

d)

Error

45.

What does `"hello".upper()` return?

a)

hello

b)

HELLO

c)

Hello

d)

error

46.

How do you get the first character of a string `name`?

a)

name(0)

b)

name[0]

c)

name{0}

d)

name

47.

Write Python code to join "Hello" and "World" with a space.

4 lines
48.

What function can be used to convert a string to lowercase?

(a)  

49.

What is sequence in programming?

a)

Choosing between options

b)

Repeating code

c)

Executing code in order

d)

Randomizing code

50.

What is selection in Python?

a)

`for` loop

b)

`if` statement

c)

`while` loop

d)

`print`

51.

What is iteration?

a)

Repeating a block of code

b)

Choosing between options

c)

Declaring variables

d)

Sorting data

52.

What keyword is used for a loop that repeats a known number of times?

(a)  

53.

Write a Python `if` statement that checks if age is over 18.

(a)  

54.

What does the `range(3)` produce?

a)

1, 2, 3

b)

0, 1, 2

c)

1, 2, 3, 4

d)

0, 1, 2, 3

55.

What will this print? `for i in range(2): print(i)`

a)

1 2

b)

0 1

c)

1 2 3

d)

0 1 2

56.

Which loop checks a condition before each repetition?

a)

for

b)

print

c)

while

d)

if

57.

Write a Python loop that prints numbers 1 to 5.

4 lines
58.

Which of these is NOT a valid control structure?

a)

Sequence

b)

Iteration

c)

Compilation

d)

Selection

59.

How many bits are in a byte?

a)

4

b)

8

c)

16

d)

2

60.

1 kilobyte =

a)

1000 bytes

b)

1024 bytes

c)

500 bytes

d)

2048 bytes

61.

What is the unit used to measure file sizes?

(a)  

62.

What is bigger than a megabyte?

a)

Kilobyte

b)

Gigabyte

c)

Byte

d)

Bit

63.

Arrange the following in size (smallest to largest): KB, MB, GB

(a)  

64.

What is 1010 in decimal?

a)

10

b)

8

c)

6

d)

12

65.

Convert 15 to binary.

a)

1111

b)

1001

c)

1101

d)

1010

66.

Convert binary 1101 to decimal.

(a)  

67.

What is the hexadecimal of decimal 10?

a)

9

b)

A

c)

B

d)

C

68.

Convert hex F to decimal.

(a)  

69.

Which binary number equals 7?

a)

111

b)

1010

c)

100

d)

110

70.

What is a pixel?

a)

A programming error

b)

A single point in an image

c)

A variable

d)

A byte

71.

Image resolution is measured in:

a)

Bits

b)

Kilobytes

c)

Pixels

d)

Characters

72.

What affects image file size?

a)

Resolution

b)

Colour depth

c)

Both A and B

d)

None

73.

What is colour depth?

4 lines
74.

Increasing colour depth will:

a)

Decrease file size

b)

Increase quality

c)

Make file smaller

d)

Use fewer pixels