wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Big OCR GCSE Computer Science Quiz

Total questions: 87

Worksheet time: 45mins

Name
Class
Date
1.

What is an embedded system?

a)

A computer which resides within a larger system or device

b)

A computer which helps a larger computer

c)

A computer which can be embedded within your body

d)

A computer small which can run on batteries

2.

Which of the following are embedded systems?

a)

Laptop

b)

Thermostat

c)

Television

d)

MP3 player

e)

Smartphone

3.

The character set of a computer is a list of all the characters available to the computer.

a)

True

b)

False

4.

Which of the following are valid character sets? (choose 2)

a)

ASCII / extended ASCII

b)

ANVILL

c)

Unicode

d)

EBIC

5.

Which python statement assigns a numerical value input by a user and stores it in a variable of data type integer

a)

num = input("Enter a number")

b)

num = str(input("Enter a number"))

c)

num = int(input("Enter a number"))

d)

input("Enter a number") = num

6.

"A named place to store a value that can change" is called a ...

a)

Subroutine

b)

Variable

c)

Constant

d)

Operator

7.

A boolean data type hold what type of data?

a)

Whole number

b)

A group of characters

c)

Single Character

d)

True/ False

8.

A WHILE loop is...

a)

Condition Controlled

b)

Count Controlled

c)

Uncontrolled

d)

Strongly Controlled

9.

In if...elif...else statement in python uses which programming concept?

a)

Sequence

b)

Selection

c)

Iteration

d)

Proliferation

10.

What is the value of x?


x = 16 MOD 5

a)

3

b)

1

c)

3.2

d)

21

11.

What is the value of x?

x = 16 DIV 5

a)

1

b)

3

c)

3.2

d)

11

12.

The repeated execution of a section of code when a program is running is known as...

a)

Sequence

b)

Selection

c)

Iteration

d)

Subroutine

13.

Benefits of Open Source Software are

a)

Its Free

b)

Its owned by Microsoft

c)

It can be adapted

d)

its easy to read

14.

Perform a 2 place left shift on 00110011?

a)

11001100

b)

00001100

c)

01100110

d)

00011001

15.

To scramble data so that it is unreadable is a form of….?

a)

Compression

b)

Encryption

c)

Backup

d)

Defragmentation

16.

JPEG is which type of compressed file format?

a)

Lossy

b)

Lossless

17.

What is the Sample Rate?

a)

How many times we have to play a sound in order for it to be high quality.

b)

The speed of a signal going into a computer or microphone

c)

How many different samples we take of a file.

d)

How often per second we sample an analogue sound

18.

What is Bit Depth

a)

The file size of the sound when saved in digital form

b)

The amount of times per second we take a snapshot of a sound

c)

The amount of detail captured with each sample of a file

d)

How many times we sample a sound

19.

Which of these numbers is represented by 4 bits?

a)

10111

b)

00101

c)

0100

d)

10011001

20.

How many bits is this file?

Sample Rate = 10

Length = 3 Seconds

Bit Depth = 4

a)

120 bits

b)

34 bits

c)

17 bits

d)

120000 bits

21.

Which of these components is internal to a computer and is required to connect the computer to a network?

a)

Wireless Access Point

b)

Network Interface card

c)

Switch

d)

Hub

22.
Which component would calculate the result of 6 * 4?
a)
Accumulator
b)
ALU
c)
Control Unit
d)
MAR
23.

This holds the memory location of the current instruction being worked on

a)

Memory Address Register

b)

Program Counter

c)

Memory Data Register

d)

Accumulator

24.

What is the purpose of a DNS Server?

a)

Delivers requested pages to the end user

b)

Takes an IP address and directs the traffic to the correct human readable web address address

c)

Takes a human readable web address and directs the traffic to the correct IP address

d)

Streams video to an end user sequentially so that it may be watched without full download

25.

A CPU clocked at 1hz would...

a)

Process one instruction per second

b)

Process one hundred instructions per second

c)

Process one thousand instructions per second

d)

Process one million instructions per second

26.

A CPU clocked at 2Ghz would...

a)

Process 2 million instruction per second

b)

Process 2 billion instructions per second

c)

Process 2 thousand instructions per second

d)

Process 2 hundred instructions per second

27.

Which of these never changes on a device

a)

MAC address

b)

IP address

