wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

COMPUTER SCIENCE - QUIZZ

Total questions: 30

Worksheet time: 25mins

Name
Class
Date
1.

What are the key Functions of an operating system?
Select all that apply

a)

Hardware Management: Controls devices like the keyboard, mouse, screen, storage, and printer.

b)

Networking: Allows the computer to connect with other devices and networks.

c)

Security: Protects the computer from unauthorized access.

d)

None of above

2.

What is the time complexity of inserting an element at the beginning of a singly linked list?

a)

O(n^2)

b)


O(n)

c)

O(log n)

d)

O(1)

3.

A London-based AI company develops an application to classify customer emails. The classification logic is implemented in a custom scripting language. Debugging shows the script is misclassifying certain patterns.

Which phase of the compiler should be reviewed?

a)

Machine code generation

b)

Code optimization

c)

Abstract syntax tree generation

d)

Lexical analysis

4.

A logistics company in Leeds needs to process a large volume of input data from sensors. They decide to use a compiler that generates highly optimized code. However, they observe delays during the code compilation process.


Which optimization is most likely to slow down the compilation process?

a)

Syntax analysis

b)

Code inlining

c)

Register allocation

d)

Dead code elimination

5.

Why is applications generation considered important?

a)

It helps to enhance productivity, education, and entertainment.

b)

It allows software developers to earn revenue.

c)

It eliminates the need for coding knowledge.

d)

It ensures applications are always open source.

6.

A fintech company in London is building a secure payment gateway system. They decide to use static linking for some critical libraries to ensure that the executable works consistently across their deployed servers. However, they notice that the size of their executables has increased significantly compared to when they used dynamic linking.



What is a potential reason the company chose static linking despite the increase in executable size?

a)

To enhance the performance of the payment gateway by using fewer system resources.

b)

To comply with GDPR requirements in the UK.

c)

To allow for easier updates to the library code after deployment.

d)

To reduce runtime dependency on external library files.

e)

None of the above

7.

An e-commerce company is launching a new website in the UK. The website will sell a variety of products.

What are some of the key considerations for designing a secure e-commerce website?

a)

The website should use HTTPS to encrypt data.

b)

The website should have strong passwords and two-factor authentication.

c)

The website should be regularly updated with security patches.

d)

All of the above.

8.

What is the difference between a compiler and an interpreter?

a)

A compiler translates the entire program at once, while an interpreter translates one line at a time.

b)

A compiler translates the program into machine code, while an interpreter executes the program directly.

c)

A compiler is faster than an interpreter.

d)

All of the above.

9.

What is the first step in the compilation process?

a)

Syntax analysis

b)

Semantic analysis

c)

Lexical analysis

d)

Code generation

10.

What is the main drawback of using Quick Sort for a highly skewed dataset?

a)

The algorithm’s partitioning leads to uneven divisions, causing a worst-case time complexity of O(n^2).

b)

Quick Sort has a high average-case complexity of O(n^2).

c)

Quick Sort requires additional space, making it inefficient for large datasets.

d)

It cannot handle datasets with duplicate elements efficiently.

11.


What is the primary reason why Merge Sort is considered more efficient than Quick Sort for large datasets with many duplicate values?

a)

Merge Sort’s worst-case time complexity is better than Quick Sort's.

b)

Merge Sort is stable, while Quick Sort may not be stable, especially for duplicate values.

c)

Merge Sort avoids recursion, which Quick Sort heavily relies on.

d)

Merge Sort uses a better partitioning strategy than Quick Sort.

12.

What is the best-case time complexity of quick sort?



(a)  

13.

This question is related to Networks:
What does a packet's header contain?

a)

The total size of the packet

b)

The sender's and receiver's information

c)

The content of the data

d)

The content of the data

14.


What does "half duplex" mode allow for in data transmission?

a)

Data can travel in both directions simultaneously.

b)

Data can only be transmitted in large blocks.

c)

Data can travel only in one direction at a time.

d)

Data cannot travel at all.

15.

Which transmission mode allows data to travel in both directions simultaneously?

a)

Half duplex

b)

Duplex

c)

Serial

d)

Simplex

16.

What is bandwidth a measure of?

a)

The speed of data processing

b)

The number of devices in a network

c)

How much data can be transmitted over a network at one time

d)

The distance a signal can travel

17.

Fill in the blank:

(a)   helps identify when an error has occurred in a data packet, so the sender can resend it.

18.

How does layering in abstraction help developers?

a)

By introducing more complex details

b)

By hiding implementation details in each layer

c)

By avoiding the use of algorithms

d)

By focusing only on the concrete solution

19.

What is the main goal of abstraction in problem-solving?

a)

To generalize ideas and hide unnecessary details

b)

To focus on every detail of the implementation

c)

To understand hardware components

d)

To increase complexity in algorithms

20.

A smart home system abstracts the lighting system into "turn on/off" buttons, hiding the internal communication with devices like switches and sensors.

Why is abstraction beneficial in this smart home system?

a)

It requires users to configure sensors directly.

b)

It exposes all sensor mechanics to the user.

