Computer science mid level exam, Exams of Computer Science

This doccument is a computer science document with answers and the correct one

Typology: Exams

2025/2026

Available from 01/07/2026

Professor_dominic
Professor_dominic šŸ‡ŗšŸ‡ø

63 documents

1 / 20

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer science Exam - 1/7/2026
47 questions ready
1A software development team is implementing a new feature for a mobile
application. Which methodology would best support rapid iteration and user
feedback?
AAgile
BWaterfall
CV-Model
DSpiral
Explanation: Agile methodology emphasizes iterative development and frequent user
feedback, making it ideal for rapidly changing requirements.
2In a distributed computing environment, what is the primary purpose of a load
balancer?
ATo enhance security by preventing DDoS attacks
BTo distribute network or application traffic across multiple servers
CTo store backup data in a secure location
DTo monitor server performance metrics
Explanation: A load balancer evenly distributes incoming traffic across multiple servers,
ensuring no single server is overwhelmed.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Computer science mid level exam and more Exams Computer Science in PDF only on Docsity!

Computer science Exam - 1/7/

47 questions ready

1 A software development team is implementing a new feature for a mobile application. Which methodology would best support rapid iteration and user feedback?

A Agile

B Waterfall

C V-Model

D Spiral

Explanation: Agile methodology emphasizes iterative development and frequent user feedback, making it ideal for rapidly changing requirements.

2 In a distributed computing environment, what is the primary purpose of a load balancer?

A To enhance security by preventing DDoS attacks

B To distribute network or application traffic across multiple servers

C To store backup data in a secure location

D To monitor server performance metrics

Explanation: A load balancer evenly distributes incoming traffic across multiple servers, ensuring no single server is overwhelmed.

3 Which of the following best describes the concept of 'inheritance' in object-oriented programming?

A The ability to create new classes from existing ones

B The process of storing data in a database

C The method for encrypting sensitive information

D The technique for optimizing code performance

Explanation: Inheritance allows a new class to inherit properties and methods from an existing class, promoting code reuse.

4 A company is analyzing customer data to predict future purchasing behavior. What type of algorithm are they most likely using?

A Sorting algorithm

B Predictive analytics algorithm

C Pathfinding algorithm

D Compression algorithm

Explanation: Predictive analytics algorithms analyze historical data to make predictions about future outcomes, such as customer behavior.

5 During a software testing phase, a developer discovers that a critical bug only occurs in a specific browser. What type of testing should be prioritized?

A Unit testing

B Integration testing

C Cross-browser testing

8 In a cloud computing environment, what does 'scalability' refer to?

A The ability to recover from data loss

B The capability of a system to increase its capacity and handle growth

C The process of securing data in the cloud

D The method for monitoring system performance

Explanation: Scalability refers to the ability of a system to handle increased load or capacity, either by adding resources (vertical) or by adding more nodes (horizontal).

9 What is the primary goal of data normalization in databases?

A To increase data redundancy

B To improve data integrity and reduce redundancy

C To enhance query performance

D To secure sensitive information

Explanation: Data normalization aims to minimize redundancy and dependency by organizing fields and tables in a database.

10 A user is trying to access a website but gets a '404 Not Found' error. What does this indicate?

A The server is down temporarily

B The requested resource is not available at the server

C The user has been blocked from accessing the website

D The user's internet connection is unstable

Explanation: A '404 Not Found' error indicates that the server cannot find the requested resource, typically because it doesn't exist at the specified URL.

11 A team is using version control to manage their codebase. What is the main advantage of using a branching strategy?

A To reduce the size of the repository

B To allow multiple features to be developed simultaneously without interference

C To prevent data loss during updates

D To enhance the user interface of the application

Explanation: Branching allows different features or fixes to be developed independently, which prevents interference and facilitates collaboration.

12 Which of the following programming paradigms focuses on the use of functions as the primary building blocks of code?

A Object-oriented programming

B Functional programming

C Procedural programming

D Event-driven programming

Explanation: Functional programming treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data.

