What is the main purpose of a translator in programming?
To convert high-level code into machine-readable code
To optimize code for faster execution
To display errors in the code
Which of these is NOT a feature of an IDE?
Code editor
Assembly language translation
Error diagnostics
What does the run-time environment in an IDE do?
Translates high-level code into machine code
Manages program execution and interaction with the system
Provides a space to write code
Which of these Boolean operations would result in a 0 if both inputs are 1?
AND
OR
NOT
Which of these is an environmental concern caused by digital devices?
Less use of printers
E-waste from old hardware
People buying cheaper devices
What is the purpose of encryption software?
To make data unreadable without a key
To stop apps from opening
To delete duplicate files
What is the main purpose of input validation?
To check that input is suitable before processing
To hide the user's input
To display data
What is a benefit of data compression?
It reduces file size
It increases the size of files
It slows down file opening
What is the cloud used for?
Printing over a network
Remote storage and services
Generating Wi-Fi signals
What is the output of A OR B when A = 1 and B = 0?
1
0
Undefined
Which of the following is a benefit of using layers in a network protocol model?
It speeds up the physical hardware
Each layer can be updated independently
Data is stored more securely
Why is encryption used on a network?
To make data unreadable to unauthorised users
To speed up network traffic
To delete old files
What task would utility software perform?
Sending emails
Displaying websites
Cleaning up and maintaining the system
Which method best protects against brute-force attacks?
Clicking on all email links
Strong, complex passwords
Keeping files on the desktop
Which factor is most likely to affect a network’s performance?
Number of devices connected
The screen resolution of devices
Type of keyboard used
Which storage type is best for long-term backups but slow to access?
SSD
DVD
Magnetic tape
What would happen if you used binary search on an unsorted list?
It will work faster as a binary search does not need the list to be sorted
It may return the wrong result or fail
It will sort the list first
Why is data interception a threat?
It increases download speed
It allows attackers to steal sensitive data
It fixes broken files
Why might a structure diagram be used when designing an algorithm?
To measure CPU speed
To display user output
To show the breakdown of tasks or functions
What type of test data is used to make sure a program handles extreme but valid input?
Erroneous test data
Boundary test data
Redundant test data
Why is an embedded system used in a washing machine?
It is designed for a specific task
It can run multiple apps at once
It has powerful graphics
What is the main job of a switch in a network?
Stores all user passwords
Connects two different networks
Sends data to the correct device
In a peer-to-peer network, how are resources shared?
Resources are downloaded from the Internet
One main server controls the network
All computers share resources equally
What is a drawback of proprietary software?
It always needs Internet
You can’t edit the source code
It doesn’t work on laptops
What is the output of an AND gate when both inputs are 1?
0
1
Undefined
What does defragmentation do to files on a hard drive?
Reorganises them for quicker access
Deletes the smallest files
Moves them to the cloud
What is a MAC address used for?
Identifying a device on a local network
Identifying a device on a wide area network
Logging into email accounts
How can user access levels improve security?
They improve screen brightness
They slow down hackers
They control who can access certain files
What is the primary advantage of using an IDE when writing code?
Allows you to run code directly in a browser
Provides tools to write, debug, and compile code in one place
Requires no installation on the computer
What is the result of NOT A when A = 0?
0
1
Undefined
What would name[0:4] do to the string name = "Alice"?
Return "Alice"
Return "lice"
Return "Alic"
Which is an effect of a left binary shift by +1 position?
The value is doubled
The value is halved
The binary code becomes shorter
Why might Ethernet be chosen over Wi-Fi in an office setting?
It is faster and more reliable
It is easier to install
It works better when travelling
What does the accumulator do?
Stores the result of calculations
Holds addresses from memory
Stores large programs
What is a privacy concern with using cloud storage?
The screen might be too bright
It makes files harder to find
Data may be stored or accessed by third parties
What is a common sign of a phishing email?
It has perfect grammar
It comes from a friend
It asks for your personal details
What SQL keyword is used to find data in a table?
FIND
SELECT
SEARCH
What is abstraction in computational thinking?
Making the problem more complex
Deleting all inputs and outputs including prompts and error messages
Focusing on important details and ignoring irrelevant ones
What does a file need to be before you can write data to it in code?
Printed
Read
Opened
What is the purpose of a function in a program?
To perform a reusable task and return a value
To perform a reusable task but do not return a value
To stop the program
How does an insertion sort work?
It splits the list in half
It builds a sorted list one item at a time
It swaps adjacent items repeatedly
Which algorithm checks every item in a list until the target is found or list ends?
Binary search
Merge sort
Linear search
What does casting mean in programming?
Converting one data type to another
Repeating a value
Making a variable constant
How does cache size affect the CPU's interaction with RAM?
Larger cache removes the need for RAM
Larger cache increases RAM speed
Larger cache reduces the need to access RAM
Which of these would limit scope of a variable to just inside a function?
Declaring it globally
Declaring it as a local variable
Casting the variable
Why might a faster clock speed not always mean a faster CPU?
Other factors like cache and cores also affect it
It always makes the CPU overheat
It changes the CPU’s architecture
Which task is an example of multitasking?
Charging your phone
Installing antivirus software
Running a music player and typing a document
Why might adding more cores not always improve performance?
More cores increase cache size
More cores always double the speed
Some software doesn’t use multiple cores
What is the main advantage of binary search over linear search?
It is faster for sorted data
It works on unsorted data
It doesn’t need any comparisons
Which of these tools in an IDE assists with managing program execution during testing?
Translator
Code editor
Run-time environment
Which storage type has no moving parts and is very fast?
Solid state drive (SSD)
Optical drive
Magnetic tape
What is a driver used for?
To open video files
To help hardware work with the operating system
To run software updates
What is the main difference between RAM and ROM?
RAM stores BIOS, ROM stores apps
RAM is non-volatile, ROM is volatile
RAM is volatile, ROM is non-volatile
Which loop is controlled by a condition being true or false?
For loop
While loop
If statement
Why do operating systems need to manage memory?
To store Internet cookies
To share RAM between programs
To block viruses
Why is the Von Neumann architecture still used today?
It allows only one type of memory
It separates data and instructions completely
It offers a simple design for stored programs
What type of security is using locks and cameras in a server room?
Logical security
Physical security
Firewall protection
How does increasing the clock speed affect CPU performance?
Allows more instructions per second
Makes the CPU cooler to avoid overheating
Makes RAM faster
What is one advantage of using a CD (optical storage)?
It is portable and cheap
It is very fast
It lasts forever
What is a variable used for in programming?
To perform calculations
To store a value that can change
To print results
Why does a computer need primary storage?
To store the monitor’s settings
To back up user files
To store data and programs currently in use
What is one purpose of the Data Protection Act 2018?
To protect people’s personal data
To stop illegal downloads
To prevent identity cards
Which type of error occurs when the algorithm runs but produces incorrect results?
Syntax error
Logic error
Compilation error
Which of these is an example of a normal test value for age (1–100)?
45
-1
"forty-five"
What is a DNS used for?
Blocks dangerous websites
Stores website passwords
Converts a web address into an IP address
What is the formula to calculate a sound file size?
Bit depth + sample rate + frequency
Sample rate × duration × bit depth
Resolution × sample rate × duration