wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Management Systems Worksheet

Total questions: 79

Worksheet time: 40mins

Name
Class
Date
1.

What is the primary function of a DBMS?

a)

Storing and retrieving data efficiently.

b)

Managing network connections.

c)

Compiling programming code.

d)

Designing user interfaces.

2.

Which of the following best describes the term 'Normalization' in databases?

a)

A process of reducing redundancy in a database.

b)

A technique for speeding up query execution.

c)

A method of encrypting database records.

d)

A way to back up database files.

3.

The internetworked organizational databases at different sites to be integrated and synchronized with all the facilities of database approach is _____________.

a)

Centralized database

b)

Distributed database

c)

Localized database

d)

Globalized database

4.

Which of the following best describes query optimization?

a)

A process of rewriting queries to improve efficiency.

b)

A technique to ensure transaction durability.

c)

A method to normalize database schemas.

d)

A security mechanism for access control.

5.

Suppose a banking system has a Transactions table. To ensure that withdrawals do not exceed available balance, which database constraint should be applied?

a)

FOREIGN KEY

b)

NOT NULL

c)

CHECK

d)

UNIQUE

6.

What will be the output of the following SQL query? SELECT COUNT (*) FROM Employees WHERE Salary > 50000;

a)

The total salary of employees earning more than 50,000

b)

The number of employees earning more than 50,000

c)

The number of employees in the Employees table

d)

The maximum salary in the Employees table

7.

Database administrators want to improve the performance of a complex SQL query. Which technique should they consider first?

a)

Using query optimization techniques.

b)

Adding more tables to the database.

c)

Increasing the number of indexes.

d)

Reducing data redundancy.

8.

In a banking system within a certain Ethiopian business banks, two transactions attempt to withdraw from the same account simultaneously. Which technique helps prevent data inconsistency?

a)

Implementing Two-Phase Locking (2PL).

b)

Running both transactions in parallel.

c)

Creating more database indexes.

d)

Using a NoSQL database.

9.

If a database system frequently experiences deadlocks, which of the following would be the best approach to handle the issue?

a)

Implementing deadlock detection and resolution.

b)

Removing all foreign key constraints.

c)

Avoiding the use of ACID properties.

d)

Increasing the database cache size.

10.

A distributed database system is experiencing slow query performance. What is the most likely reason?

a)

Using a Relational Database Management System (RDBMS) instead of a NoSQL database.

b)

High network latency and inefficient query execution.

c)

Too many foreign key constraints.

d)

Lack of data replication.

11.

In an Ethiopian airline ticket reservation system, multiple users are trying to book the last available seat at the same time. What database feature helps prevent conflicts?

a)

Concurrency control

b)

Query optimization

c)

Data redundancy

d)

Data replication

12.

A database is in BCNF but still has redundancy. What could be the possible reason?

a)

It still contains transitive dependencies.

b)

It has overlapping candidate keys.

c)

It lacks a foreign key constraint.

d)

It does not have a primary key.

13.

Which one of the following types of database schema is used for organizing data in single, two dimensional displays?

a)

Flat model

b)

Hierarchical model

c)

Network model

d)

Relational model

14.

Which one of the following schema development practice is used for optimizing database performance?

a)

Name conventions

b)

Data security

c)

Normalization

d)

Documentation

15.

Which one of the following is unshielded twisted pair cable connector?

a)

BNC connector

b)

subscriber channel connector

c)

RJ-45 connector

d)

straight-tip connector

16.

Which mode of transmission sender act as sender and act as receiver after some time interval?

a)

Simplex

b)

Half duplex

c)

Full duplex

d)

Unidirectional

17.

Which topology the failure one computer affects the entire network?

a)

Ring

b)

Bus

c)

Star

d)

Mesh

18.

When analog signal to another analog signal conversion is required?

a)

To extend the area coverage of wires signal

b)

To transmit analog signal through cables

c)

To extend network cable

d)

To connect computer with connectivity devices

19.

Which one of the following protocols includes under internet/internetworking layer TCP/IP layer?

a)

Transmission Control Protocol

b)

File Transfer Protocol

c)

Simple Mail Transfer Protocol

d)

Address Resolution Protocol

20.

Which data link layer device is used to prepare a MAC table and send packets for the selected device only?

a)

Switch

b)

Router

c)

Bridge

d)

Repeater

21.

Among OSI layers, which one provides user interfaces and support for services such as electronic mail, remote file access and transfer?

a)

Session layer

b)

Application layer

c)

Presentation layer

d)

Transport layer

22.

Which one of the following correctly differentiates data link layer and physical layer in the concept of OSI layer?

a)

Physical layer is responsible for packaging raw bits while data link layer is responsible for handling beat stream or bit transmission.

b)

Data link provides access to the cable while physical layer provides physical addressing.

c)

Data link layer provides hop-to-hop delivery while physical layer provides mechanical and electrical specifications.

d)

Wires and connectors are included in data link layer while bridges and switches operate at physical layer.

23.

Which one of the following OSI layer is responsible if the website loads slowly but the network connection is stable?

a)

Application layer

