Font size
WorksheetsBig OCR GCSE Computer Science Quiz
Total questions: 87
Worksheet time: 45mins
What is an embedded system?
A computer which resides within a larger system or device
A computer which helps a larger computer
A computer which can be embedded within your body
A computer small which can run on batteries
Which of the following are embedded systems?
Laptop
Thermostat
Television
MP3 player
Smartphone
The character set of a computer is a list of all the characters available to the computer.
True
False
Which of the following are valid character sets? (choose 2)
ASCII / extended ASCII
ANVILL
Unicode
EBIC
Which python statement assigns a numerical value input by a user and stores it in a variable of data type integer
num = input("Enter a number")
num = str(input("Enter a number"))
num = int(input("Enter a number"))
input("Enter a number") = num
"A named place to store a value that can change" is called a ...
Subroutine
Variable
Constant
Operator
A boolean data type hold what type of data?
Whole number
A group of characters
Single Character
True/ False
A WHILE loop is...
Condition Controlled
Count Controlled
Uncontrolled
Strongly Controlled
In if...elif...else statement in python uses which programming concept?
Sequence
Selection
Iteration
Proliferation
What is the value of x?
x = 16 MOD 5
3
1
3.2
21
What is the value of x?
x = 16 DIV 5
1
3
3.2
11
The repeated execution of a section of code when a program is running is known as...
Sequence
Selection
Iteration
Subroutine
Benefits of Open Source Software are
Its Free
Its owned by Microsoft
It can be adapted
its easy to read
Perform a 2 place left shift on 00110011?
11001100
00001100
01100110
00011001
To scramble data so that it is unreadable is a form of….?
Compression
Encryption
Backup
Defragmentation
JPEG is which type of compressed file format?
Lossy
Lossless
What is the Sample Rate?
How many times we have to play a sound in order for it to be high quality.
The speed of a signal going into a computer or microphone
How many different samples we take of a file.
How often per second we sample an analogue sound
What is Bit Depth
The file size of the sound when saved in digital form
The amount of times per second we take a snapshot of a sound
The amount of detail captured with each sample of a file
How many times we sample a sound
Which of these numbers is represented by 4 bits?
10111
00101
0100
10011001
How many bits is this file?
Sample Rate = 10
Length = 3 Seconds
Bit Depth = 4
120 bits
34 bits
17 bits
120000 bits
Which of these components is internal to a computer and is required to connect the computer to a network?
Wireless Access Point
Network Interface card
Switch
Hub
This holds the memory location of the current instruction being worked on
Memory Address Register
Program Counter
Memory Data Register
Accumulator
What is the purpose of a DNS Server?
Delivers requested pages to the end user
Takes an IP address and directs the traffic to the correct human readable web address address
Takes a human readable web address and directs the traffic to the correct IP address
Streams video to an end user sequentially so that it may be watched without full download
A CPU clocked at 1hz would...
Process one instruction per second
Process one hundred instructions per second
Process one thousand instructions per second
Process one million instructions per second
A CPU clocked at 2Ghz would...
Process 2 million instruction per second
Process 2 billion instructions per second
Process 2 thousand instructions per second
Process 2 hundred instructions per second
Which of these never changes on a device
MAC address
IP address
look at the following code. What programming technique is number?
argument
parameter
global
look at the following code. What programming technique is in place with the number 5?
argument
parameter
global
tick the advantages of using subroutines
•Allows the code to be re-used
•Allows the coder to be easier to read/maintainability
•Allows you to spot errors easier as they will be contained into the subroutines
•Allows you to bitrate them
•Allows you to transfix them
Procedures and Functions differ in one way
Procedures return a value
Functions return a vlaue
False - they are the same
True- the both use OOP
Convert the binary value 00111011 to hexadecimal
3B
4C
B3
27
Convert A6 to Binary...
1001 0110
1010 1001
1010 0110
1111 1001
Convert 1011 to decimal...
8
9
10
11
What is the largest decimal number that can be represented by 8 bits?
64
127
255
256
What component holds the address of the next instruction
Memory Data Register
Accumulator
Memory Address Register
Program Counter
What is the hexadecimal equivalent of the binary number 1101?
9
D
7
A
Which search algorithm is most efficient for a sorted list?
Linear Search
Binary Search
Bubble Sort
Insertion Sort
In a binary search algorithm, what is the first step?
Check the middle element of the list
Check the first element of the list
Check the last element of the list
Sort the list
Which sorting algorithm repeatedly finds the minimum element from the unsorted part and puts it at the beginning?
Bubble Sort
Selection Sort
Insertion Sort
Merge Sort
Which data type is used to store a sequence of characters?
Integer
Boolean
Float
String
What is the binary representation of the decimal number 13?
1101
1010
1110
1001
Which component of the CPU is responsible for fetching instructions from memory?
Cache
ALU
Control Unit
Accumulator
Which device is used to connect multiple computers within a local area network?
Firewall
Modem
Router
Switch
What does the ALU in a CPU stand for?
Arithmetic Logic Unit
Analog Logic Utility
Automatic Load Unit
Advanced Link Utility
Which statement in Python is used to repeat a block of code a specific number of times?
for
break
if
elif
Which data type is best for storing the result of a comparison operation?
Integer
Float
String
Boolean
What is the decimal equivalent of the binary number 100101?
25
41
53
37
Which algorithm divides the list into halves to search for an item?
Bubble Sort
Selection Sort
Binary Search
Linear Search
Which of the following is an example of iteration in Python?
x = 10
if x > 5: print(x)
for i in range(5): print(i)
def add(a, b): return a + b
What is the hexadecimal representation of the binary number 10101100?
AC
BC
AB
CA
Which programming concept allows a program to choose between two or more paths based on a condition?
Selection
Iteration
Sequence
Abstraction
Which unit is used to measure the bit depth in digital audio?
Hertz
Decibels
Bits
Bytes
What is the decimal value of the binary number 1110?
12
14
15
13
Which programming structure allows you to repeat a block of code a specific number of times?
IF statement
FOR loop
CASE statement
Function
Which of the following is NOT a valid data type in most programming languages?
Boolean
String
Integer
Fraction
Which of the following is the hexadecimal representation of the decimal number 255?
10
AA
F0
FF
Which of the following is an example of selection in Python?
while x < 5: x += 1
for i in range(3): print(i)
if age >= 18: print('Adult')
print('Hello World')
Which data type is most suitable for storing a person's age?
String
Float
Boolean
Integer
Which register temporarily holds data that is being transferred to or from memory?
Instruction Register
Accumulator
Memory Data Register
Program Counter
Which of the following is a valid example of an iteration in programming?
Using a FOR loop to print numbers 1 to 10
Declaring a variable
Writing a comment
Assigning a value to a constant
What is the main function of the Program Counter in a CPU?
To store the result of calculations
To manage input/output operations
To hold the address of the next instruction
To store user data
Which of the following is a valid binary number?
12345
11010
10201
21001
What is the hexadecimal equivalent of the decimal number 255?
F0
1F
AA
FF
Which of the following is NOT a characteristic of an array?
Stores multiple values
All elements are of the same data type
Can store values of different types
Indexed by position
Which of the following is the binary representation of the decimal number 13?
1101
1001
1110
1010
Which of the following statements best describes a FOR loop in programming?
It repeats a block of code a set number of times
It stores data in memory
It checks a condition and executes code only once
It converts binary to decimal
What is the binary representation of the decimal number 8?
1111
1100
1010
1000
Which data type would you use to store whether a light is ON or OFF?
Float
String
Boolean
Integer
What is the hexadecimal representation of the binary number 11010110?
B4
F2
96
D6
Which register in the CPU holds the address of the next instruction to be executed?
Instruction Register
Program Counter
Accumulator
Memory Data Register
Which of the following is used to uniquely identify a device on a network?
MAC address
Subnet mask
Port number
Gateway address
What is the decimal equivalent of the binary number 1001?
10
8
9
7
Which of the following is an example of a conditional statement in programming?
print('Hello')
name = 'Alice'
for i in range(5): print(i)
if score >= 50: print('Pass')
What is the main purpose of a function in programming?
To perform a specific task and optionally return a value
To repeat a block of code a specific number of times
To store data permanently
To connect to the internet
Which of the following best describes an array?
A function that returns a value
A collection of elements of the same data type stored in a sequence
A device used to connect computers
A single value stored in memory
Which of the following is an example of a loop that repeats until a condition is false?
SWITCH statement
IF statement
FOR loop
WHILE loop
Which register in the CPU is responsible for holding the address of the next instruction to be executed?
Control Unit
Memory Data Register
Program Counter
Accumulator
What is the binary representation of the decimal number 18?
10010
11001
11100
10110
Which of the following is an example of selection in programming?
Using a WHILE loop to repeat actions
Declaring a variable
Using an IF statement to check if a number is positive
Writing a comment in code