c)

It increases the complexity of user interaction.

d)

It focuses on simplifying user control of lights.

21.

A team is developing software for an automated parking system. Instead of focusing on how each sensor detects a car, the team abstracts the problem into a general "car detected" signal. This abstraction simplifies the system by ignoring the exact mechanism of sensors.

Why is abstraction useful in this scenario?

a)

It eliminates the need for car detection altogether.

b)

It focuses on simplifying the system by generalizing key processes.

c)

It adds unnecessary complexity to the system.

d)

It ensures each sensor type requires unique programming.

22.

An online shopping platform wants to improve its search feature. Currently, users can search for products based on keywords. The developers propose abstracting the search process to allow filtering based on categories like price range, ratings, and product availability. This abstraction will hide the underlying algorithm but provide a simple, flexible user interface.

What is the primary purpose of abstracting the search process in this case?

a)

To make the algorithm more complex for developers.

b)

To reduce user interaction with the platform.

c)

To hide implementation details while focusing on a user-friendly experience.

d)

To display all available search algorithms to the user.

23.

A car manufacturing company uses robotic arms to assemble vehicles on the production line. The robotic arms are programmed to perform specific tasks like welding, attaching bolts, and painting. Instead of coding each robotic arm individually for every car model, the engineers have created a set of generalized instructions that are abstracted into modular "tasks" like “weld component” or “paint part.” These abstract instructions are reused across different car models, reducing the need for repetitive programming.

What advantage does the company gain by abstracting robotic tasks into modular instructions?

a)

It makes the robotic arms work independently without supervision.

b)

It eliminates the need for any programming of robotic arms.

c)

It increases the complexity of programming because tasks must be unique for each car.

d)

It allows for reusability and reduces programming effort across car models.

24.

A growing e-commerce website notices that its product pages take a long time to load for returning customers. To address this, the developers implement a caching strategy where product images, descriptions, and reviews are stored locally on users' browsers. However, some users report seeing outdated product prices.



What likely caused the outdated product prices on the website?

a)

The cache size is too small to store product prices.

b)

Cache validation was not performed to check for updates.

c)

The cache retrieval process is slower than usual.

d)

The original server is down, causing a cache miss.

25.

An SEO tool caches webpage previews and metadata to reduce the time needed to fetch results repeatedly.

What benefit does caching provide in this tool?

a)

It decreases internet connectivity needs.

b)

It replaces the need for search queries.

c)

It automatically updates the internet content.

d)

It provides faster access to frequently used data.

26.

A UK supermarket introduced a range of international foods with packaging that used cultural symbols. However, some cultural groups found the packaging to be offensive and stereotypical. The public backlash led the company to pull the products and issue an apology.

What is the primary ethical concern in this scenario?

a)

The product packaging was culturally insensitive and perpetuated stereotypes.

b)

The company violated data protection rules when launching the products.

c)

The company failed to disclose the nutritional information of its products.

d)

The company used customer data without consent for market research.

27.

A UK housing agency accidentally published tenants' rent payment histories on its website. The data included overdue balances and tenant names, causing embarrassment and distress to those affected.

Which principle of the Data Protection Act 1998 is being violated?

a)

Personal data must not be shared without consent.

b)

Personal data must be processed securely.

c)

Personal data must be accurate and up to date.

d)

Personal data must not be kept longer than necessary.

28.

A tech company in the UK uses an AI-driven recruitment system to filter candidates. The algorithm reviews resumes and selects candidates based on patterns from previous successful employees. However, it is later revealed that the AI system unintentionally favours male applicants because it was trained on historical hiring data that showed a male-dominated workforce. This led to allegations of bias and discrimination.

What is the key ethical issue in this scenario?

a)

The system violates data security standards.

b)

The AI failed to process personal data lawfully.

c)

The company did not inform candidates about data retention policies.

d)

The AI system lacks fairness and transparency in decision-making.

29.

A telecommunications company based in the UK had a practice of retaining customer call records for several years, far beyond the period required for business purposes. A customer requested that their personal data be deleted, but the company was unable to comply as the data was still stored in their system. The company had a blanket policy of retaining all call logs indefinitely for analysis, which was not specified during customer registration.


Which principle of the Data Protection Act 1998 is most likely being violated here?

a)

Personal data must be processed securely.

b)

Personal data must not be transferred outside the EU without adequate protection.

c)

Personal data must be processed fairly and lawfully.

d)

Personal data must not be kept longer than necessary.

30.

A health-tracking app based in the UK has users input sensitive personal health data, including weight, exercise routines, and diet. The app collects this information to offer personalized recommendations. However, users did not realize that the app also shares anonymized data with external research organizations for marketing and product development purposes. Several users expressed concern about how their data was used without their full understanding, claiming they were not adequately informed of this practice during the sign-up process.


Which principle of the Data Protection Act 1998 is most likely being violated?

a)

Personal data must be kept secure.

b)

Personal data must not be used for purposes beyond the scope of consent.

c)

Personal data must not be transferred to external parties without legal safeguards.

d)

Personal data must be processed transparently and fairly.