b)

Physical layer

c)

Network layer

d)

Transport layer

24.

What type of devices do straight-through cables connect?

a)

Computer to computer without any connectivity device

b)

Computer to switch

c)

Switch to switch

d)

Switch to hub

25.

What is the requirement to share files with peer-to-peer network?

a)

Two computers should have the same name and host address

b)

Two computers should have the same network address but different host address

c)

File sharing, network sharing and printer sharing should be disabled

d)

Two computers should have the same network and host address

26.

There are six computers to be connected with each other through a connectivity device called hub. What will you do to create this connection?

a)

Create bus topology with straight line cable

b)

Create ring topology by cyclic process

c)

Create star topology by using connectivity device

d)

Create mesh topology by connecting each other

27.

An operating system function that memorizes track of information regarding the creation, deletion, transfer, copy, and storage of files in an organized manner is related to ________.

a)

Memory Management

b)

Device Management

c)

File Management

d)

Security Management

28.

When a process is waiting for some I/O events, after the waiting process is completed, to what state does the process transition next?

a)

Terminated state

b)

Running state

c)

Ready state

d)

New state

29.

Which one of the following matches the functions of a contemporary operating system?

a)

It does not ensure security and access control.

b)

It manages human resources.

c)

It enables single tasking.

d)

It enables multitasking.

30.

What is the core part of an operating system that directly interacts with hardware?

a)

Shell

b)

Kernel

c)

GUI

d)

API

31.

If a process of operating system is ready to execute, but waiting for availability of resources, then the possible state in this process could be identified as ________________.

a)

New Born State

b)

Ready State

c)

Waiting State

d)

Exit State

32.

Among the following Operating Systems, which one describes the first operating systems for the personal computer that could be operated using the command prompt?

a)

Macintosh operating system (MacOS)

b)

Disk Operating System (DOS)

c)

Windows operating system

d)

Linux operating system

33.

Which one of the following statements selects the correct one about the process and tread states?

a)

Both process state and treads are active (running) at a time.

b)

All threads cannot access every address in the task.

c)

Both process state and treads do not share CPU.

d)

Both process state and treads share CPU.

34.

Which one of the following is used to explain the objectives modern operating systems?

a)

To provide a platform on which a user can design hardware.

b)

To make the computer environment less convenient to use.

c)

To use the computer resources efficiently.

d)

To design algorithms.

35.

Among the following computer system components, which one is responsible to manage and control the overall tasks in the computer system?

a)

Central processing unit (CPU)

b)

Operating system

c)

High level languages

d)

Application software

36.

In processes or threads concepts, there is a blocking of processes or treads that either compete for system resources or communicate with each other when each process or thread is waiting for a resource to be freed which is controlled by another process. These processes or treads could be examined with ___________.

a)

Process Control Block

b)

Deadlock

c)

Deadblock

d)

Multithreading

37.

Which one of the following programing states a conceptual framework of object model and is implemented by writing classes and objects.

a)

Object oriented programming

b)

Declarative programming

c)

Imperative programing

d)

Procedural programing

38.

In any programming paradigms, the primary function that every programing must have is:

a)

main()

b)

void()

c)

user_defined()

d)

define()

39.

Object-Oriented Programming is differ from any other programing by its building blocks of:

a)

Static development.

b)

Encapsulation.

c)

Java language.

d)

Functionality.

40.

Which one of the following programing models is the most recent concept that used to write dynamic program?

a)

Object oriented programming.

b)

Imperative programing.

c)

Functional programing.

d)

Logic programming.

41.

Which one of the following statements correctly defines the term Polymorphism?

a)

It is the capability of a method to do different things based on the object that it is acting upon.

b)

It is the process where one class acquires the properties (methods and fields) of another class.

c)

It is a process of hiding the implementation details from the user, only the functionality will be provided to the user.

d)

It is binding or wrapping data(variables) and functionality(methods) together as a single unit provided to the user.

42.

As a programmer, you might use comments while writing the object oriented programming using Java. How could you express such comments in Java programming?

a)

%...

b)

/* ... */

c)

#...

d)

/...

43.

In object oriented programming, which feature indicates the code reusability?

a)

Polymorphism

b)

Encapsulation

c)

Inheritance

d)

Abstraction

44.

In object oriented programming, which feature indicates the code reusability?

a)

Polymorphism

b)

Encapsulation

c)

Inheritance

d)

Abstraction

45.

Given the following Java code, what will be printed? public class Test { public static void main(String[] args) { int x = 10; int y = 0; try { System.out.println(x / y); } catch (ArithmeticException e) { System.out.println("Cannot divide by zero"); } } }

a)

10

b)

0

c)

Cannot divide by zero

d)

Compilation error

46.

While practicing object oriented programming using Java, the execution of every Java program is under the control of:

a)

Java Virtual Machine (JVM).

b)

Java Virtual class (JVC).

c)

Java application.

d)

Java applet.

47.

To write programs using Java, which Java IDE is widely used for development?

a)

IDLE

b)

Anaconda

c)

NetBeans

d)

CMD prompt

48.