Explanation: Technical debt refers to the trade-off between the short-term benefits of rapid delivery and the long-term costs of maintaining suboptimal code.

16 A software company wants to improve the performance of its web application. Which technique should they employ to reduce the server load during peak times?

A Implementing caching mechanisms

B Increasing the server's CPU power

C Adding more features to the application

D Conducting code reviews

Explanation: Caching mechanisms store frequently accessed data in memory, reducing the need to repeatedly fetch data from the server, thus lowering server load.

17 A developer is using a version control system to manage changes in their codebase. What is the primary benefit of branching in this context?

A It allows multiple versions of the project to exist simultaneously.

B It reduces the overall size of the repository.

C It makes the code more complex and harder to navigate.

D It prevents any changes from being made to the main codebase.

Explanation: Branching allows developers to work on features or fixes independently without affecting the main codebase, facilitating collaboration and experimentation.

18 A company is analyzing data from customer interactions to predict future buying behaviors. What type of computing is primarily used for this purpose?

A Quantum computing

B Edge computing

C Machine learning

D Cloud computing

Explanation: Machine learning algorithms analyze past data to identify patterns and make predictions about future behaviors.

19 During a cybersecurity audit, a company discovers that many employees use weak passwords. What is the most effective strategy to enhance password security across the organization?

A Implementing a password manager for all employees

B Requiring employees to change their passwords weekly

C Educating employees about password creation

D Monitoring login attempts for unusual activity

Explanation: A password manager helps employees create and store complex passwords securely, reducing the temptation to use weak passwords.

20 A mobile application is crashing frequently due to memory issues. Which programming concept should the developer focus on to resolve this?

A Garbage collection

B Method overloading

C Inheritance

23 A company is transitioning its operations to a microservices architecture. What could be a potential challenge they might face?

A Increased dependency on a single database

B Difficulty in managing inter-service communication

C Reduced scalability

D Simplified deployment processes

Explanation: Microservices architecture introduces multiple services that need to communicate with each other, which can complicate management and increase latency.

24 An online retailer wants to enhance user experience by recommending products based on previous purchases. Which algorithm would be most suitable for this task?

A K-means clustering

B Decision trees

C Collaborative filtering

D Linear regression

Explanation: Collaborative filtering is used in recommendation systems to suggest items based on user behavior and preferences.

25 A software engineer is tasked with improving the loading speed of a web application. Which optimization technique would likely have the most immediate impact?

A Minifying CSS and JavaScript files

B Refactoring the database schema

C Implementing server-side authentication

D Adding more content to the homepage

Explanation: Minifying CSS and JavaScript files reduces file size, leading to faster loading times and improved performance.

26 A tech startup is trying to protect its intellectual property. Which strategy would best help safeguard their software innovations?

A Filing for patents on key algorithms

B Using open-source licenses

C Avoiding documentation

D Encouraging user feedback

Explanation: Patents provide legal protection for inventions and can prevent competitors from using the same technology.

27 A network administrator is assessing the security of their organization's Wi-Fi. What is the best practice to enhance Wi-Fi security?

A Using WPA3 encryption

B Hiding the SSID

C Limiting the number of devices per user

D Disabling the firewall

Explanation: WPA3 encryption offers enhanced security features compared to older standards, protecting the network from unauthorized access.

D The necessity to use a relational model for data storage.

Explanation: NoSQL databases are designed to handle large volumes of unstructured data, making them suitable for scenarios like social media feeds.

31 A software development team is facing issues with version control. They decide to implement a branching strategy. What is the primary benefit of using a branching strategy in version control?

A It allows multiple developers to work on different features simultaneously

without conflicts.

B It simplifies the process of merging code back into the main branch.

C It reduces the need for automated testing.

D It requires fewer resources to manage the repository.

Explanation: A branching strategy enables multiple developers to work on different features at the same time, reducing the likelihood of conflicts.

32 In a recent project, a team used Agile methodology. What is one key characteristic that distinguishes Agile from traditional project management methods?

A Emphasis on extensive documentation before any coding begins.

B Frequent iterations and adaptability to changes throughout the project lifecycle.

