Font size
WorksheetsMCQ Based Questions
Total questions: 89
Worksheet time: 45mins
Which of the following algorithms is used for deadlock avoidance?
A. Round Robin
B. FIFO
C. Banker's Algorithm
D. Shortest Job First
Which memory allocation scheme suffers from external fragmentation?
A. Paging
B. Segmentation
C. Contiguous Allocation
D. None of the above
What is a deadlock?
A. A condition where processes wait indefinitely for resources
B. A condition where resources are allocated fairly
C. A condition where all processes execute simultaneously
D. A condition where processes release all resources
Which data structure is most suitable for implementing a circular buffer?
A. Array
B. Linked List
C. Queue
D. Stack
Which of the following is a disadvantage of a linked list over an array?
A. Dynamic size
B. Ease of insertion/deletion
C. No need to specify initial size
D. Higher memory usage due to pointers
Which of the following is not a type of user interface?
A. Command Line Interface (CLI)
B. Graphical User Interface (GUI)
C. Menu-driven Interface
D. Kernel Interface
Which of the following is used for process synchronization in an operating system?
A. File locks
B. Semaphores
C. Disk scheduling
D. CPU scheduling
Which of the following data structures does not allow duplicate elements?
A. Stack
B. Queue
C. Set
D. List
The truth table of a half-adder has how many input combinations?
A. 2
B. 4
C. 8
D. 16
What is the primary purpose of an operating system?
A. To provide a user interface
B. To manage hardware resources
C. To allow software applications to run
D. All of the above
Which logic family has the highest speed?
A. TTL
B. CMOS
C. ECL
D. DTL
Which type of memory is non-volatile and can be electrically erased and reprogrammed?
A. RAM
B. ROM
C. EPROM
D. Flash memory
In paging, what is the unit of data transfer between the disk and memory?
A. Segment
B. Page
C. Frame
D. Block
Which of the following sorting algorithms is the most efficient for large datasets?
A. Bubble Sort
B. Merge Sort
C. Insertion Sort
D. Selection Sort
In a multi-programming environment, what is the primary goal?
A. Minimize response time
B. Maximize CPU utilization
C. Maximize memory usage
D. Minimize throughput
Which of the following is a synchronization mechanism?
A. Semaphore
B. Spooling
C. Caching
D. Thrashing
What is the role of a device driver?
A. To allocate resources to processes
B. To handle I/O operations of a device
C. To manage memory allocation
D. To execute system calls
The primary function of a decoder is:
A. To convert binary data into decimal data
B. To perform arithmetic operations
C. To encode data
D. To distribute data to one of many outputs
What is the time complexity of inserting an element in the middle of a linked list?
A. O(1)
B. O(log n)
C. O(n)
D. O(n log n)
How many flip-flops are required to build a binary counter to count up to 16?
A. 2
B. 3
C. 4
D. 5
In Boolean algebra, the expression A + AB is equivalent to:
A. A
B. AB
C. A + B
D. A(B + 1)
What is the maximum number of nodes in a binary tree of height h?
A. 2^h
B. 2^(h+1) - 1
C. 2^(h-1)
D. 2^(h+1)
The output of a NAND gate is high if:
A. All inputs are high
B. All inputs are low
C. Any one of the inputs is high
D. Any one of the inputs is low
Which of the following is not a universal gate?
A. NAND
B. NOR
C. AND
D. None of the above
Which of the following is a characteristic of a microkernel?
A. Large size
B. Minimal functionality in the kernel
C. Runs all services in kernel mode
D. More complex than a monolithic kernel
In a binary number system, what is the base?
A. 2
B. 10
C. 8
D. 16
What is a context switch?
A. Switching between user and kernel mode
B. Switching between different processes
C. Switching between different threads
D. Switching between different users
Which of the following is a mechanism to control the execution of processes?
A. Spooling
B. Scheduling
C. Buffering
D. Paging
A multiplexer is also known as:
A. Data selector
B. Data distributor
C. Data generator
D. Data encoder
What is the main function of the kernel in an operating system?
A. To provide a user interface
B. To manage system resources
C. To run applications
D. To execute commands
Which of the following is a type of system call?
A. Process Control
B. File Management
C. Device Management
D. All of the above
What is the purpose of a file system?
A. To manage memory allocation
B. To manage process execution
C. To manage and store files
D. To handle I/O operations
Which of the following is a type of real-time operating system?
A. Batch Operating System
B. Time-Sharing Operating System
C. Distributed Operating System
D. Embedded Operating System
What is thrashing in an operating system?
A. When the CPU is idle
B. When processes are swapping in and out of memory excessively
C. When there is a deadlock
D. When a process is terminated
What is the main purpose of a shell in an operating system?
A. To provide an interface between the user and the hardware
B. To execute system calls
C. To interpret user commands
D. To manage files
In which of the following data structures can elements be added or removed only at one end?
A. Queue
B. Deque
C. Stack
D. Array
The hexadecimal number A2 is equivalent to which binary number?
A. 10100010
B. 11000011
C. 11110000
D. 10101001
Which of the following is a type of database model?
A. Hierarchical
B. Network
C. Relational
D. All of the above
Which of the following is a sequential circuit?
A. Multiplexer
B. Demultiplexer
C. Flip-flop
D. Half-adder
What is the time complexity of searching for an element in a balanced binary search tree?
A. O(1)
B. O(n)
C. O(log n)
D. O(n log n)
Which of the following is not a combinational circuit?
A. Decoder
B. Encoder
C. Multiplexer
D. Flip-flop
What is a primary key in a database?
A. A unique identifier for a record
B. A duplicate key
C. A foreign key
D. A secondary key
In Boolean algebra, the expression A' + 0 is equal to:
A. A
B. A'
C. 0
D. 1
What does SQL stand for?
A. Structured Query Language
B. Simple Query Language
C. Sequential Query Language
D. Standard Query Language
In a JK flip-flop, when both J and K are high, the output will:
A. Remain unchanged
B. Set to 1
C. Set to 0
D. Toggle
Which of the following is a disk scheduling algorithm?
A. FCFS
B. SJF
C. SSTF
D. LRU
What is normalization in a database?
A. Reducing redundancy
B. Increasing redundancy
C. Simplifying queries
D. Increasing complexity
Which command is used to remove a table from a database?
DELETE
DROP
REMOVE
ERASE
What is a foreign key?
A. A unique key in a table
B. A key in a table that references the primary key in another table
C. A key that is not unique
D. A key used for encryption
Which of the following circuits can be used to store one bit of data?
A. Multiplexer
B. Flip-flop
C. Encoder
D. Decoder
What is the function of an index in a database?
To store data
To retrieve data quickly
To normalize data
To enforce constraints
What is the main function of the Transport layer in the OSI model?
Data encryption
Data routing
End-to-end communication
Data presentation
What is a view in a database?
A virtual table based on the result-set of an SQL query
A real table stored in the database
A summary of data
A set of permissions
In a full-adder, the carry is generated when:
A. Any one of the inputs is 1
B. All inputs are 0
C. At least two inputs are 1
D. All inputs are 1
What is the decimal equivalent of the binary number 1110?
A. 12
B. 13
C. 14
D. 15
Which SQL statement is used to create a new table in a database?
INSERT INTO
CREATE TABLE
ALTER TABLE
ADD TABLE
What is a stored procedure?
A precompiled SQL statement
A function stored in the database
A trigger for automated actions
A set of SQL statements that can be executed as a single unit
Which protocol is used for secure data transmission over the internet?
HTTP
FTP
HTTPS
SMTP
Which of the following is a characteristic of a relational database?
Data is stored in tables
Tables can have relationships
Supports SQL
All of the above
Which of the following is a command to grant permissions in SQL?
GRANT
GIVE
PROVIDE
ALLOW
What is the purpose of a JOIN operation in SQL?
A. To merge rows from two or more tables based on a related column
B. To filter rows from a table
C. To group rows based on a column
D. To update rows in a table
What is data integrity in a database?
Ensuring data is accurate and consistent
Reducing data redundancy
Increasing data redundancy
Encrypting data
What does the acronym WAN stand for?
Wide Area Network
Wireless Area Network
Wired Area Network
Wide Access Network
Which of the following is used to extract data from a database?
A. DML
B. DDL
C. DCL
D. TCL
The binary number 1101 is equivalent to which decimal number?
A. 11
B. 12
C. 13
D. 14
What is the maximum length of an IPv4 address?
32 bits
64 bits
128 bits
256 bits
Which of the following protocols is used for file transfer?
FTP
SMTP
SNMP
DHCP
Which of the following is a NoSQL database?
A. MySQL
B. PostgreSQL
C. MongoDB
D. Oracle
What does ACID stand for in database transactions?
A. Atomicity, Consistency, Isolation, Durability
B. Accuracy, Consistency, Integrity, Durability
C. Atomicity, Consistency, Integration, Durability
D. Atomicity, Consistency, Isolation, Data
Which layer of the OSI model is responsible for routing?
Physical
Data Link
Network
Transport
Which protocol is used for sending emails?
FTP
HTTP
SMTP
SNMP
What is a trigger in a database?
A stored procedure
A database event
A database constraint
An automated action in response to an event
What is the purpose of a firewall in a network?
To speed up network traffic
To filter and control incoming and outgoing network traffic
To translate domain names
To encrypt data
What does the SQL command SELECT * FROM table do?
Selects all columns and rows from the table
Selects only the first row from the table
Selects all columns but no rows from the table
Selects all rows but no columns from the table
What is the purpose of a MAC address?
To identify a device on the internet
To identify a device within a local network
To encrypt data
To authenticate users
What is a subnet mask used for in networking?
To encrypt data
To divide an IP address into network and host parts
To route data packets
To authenticate users
Which of the following is an application layer protocol?
TCP
IP
HTTP
UDP
What does the acronym IP stand for?
Internet Protocol
Interconnected Protocol
International Protocol
Internet Procedure
Which of the following is a transport layer protocol?
TCP
IP
ICMP
ARP
What is the role of an IP address in a network?
To encrypt data
To route data packets
To provide a unique identifier for devices on a network
To filter network traffic
What is the equivalent of binary number 101101 in decimal?
A. 45
B. 55
C. 46
D. 61
Which of the following is a characteristic of a star network topology?
All devices are connected in a ring
All devices are connected to a central hub
All devices are connected in a mesh
All devices are connected in a line
What is the function of a DNS server?
To translate domain names to IP addresses
To route data packets
To encrypt data
To manage network traffic
What does the acronym LAN stand for?
Local Area Network
Long Area Network
Large Area Network
Local Access Network
What is the function of a proxy server?
To encrypt data
To filter and control network traffic
To act as an intermediary between a client and a server
To route data packets
Which of the following is a NoSQL database?
MySQL
PostgreSQL
MongoDB
Oracle
Which device is used to connect multiple networks together?
Switch
Router
Hub
Repeater
Which of the following operations is not efficient in an array?
A. Accessing an element
B. Inserting an element at the end
C. Deleting an element from the middle
D. Updating an element
Which of the following is a wireless networking protocol?
Ethernet
Wi-Fi
USB
HDMI