Which keyword is used to declare a static member in Java?

a)

Constant

b)

Global

c)

Static

d)

Final

49.

Which modeling technique shows the message flow between objects in an Object Oriented application and also implies the basic associations between classes?

a)

Sequence Diagram

b)

Collaboration Diagram

c)

Activity Diagram

d)

Class Diagram

50.

How does method overloading differ from method overriding?

a)

Overloading is defining methods with the same name in different classes, while overriding is defining methods with the same name in the same class.

b)

Overloading changes the method signature, while overriding keeps the method signature the same.

c)

Overloading requires final methods, while overriding does not.

d)

Overloading requires inheritance, whereas overriding does not.

51.

What is the main advantage of using polymorphism in Java?

a)

It allows methods to be overloaded and overridden for flexibility.

b)

It forces all methods to have the same name.

c)

It eliminates the need for classes.

d)

It prevents code reuse.

52.

Why is encapsulation important in object-oriented programming?

a)

It hides implementation details and only exposes necessary data through methods.

b)

It allows methods from different classes to be accessed directly.

c)

It prevents the use of multiple classes in a single program.

d)

It forces all classes to have only public variables.

53.

What is the key difference between composition and inheritance?

a)

Composition allows greater flexibility by using objects within objects, whereas inheritance establishes a strict parent-child hierarchy.

b)

Inheritance is used when one class "has-a" another class, whereas composition is used when one class "is-a" another class.

c)

Inheritance supports polymorphism, while composition does not.

d)

Composition requires an interface, while inheritance does not.

54.

Which of the following is an example of markup languages?

a)

JavaScript

b)

Python

c)

HTML

d)

PHP

55.

What does URL stand for?

a)

Universal Reference Locator.

b)

Uniform Resource Locator.

c)

Uniform Resource Link.

d)

Unique Resource Link.

56.

Which of the following is a dynamic web technology?

a)

JavaScript

b)

HTML

c)

XML

d)

CSS

57.

What is the primary function of a web browser?

a)

To retrieve and display web content.

b)

To develop web applications.

c)

To host websites.

d)

To send emails.

58.

Which HTML tag is used to create a hyperlink?

a)

b)

c)

d)

b)

c)

d)

68.

When a company needs a dynamic web application that interacts with a database and provides real-time updates. What combination of technologies should they use?

a)

JavaScript, AJAX, and a server-side language like PHP or Node.js

b)

Static HTML files with no database

c)

HTML, CSS, and JavaScript only

d)

Only JavaScript and no backend

69.

If a business company wants its website to load faster by reducing image sizes, then what technique should they use?

a)

Remove all images from the website.

b)

Convert images to WebP format.

c)

Increase the image resolution.

d)

Use inline CSS for images.

70.

If a web developer wants to create a login page with real-time validation, then which technologies should they combine?

a)

HTML, CSS, JavaScript

b)

JavaScript, SQL, PHP

c)

HTML, CSS, Python

d)

Java, PHP, SQL

71.

Which combination of technologies is most suitable for developing a full-stack web application?

a)

HTML + JavaScript + SQL + PHP

b)

HTML + CSS + Photoshop

c)

Python + Excel + Bootstrap

d)

Java + C++ + MongoDB

72.

The internetworked organizational databases at different sites to be integrated and synchronized with all the facilities of database approach is ____________.

a)

Centralized database

b)

Distributed database

c)

Localized database

d)

Globalized database

73.

Which of the following best describes query optimization?

a)

A process of rewriting queries to improve efficiency.

b)

A technique to ensure transaction durability.

c)

A method to normalize database schemas.

d)

A security mechanism for access control.

74.

In database recovery, what is the primary role of the Write-Ahead Logging (WAL) protocol?

a)

Stores logs before writing actual data to prevent data loss.

b)

Ensures that all transactions are committed at once.

c)

Locks database tables during updates.

d)

Checks query execution speed.

75.

Which of the following best describes a homogeneous distributed database?

a)

A database system where different DBMSs are used across different sites.

b)

A system where database servers communicate via cloud computing.

c)

A database where data is stored in multiple backup locations.

d)

A distributed database where all sites use the same DBMS.

76.

A company wants to enforce strict access control on its database. Which feature should it implement?

a)

Authorization and Role-Based Access Control (RBAC)

b)

Query Optimization

c)

Data Replication

d)

Normalization

77.

How can a distributed database improve query performance?

a)

By processing queries closer to the location of the data.

b)

By storing all data on a single central server.

c)

By using weaker consistency models.

d)

By increasing data redundancy.

78.

Database administrators want to improve the performance of a complex SQL query. Which technique should they consider first?

a)

Using query optimization techniques.

b)

Adding more tables to the database.

c)

Increasing the number of indexes.

d)

Reducing data redundancy.

79.

In a banking system within a certain Ethiopian business banks, two transactions attempt to withdraw from the same account simultaneously. Which technique helps prevent data inconsistency?

a)

Implementing Two-Phase Locking (2PL).

b)

Running both transactions in parallel.

c)

Creating more database indexes.

d)

Using a NoSQL database.