C Strict adherence to a predefined project timeline and budget.

D Single-phase development with minimal stakeholder engagement.

Explanation: Agile methodology focuses on iterative development, allowing teams to adapt to changes and incorporate feedback throughout the project.

33 During a security audit, a company discovers that its web application is vulnerable to SQL injection attacks. Which coding practice can help prevent this vulnerability?

A Using dynamic SQL queries for flexibility.

B Implementing parameterized queries or prepared statements.

C Allowing user input directly into SQL commands.

D Disabling error messages to users.

Explanation: Parameterized queries or prepared statements separate SQL code from user input, significantly reducing the risk of SQL injection attacks.

34 A cloud service provider is offering various services. What is a primary advantage of using Platform as a Service (PaaS) over traditional on-premises solutions?

A Complete control over the hardware layer.

B Reduced time to market for application development.

C Increased complexity in deployment processes.

D Higher upfront costs for infrastructure.

Explanation: PaaS provides a ready-to-use environment for application development, allowing teams to focus on coding rather than infrastructure management, thus speeding up the development process.

37 A team is developing a mobile application that requires real-time location tracking. Which technology is best suited for ensuring accurate location data?

A Wi-Fi triangulation

B GPS (Global Positioning System)

C Bluetooth Low Energy (BLE)

D Cellular network data

Explanation: GPS provides accurate location data for real-time tracking, making it the most suitable choice for mobile applications requiring location services.

38 In a machine learning project, why is it important to split your dataset into training and test sets?

A To ensure all data is used for training.

B To avoid overfitting and evaluate the model's performance on unseen data.

C To make the training process faster.

D To increase the size of the training dataset.

Explanation: Splitting the dataset into training and test sets helps to evaluate the model's performance on new, unseen data, reducing the risk of overfitting.

39 A user is trying to connect to a secure Wi-Fi network but receives an error about incorrect credentials. What is a common reason for this issue?

A The Wi-Fi network is out of range.

B The device is incompatible with the Wi-Fi standard.

C The network is using outdated encryption.

D The user has entered the wrong password or username.

Explanation: Entering incorrect credentials, such as a wrong password or username, is a common reason for failing to connect to a secure Wi-Fi network.

40 A computer scientist is studying algorithms. Which of the following is an example of a greedy algorithm?

A Dijkstra's algorithm for finding the shortest path.

B Merge sort for sorting an array.

C Binary search for finding an element in a sorted array.

D Depth-first search for traversing a tree.

Explanation: Dijkstra's algorithm is a classic example of a greedy algorithm, which makes the locally optimal choice at each stage with the hope of finding a global optimum.

41 A startup is looking to implement a microservices architecture. What is one primary benefit of this approach compared to a monolithic architecture?

A Easier to deploy and scale individual services independently.

B All services are tightly coupled, reducing complexity.

C Simpler codebase with fewer moving parts.

D Reduced need for automated testing.

Explanation: Microservices architecture allows for individual services to be deployed and scaled independently, providing greater flexibility and efficiency.

C V-Model

D Spiral Model

Explanation: Agile Development emphasizes iterative progress, allowing teams to incorporate user feedback throughout the development process.

45 A company implements a cloud-based storage solution for its employees. Which of the following security protocols should be prioritized to protect sensitive data during transmission?

A HTTPS

B FTP

C HTTP

D SMTP

Explanation: HTTPS provides a secure channel over an insecure network, protecting data during transmission.

46 In a machine learning project, a data scientist is testing the performance of their model. Which of the following metrics would be the most appropriate to evaluate a model's accuracy in a binary classification task?

A F1 Score

B Mean Squared Error

C R-squared

D Confusion Matrix

Explanation: The F1 Score is particularly useful in binary classification tasks as it considers both precision and recall.

47 A web application frequently experiences delays in loading data from its database. What is the most effective strategy to enhance performance in retrieving frequently accessed data?

A Implement Caching

B Increase Database Size

C Optimize SQL Queries

D Use a Different Database Management System

Explanation: Implementing caching can significantly reduce load times by storing frequently accessed data in memory.