28.
What gets passed to the MAR?
a)
The instruction
b)
Both the instruction and data
c)
The address to the next instruction or data
d)
The data
29.
What is the purpose of the accumulator?
a)
To store intermediate data
b)
To store decoded data
c)
To analyse the data
d)
To pass instructions
30.
What gets stored in the MDR?
a)
The address to the next instruction or data
b)
The program which is loaded from main memory
c)
The data retrieved from the MAR
d)
The instruction from main memory
31.

look at the following code. What programming technique is number?

a)

argument

b)

parameter

c)

global

32.

look at the following code. What programming technique is in place with the number 5?

a)

argument

b)

parameter

c)

global

33.

tick the advantages of using subroutines

a)

Allows the code to be re-used

b)

Allows the coder to be easier to read/maintainability

c)

Allows you to spot errors easier as they will be contained into the subroutines

d)

Allows you to bitrate them

e)

•Allows you to transfix them

34.

Procedures and Functions differ in one way

a)

Procedures return a value

b)

Functions return a vlaue

c)

False - they are the same

d)

True- the both use OOP

35.

Convert the binary value 00111011 to hexadecimal

a)

3B

b)

4C

c)

B3

d)

27

36.

Convert A6 to Binary...

a)

1001 0110

b)

1010 1001

c)

1010 0110

d)

1111 1001

37.

Convert 1011 to decimal...

a)

8

b)

9

c)

10

d)

11

38.

What is the largest decimal number that can be represented by 8 bits?

a)

64

b)

127

c)

255

d)

256

39.
Repeating steps or instructions over and over again, using loops
a)
Iteration
b)
Selection
c)
Sequence
d)
Abstraction
40.
A character set that uses between 8 and 32 bits per character, so it can represent characters from languages from all around the world
a)
Unicode
b)
Hexadecimal
c)
ASCII
d)
Binary
41.

What component holds the address of the next instruction

a)

Memory Data Register

b)

Accumulator

c)

Memory Address Register

d)

Program Counter

42.

What is the hexadecimal equivalent of the binary number 1101?

a)

9

b)

D

c)

7

d)

A

43.
Data structure where all data is stored and defined under one variable name
a)
Array
b)
Integer
c)
String
d)
Boolean
44.
Identifying and fixing errors in a program
a)
Debugging
b)
Indentation
c)
Compression
d)
Concatenation
45.

Which search algorithm is most efficient for a sorted list?

a)

Linear Search

b)

Binary Search

c)

Bubble Sort

d)

Insertion Sort

46.

In a binary search algorithm, what is the first step?

a)

Check the middle element of the list

b)

Check the first element of the list

c)

Check the last element of the list

d)

Sort the list

47.

Which sorting algorithm repeatedly finds the minimum element from the unsorted part and puts it at the beginning?

a)

Bubble Sort

b)

Selection Sort

c)

Insertion Sort

d)

Merge Sort

48.

Which data type is used to store a sequence of characters?

a)

Integer

b)

Boolean

c)

Float

d)

String

49.

What is the binary representation of the decimal number 13?

a)

1101

b)

1010

c)

1110

d)

1001

50.

Which component of the CPU is responsible for fetching instructions from memory?

a)

Cache

b)

ALU

c)

Control Unit

d)

Accumulator

51.

Which device is used to connect multiple computers within a local area network?

a)

Firewall

b)

Modem

c)

Router

d)

Switch

52.

What does the ALU in a CPU stand for?

a)

Arithmetic Logic Unit

b)

Analog Logic Utility

c)

Automatic Load Unit

d)

Advanced Link Utility

53.

Which statement in Python is used to repeat a block of code a specific number of times?

a)

for

b)

break

c)

if

d)

elif

54.

Which data type is best for storing the result of a comparison operation?

a)

Integer

b)

Float

c)

String

d)

Boolean

55.

What is the decimal equivalent of the binary number 100101?

a)

25

b)

41

c)

53

d)

37

56.

Which algorithm divides the list into halves to search for an item?

a)

Bubble Sort

b)

Selection Sort

c)

Binary Search

d)

Linear Search

57.

Which of the following is an example of iteration in Python?

a)

x = 10

b)

if x > 5: print(x)

c)

for i in range(5): print(i)

d)

def add(a, b): return a + b

58.

What is the hexadecimal representation of the binary number 10101100?

a)

AC

b)

BC

c)

AB

d)

CA

59.

