Ce MCQ
Ce MCQ
DCF
o A) 10101
o B) 20201
o C) 2A01
o D) 1010B
o Answer: A) 10101
o A) AND Gate
o B) OR Gate
o C) NOT Gate
o D) NAND Gate
o A) 1111
o B) 1001
o C) 1010
o D) 1000
o Answer: B) 1001
4. Which arithmetic circuit is used to perform addition and subtraction of binary numbers?
o A) Half adder
o B) Full adder
o C) Subtractor
o D) Multiplier
o D) To decode data
o A) Flip-flop
o B) Multiplexer
o C) Counter
o D) Register
o Answer: B) Multiplexer
8. Which type of encoder converts an active input line into its corresponding binary code?
o B) Priority encoder
o C) Octal encoder
o D) BCD encoder
• A) AND gate
• B) NOR gate
• C) Flip-flops
• D) XOR gate
• Answer: C) Flip-flops
• A) Binary
• B) Octal
• C) Decimal
• D) Hexadecimal
• Answer: B) Octal
• A) Binary
• B) Octal
• C) Decimal
• D) Hexadecimal
• Answer: D) Hexadecimal
14. Which logic gate gives the output 1 when all inputs are different?
• A) AND gate
• B) OR gate
• C) XOR gate
• D) NOR gate
15. Which of the following represents the binary number 1101 in decimal?
• A) 13
• B) 14
• C) 15
• D) 16
• Answer: A) 13
• A) Multiplier circuit
• B) Adder circuit
• C) Shift register
• D) Encoder
• A) 1
• B) 2
• C) 4
• D) 16
• Answer: C) 4
• A) To add numbers
• C) To multiply numbers
• A) AND gate
• B) Flip-flop
• C) XOR gate
• D) Multiplexer
• Answer: B) Flip-flop
20. Which type of memory element stores data temporarily and is used in counters and
registers?
• A) Flip-flop
• B) Latch
• C) Register
• A) It adds two binary numbers and produces a sum and carry output.
• Answer: A) It adds two binary numbers and produces a sum and carry output.
22. Which of the following is the basic unit of storage in memory circuits?
• A) Bit
• B) Byte
• C) Word
• D) Word register
• Answer: A) Bit
• A) AND gate
• B) OR gate
• C) XOR gate
• D) NAND gate
• A) AND gate
• B) OR gate
• C) NOT gate
• D) NOR gate
• Answer: B) OR gate
25. How many input lines are required for an 8-to-1 multiplexer?
• A) 8
• B) 3
• C) 2
• D) 1
• Answer: B) 3
26. What is the output of a 2-input NAND gate if both inputs are 1?
• A) 0
• B) 1
• C) Undefined
• D) 2
• Answer: A) 0
• A) Memory storage
• B) Data conversion
• C) Multiplexing
• D) Data transmission
29. Which number system is used in digital circuits to simplify logic design?
• A) Binary
• B) Decimal
• C) Octal
• D) Hexadecimal
• Answer: A) Binary
30. Which of the following is the result of the binary addition of 1011 and 1101?
• A) 11000
• B) 11010
• C) 10000
• D) 11111
• Answer: A) 11000
31. Which of the following gates has the property of being true when at least one input is
true?
• A) NAND gate
• B) NOR gate
• C) AND gate
• D) OR gate
• Answer: D) OR gate
• A) AND gate
• B) XOR gate
• C) OR gate
• D) NOT gate
• B) 4
• C) 6
• D) 8
• Answer: B) 4
• A) To store data
• B) To perform calculations
• C) To decode data
• D) To multiply data
36. Which type of memory element stores a bit of data for an indefinite period until it is
explicitly cleared?
• A) Latch
• B) Flip-flop
• C) Register
• Answer: B) Flip-flop
• A) Flip-flop
• B) Multiplexer
• C) Counter
• D) Register
• Answer: B) Multiplexer
38. Which logic gate has an output of 1 only when both inputs are the same?
• A) XOR gate
• B) AND gate
• C) NOR gate
• D) XNOR gate
• Answer: D) XNOR gate
• A) 1010
• B) 1101
• C) 1001
• D) 1100
• Answer: D) 1100
40. What is the output of a 3-input AND gate when all inputs are 1?
• A) 1
• B) 0
• C) Undefined
• D) 2
• Answer: A) 1
43. What type of flip-flop has both the SET and RESET inputs?
• A) D flip-flop
• B) JK flip-flop
• C) T flip-flop
• D) SR flip-flop
• Answer: D) SR flip-flop
44. Which of the following can be used to perform binary to BCD conversion?
• A) Decoder
• B) Encoder
• C) Shift register
46. Which of the following gates performs the logical operation of "not AND"?
• A) NAND gate
• B) NOR gate
• C) XOR gate
• D) AND gate
47. What is the binary result of the addition of 1110 and 1011?
• A) 10101
• B) 10001
• C) 11001
• D) 11101
Answer: A) 10101
48. Which of the following is the primary use of an encoder in digital circuits?
• D) To store data
50. Which of the following is the main difference between a latch and a flip-flop?
• C) A flip-flop stores multiple bits, while a latch stores only one bit
DSA
o D) Random Access
2. Which operation is used to remove an element from the top of the stack?
o A) Enqueue
o B) Dequeue
o C) Push
o D) Pop
o Answer: D) Pop
3. What is the time complexity of searching for an element in a binary search tree (BST)?
o A) O(n)
o B) O(log n)
o C) O(n^2)
o D) O(1)
o Answer: B) O(log n)
4. Which of the following sorting algorithms has the best average case time complexity?
o A) Bubble Sort
o B) Quick Sort
o C) Selection Sort
o D) Insertion Sort
o A) Merge Sort
o B) Bubble Sort
o C) Selection Sort
o D) Linear Search
6. Which algorithm is based on the idea of breaking a problem into smaller subproblems
and solving them recursively?
o A) Dynamic Programming
o C) Greedy Algorithm
o D) Backtracking
o A) Binary Search
o B) Hill Climbing
o C) Quick Sort
o D) Merge Sort
o A) A recursive call
o C) A loop
9. Which of the following is the backtracking technique used for solving problems like
puzzles or games?
o A) Dynamic Programming
o B) Depth-First Search
o C) Recursion
o D) Backtrack Programming
o Answer: C) It may result in an infinite loop if the base case is not defined
Database Systems
12. Which of the following tasks is the responsibility of a Database Administrator (DBA)?
14. Which of the following is a benefit of using the Entity-Relationship (ER) model?
15. Which of the following SQL commands is used to retrieve data from a database?
o A) SELECT
o B) INSERT
o C) DELETE
o D) UPDATE
o Answer: A) SELECT
16. What does the Structured Query Language (SQL) 'WHERE' clause do?
o A) PL/SQL
o B) SQL
o C) NoSQL
o D) DDL
o Answer: A) PL/SQL
o A) Trigger
o B) Constraint
o C) Stored Procedure
o D) Error message
19. Which of the following best describes the architecture of a Hierarchical Database
Management System (DBMS)?
• A) Queue
• B) Stack
• C) Linked List
• D) Array
• Answer: B) Stack
22. What is the best case time complexity of the Quick Sort algorithm?
• A) O(n log n)
• B) O(n)
• C) O(n^2)
• D) O(1)
• A) O(n)
• B) O(n log n)
• C) O(n^2)
• D) O(1)
24. Which of the following search algorithms is the most efficient for searching a sorted
array?
• A) Linear Search
• B) Binary Search
• C) Jump Search
• D) Exponential Search
25. Which data structure uses the FIFO (First In, First Out) principle?
• A) Stack
• B) Queue
• C) Linked List
• D) Tree
• Answer: B) Queue
26. What is the space complexity of Quick Sort in the worst case?
• A) O(log n)
• B) O(n)
• C) O(n log n)
• D) O(1)
• Answer: B) O(n)
• A) Binary Search
• B) Quick Sort
• C) Merge Sort
30. Which of the following algorithms is used for solving the "Knapsack Problem"?
• C) Dynamic Programming
• D) Backtracking
Database Systems
21. Which of the following SQL statements is used to update existing data in a table?
• A) INSERT
• B) UPDATE
• C) DELETE
• D) SELECT
• Answer: B) UPDATE
22. Which of the following is a key feature of the Entity-Relationship (ER) model?
23. Which of the following is the correct normalization process step for converting a table
to 1NF (First Normal Form)?
25. What type of relationship does a "1:N" (One to Many) cardinality represent in an ER
diagram?
• C) Many entities in one table are related to one entity in another table
• D) Many entities in one table are related to many entities in another table
• Answer: B) One entity in one table is related to many entities in another table
26. Which of the following is true about a Foreign Key in a relational database?
• A) REMOVE
• B) DELETE
• C) DROP
• D) TRUNCATE
• Answer: C) DROP
29. Which of the following is a feature of the Relational Database Management System
(RDBMS)?
• A) It uses a tree structure for data storage
30. Which of the following is the primary role of a Database Management System (DBMS)?
Programming in C
Programming in C
o A) int arr(5);
o B) int arr[5];
o C) array[5] int;
o D) int[5] arr;
3. Which of the following functions is used to get input from the user in C?
o A) scanf()
o B) printf()
o C) input()
o D) get_input()
o Answer: A) scanf()
4. What is the return type of a function that does not return any value in C?
o A) void
o B) int
o C) char
o D) float
o Answer: A) void
o A) 2 bytes
o B) 4 bytes
o C) 8 bytes
o D) 16 bytes
o Answer: B) 4 bytes
o A) To initialize an object
o A) Encapsulation
o B) Abstraction
o C) Inheritance
o D) Polymorphism
o Answer: C) Inheritance
o A) Defining two functions with the same name but different parameter types
o Answer: A) Defining two functions with the same name but different parameter types
10. Which keyword is used to define a base class in C++ for inheritance?
• A) parent
• B) super
• C) base
• D) class
• Answer: D) class
Discrete Mathematics
• A) Complete Graph
• B) Bipartite Graph
• D) Tree
• Answer: D) Tree
• D) It contains no loops
• Answer: B) Each edge has an associated direction from one vertex to another
14. What is the truth value of the logical expression (p ∧ q) ∨ (¬p ∧ r) when p = true, q = false,
and r = true?
• A) True
• B) False
• C) Undefined
• D) Cannot be determined
• Answer: A) True
Operations Research
16. In Linear Programming Problems (LPP), what does the objective function represent?
18. Which method is commonly used to solve the transportation problem in operations
research?
• A) Simplex Method
• B) Hungarian Method
19. In project scheduling, which technique is used to determine the minimum time required
to complete a project with multiple dependent tasks?
• B) Gantt Chart
20. What is the key feature of the assignment problem in operations research?
• A) It involves assigning jobs to workers to minimize the total cost or maximize profit
• Answer: A) It involves assigning jobs to workers to minimize the total cost or maximize profit
OPERATING SYSTEMS
Operating Systems
2. Which of the following components is not part of the computer system architecture?
o A) CPU
o B) Memory
o C) Disk Storage
o D) Compiler
o Answer: D) Compiler
o B) To manage hardware and system resources such as CPU, memory, and devices
o Answer: B) To manage hardware and system resources such as CPU, memory, and
devices
4. Which operating system structure uses both a monolithic kernel and microservices?
o A) Microkernel structure
o B) Hybrid structure
o C) Layered structure
o D) Monolithic structure
o B) To ensure that each process gets the CPU for a specific amount of time
o Answer: B) To ensure that each process gets the CPU for a specific amount of time
7. In which CPU scheduling algorithm does the process with the smallest burst time get
the CPU next?
o A) Round Robin
o D) Priority Scheduling
8. Which of the following is the correct order of process states in a typical operating
system?
o Answer: A) New -> Ready -> Running -> Blocked -> Terminated
9. Which of the following is a process that is temporarily removed from the running queue
and placed in a waiting queue?
o A) Blocked Process
o B) Ready Process
o C) Running Process
o D) Zombie Process
10. In which scheduling algorithm does each process get an equal share of the CPU time,
rotating in a circular order?
• A) Round Robin
Memory Management
11. Which memory allocation method divides memory into fixed-size partitions and
allocates them to processes?
• A) Paging
• B) Segmentation
• D) Virtual Memory
12. In which memory management scheme are processes divided into fixed-size blocks
called pages?
• A) Segmentation
• B) Virtual Memory
• C) Paging
• Answer: C) Paging
13. Which of the following is a disadvantage of contiguous memory allocation?
• A) External fragmentation
• B) Internal fragmentation
• A) To reduce fragmentation
• Answer: B) To allow the system to allocate memory dynamically based on logical divisions
15. Which memory management technique allows a process to access more memory than
is physically available by using a portion of the disk as if it were RAM?
• A) Virtual Memory
• B) Segmentation
• C) Paging
• D) Contiguous Allocation
Virtual Memory
18. What is the primary function of a page table in a virtual memory system?
19. Which of the following is used to reduce page fault rate in virtual memory?
20. What is the term for a situation where a computer's performance slows down due to too
many page faults?
• A) Thrashing
• B) Fragmentation
• C) Deadlock
• D) Segmentation Fault
• Answer: A) Thrashing
22. Which of the following is a key feature of a directory structure in an operating system?
23. Which of the following is a security measure used to protect files in an operating
system?
• A) Encryption
• B) User permissions
• C) To define who can access a file and the types of operations they can perform
• Answer: C) To define who can access a file and the types of operations they can perform
• A) It reduces fragmentation
2. Which of the following is a key difference between analog and digital communication?
o A) Analog signals are represented by binary digits, while digital signals use
continuous waves
o C) Analog waveforms
o D) Radio waves
o A) Network congestion
o C) Low-frequency signals
7. What is the primary function of the data link layer in the OSI model?
8. Which of the following is an example of error detection in the data link layer?
o A) Parity bit
o B) IP address
o C) TCP checksum
o D) Sequence number
o C) Hamming code
o D) Parity bit
10. Which method is used for error correction in the data link layer?
• B) Retransmission requests
• C) Both A and B
• D) Data compression
• A) IEEE 802.11
• B) IEEE 802.3
• C) IEEE 802.5
• D) IEEE 802.15
12. Which of the following is true about Standard Ethernet (IEEE 802.3)?
• C) It uses the CSMA/CD (Carrier Sense Multiple Access with Collision Detection) protocol
• Answer: C) It uses the CSMA/CD (Carrier Sense Multiple Access with Collision Detection)
protocol
• A) Star topology
• B) Bus topology
• C) Ring topology
• D) Mesh topology
Wireless LAN
• A) IEEE 802.3
• B) IEEE 802.5
• C) IEEE 802.11
• D) IEEE 802.15
16. Which protocol is commonly used in WLANs for authentication and encryption?
• A) HTTP
• B) SSL/TLS
• C) WPA/WPA2
• D) FTP
• Answer: C) WPA/WPA2
Transport Layer
17. Which of the following is the main responsibility of the transport layer in the OSI model?
18. Which protocol is used in the transport layer for reliable communication between
processes?
• B) IP (Internet Protocol)
19. Which transport layer protocol is best suited for applications that require low latency
and can tolerate some data loss, such as online gaming?
• A) TCP
• B) UDP
• C) FTP
• D) HTTP
• Answer: B) UDP
Application Layer
20. Which layer of the OSI model handles end-user services like web browsing and email?
• A) Transport Layer
• C) Application Layer
• D) Network Layer
21. What is the main function of the Domain Name System (DNS) in the Internet?
• A) DNS
• B) FTP
• C) HTTP
• D) Telnet
• Answer: C) HTTP
23. Which version of HTTP introduced support for persistent connections, where multiple
requests and responses can be sent over the same connection?
• A) HTTP/1.0
• B) HTTP/1.1
• C) HTTP/2
• D) HTTP/3
• Answer: B) HTTP/1.1