Which programming concept allows a program to choose between two or more paths based on a condition?

a)

Selection

b)

Iteration

c)

Sequence

d)

Abstraction

60.

Which unit is used to measure the bit depth in digital audio?

a)

Hertz

b)

Decibels

c)

Bits

d)

Bytes

61.

What is the decimal value of the binary number 1110?

a)

12

b)

14

c)

15

d)

13

62.

Which programming structure allows you to repeat a block of code a specific number of times?

a)

IF statement

b)

FOR loop

c)

CASE statement

d)

Function

63.

Which of the following is NOT a valid data type in most programming languages?

a)

Boolean

b)

String

c)

Integer

d)

Fraction

64.

Which of the following is the hexadecimal representation of the decimal number 255?

a)

10

b)

AA

c)

F0

d)

FF

65.

Which of the following is an example of selection in Python?

a)

while x < 5: x += 1

b)

for i in range(3): print(i)

c)

if age >= 18: print('Adult')

d)

print('Hello World')

66.

Which data type is most suitable for storing a person's age?

a)

String

b)

Float

c)

Boolean

d)

Integer

67.

Which register temporarily holds data that is being transferred to or from memory?

a)

Instruction Register

b)

Accumulator

c)

Memory Data Register

d)

Program Counter

68.

Which of the following is a valid example of an iteration in programming?

a)

Using a FOR loop to print numbers 1 to 10

b)

Declaring a variable

c)

Writing a comment

d)

Assigning a value to a constant

69.

What is the main function of the Program Counter in a CPU?

a)

To store the result of calculations

b)

To manage input/output operations

c)

To hold the address of the next instruction

d)

To store user data

70.

Which of the following is a valid binary number?

a)

12345

b)

11010

c)

10201

d)

21001

71.

What is the hexadecimal equivalent of the decimal number 255?

a)

F0

b)

1F

c)

AA

d)

FF

72.

Which of the following is NOT a characteristic of an array?

a)

Stores multiple values

b)

All elements are of the same data type

c)

Can store values of different types

d)

Indexed by position

73.

Which of the following is the binary representation of the decimal number 13?

a)

1101

b)

1001

c)

1110

d)

1010

74.

Which of the following statements best describes a FOR loop in programming?

a)

It repeats a block of code a set number of times

b)

It stores data in memory

c)

It checks a condition and executes code only once

d)

It converts binary to decimal

75.

What is the binary representation of the decimal number 8?

a)

1111

b)

1100

c)

1010

d)

1000

76.

Which data type would you use to store whether a light is ON or OFF?

a)

Float

b)

String

c)

Boolean

d)

Integer

77.

What is the hexadecimal representation of the binary number 11010110?

a)

B4

b)

F2

c)

96

d)

D6

78.

Which register in the CPU holds the address of the next instruction to be executed?

a)

Instruction Register

b)

Program Counter

c)

Accumulator

d)

Memory Data Register

79.

Which of the following is used to uniquely identify a device on a network?

a)

MAC address

b)

Subnet mask

c)

Port number

d)

Gateway address

80.

What is the decimal equivalent of the binary number 1001?

a)

10

b)

8

c)

9

d)

7

81.

Which of the following is an example of a conditional statement in programming?

a)

print('Hello')

b)

name = 'Alice'

c)

for i in range(5): print(i)

d)

if score >= 50: print('Pass')

82.

What is the main purpose of a function in programming?

a)

To perform a specific task and optionally return a value

b)

To repeat a block of code a specific number of times

c)

To store data permanently

d)

To connect to the internet

83.

Which of the following best describes an array?

a)

A function that returns a value

b)

A collection of elements of the same data type stored in a sequence

c)

A device used to connect computers

d)

A single value stored in memory

84.

Which of the following is an example of a loop that repeats until a condition is false?

a)

SWITCH statement

b)

IF statement

c)

FOR loop

d)

WHILE loop

85.

Which register in the CPU is responsible for holding the address of the next instruction to be executed?

a)

Control Unit

b)

Memory Data Register

c)

Program Counter

d)

Accumulator

86.

What is the binary representation of the decimal number 18?

a)

10010

b)

11001

c)

11100

d)

10110

87.

Which of the following is an example of selection in programming?

a)

Using a WHILE loop to repeat actions

b)

Declaring a variable

c)

Using an IF statement to check if a number is positive

d)

Writing a comment in code