CUET PG Computer Science Practice Set 1
CUET PG Computer Science · 2026 · with answers and explanations
- questions
- 30
- Total marks
- 30
- Duration
- 105 minutes
- Negative marking
- −0.25
Subjects: Aptitude (Reasoning) · Mathematics · Computer Science
Question 1
Aptitude (Reasoning) · 1 marks · −0.25If "book" is called "pen", "pen" is called "table", and "table" is called "chair", what would you write with?
- A.Book
- B.Pen
- C.Table
- D.Chair
Correct answer: C
Explanation: The object originally called "pen" (a writing tool) is now renamed "table" in this code, so you write with what is now called "table".
Question 2
Aptitude (Reasoning) · 1 marks · −0.25Statements: Some doctors are engineers. All engineers are teachers. Conclusion: Some doctors are teachers.
- A.Conclusion follows
- B.Conclusion does not follow
- C.Cannot be determined
- D.Conclusion is false
Correct answer: A
Explanation: Since some doctors are engineers and all engineers are teachers, those doctors who are engineers must also be teachers, so the conclusion validly follows.
Question 3
Aptitude (Reasoning) · 1 marks · −0.25In the series 3, 9, 27, 81, ? — what is the next number and what pattern governs the series?
- A.162, arithmetic pattern
- B.243, geometric pattern
- C.200, arithmetic pattern
- D.225, geometric pattern
Correct answer: B
Explanation: Each term is obtained by multiplying the previous term by 3, forming a geometric progression: 81 × 3 = 243.
Question 4
Mathematics · 1 marks · −0.25If |A| = 20, |B| = 15, and |A ∩ B| = 5, what is |A ∪ B|?
- A.30
- B.35
- C.25
- D.40
Correct answer: A
Explanation: |A ∪ B| = |A| + |B| − |A ∩ B| = 20 + 15 − 5 = 30.
Question 5
Mathematics · 1 marks · −0.25In how many ways can 5 different books be arranged on a shelf?
- A.25
- B.60
- C.120
- D.100
Correct answer: C
Explanation: The number of arrangements of 5 distinct items is 5! = 120.
Question 6
Mathematics · 1 marks · −0.25A relation R on set A = {1, 2, 3} is defined as R = {(1,1), (2,2), (3,3), (1,2), (2,1)}. Which properties does R have?
- A.Reflexive and symmetric but not transitive
- B.Reflexive, symmetric and transitive
- C.Only reflexive
- D.Only symmetric
Correct answer: B
Explanation: R contains all pairs (a,a), so it is reflexive; (1,2) and (2,1) both present, so it is symmetric; and (1,2) with (2,1) gives (1,1), which holds, satisfying transitivity. R is an equivalence relation.
Question 7
Mathematics · 1 marks · −0.25A card is drawn from a standard deck of 52 cards. What is the probability that it is a king or a heart?
- A.4/13
- B.17/52
- C.1/13
- D.4/52
Correct answer: A
Explanation: P(king) = 4/52, P(heart) = 13/52, P(king and heart) = 1/52. P(king or heart) = 4/52 + 13/52 − 1/52 = 16/52 = 4/13.
Question 8
Mathematics · 1 marks · −0.25The roots of the equation x² − 9 = 0 are:
- A.±3
- B.±9
- C.3 only
- D.−3 only
Correct answer: A
Explanation: x² = 9 ⟹ x = ±3.
Question 9
Mathematics · 1 marks · −0.25If A = [[2, 3], [1, 4]], what is A⁻¹?
- A.(1/5)[[4, -3], [-1, 2]]
- B.(1/5)[[4, 3], [1, 2]]
- C.[[4, -3], [-1, 2]]
- D.(1/5)[[2, -3], [-1, 4]]
Correct answer: A
Explanation: det(A) = 2×4 − 3×1 = 5. For a 2×2 matrix [[a,b],[c,d]], the inverse is (1/det)[[d,-b],[-c,a]] = (1/5)[[4,-3],[-1,2]].
Question 10
Computer Science · 1 marks · −0.25A sparse matrix is one in which:
- A.Most elements are zero
- B.Most elements are non-zero
- C.All elements are equal
- D.It is always square
Correct answer: A
Explanation: A sparse matrix has most of its elements as zero, so compact representations are used to save storage.
Question 11
Computer Science · 1 marks · −0.25Which data structure follows the LIFO (Last In First Out) principle?
- A.Queue
- B.Stack
- C.Linked List
- D.Tree
Correct answer: B
Explanation: A stack is a LIFO structure; a queue is FIFO.
Question 12
Computer Science · 1 marks · −0.25What is the time complexity to insert a node at the beginning of a singly linked list, given a pointer to the head?
- A.O(1)
- B.O(n)
- C.O(log n)
- D.O(n²)
Correct answer: A
Explanation: Insertion at the head only requires updating a constant number of pointers, so it is O(1).
Question 13
Computer Science · 1 marks · −0.25In an AVL tree, an insertion causes a node's balance factor to become +2 while its left child's balance factor is −1. Which rotation is required to restore balance?
- A.Left-Right (LR) rotation
- B.Left-Left (LL) rotation
- C.Right-Right (RR) rotation
- D.Right-Left (RL) rotation
Correct answer: A
Explanation: A left-heavy imbalance (balance factor +2) with a right-heavy left subtree (child balance factor −1) requires a Left-Right (LR) double rotation.
Question 14
Computer Science · 1 marks · −0.25Which graph traversal technique uses a queue data structure?
- A.Depth First Search
- B.Breadth First Search
- C.Both
- D.Neither
Correct answer: B
Explanation: Breadth First Search (BFS) uses a queue to explore nodes level by level; Depth First Search typically uses a stack or recursion.
Question 15
Computer Science · 1 marks · −0.25Which sorting algorithm has the best average-case time complexity among the following?
- A.Bubble Sort
- B.Selection Sort
- C.Merge Sort
- D.Insertion Sort
Correct answer: C
Explanation: Merge Sort runs in O(n log n) on average, better than the O(n²) average case of Bubble Sort, Selection Sort, and Insertion Sort.
Question 16
Computer Science · 1 marks · −0.25In hashing, when two different keys map to the same hash index, it is called:
- A.Overflow
- B.Collision
- C.Rehashing
- D.Clustering
Correct answer: B
Explanation: This situation, where two keys produce the same hash value, is called a collision.
Question 17
Computer Science · 1 marks · −0.25Which of the following is a valid inter-process communication (IPC) mechanism?
- A.Shared memory
- B.Register allocation
- C.Cache coherence
- D.Paging
Correct answer: A
Explanation: Shared memory, along with pipes and message queues, is a standard IPC mechanism used for communication between processes.
Question 18
Computer Science · 1 marks · −0.25Which CPU scheduling algorithm can lead to starvation of longer processes?
- A.First Come First Served
- B.Shortest Job First
- C.Round Robin
- D.FCFS with equal priority
Correct answer: B
Explanation: Shortest Job First (SJF) can starve longer processes indefinitely if a continuous stream of shorter jobs keeps arriving.
Question 19
Computer Science · 1 marks · −0.25Which of the following is NOT one of the four necessary Coffman conditions for deadlock?
- A.Mutual exclusion
- B.Hold and wait
- C.Preemption
- D.Circular wait
Correct answer: C
Explanation: The actual condition is "no preemption" (resources cannot be forcibly taken away), not "preemption". The four conditions are mutual exclusion, hold and wait, no preemption, and circular wait.
Question 20
Computer Science · 1 marks · −0.25Which page replacement algorithm can suffer from Belady's Anomaly?
- A.LRU
- B.Optimal
- C.FIFO
- D.LFU
Correct answer: C
Explanation: FIFO page replacement can exhibit Belady's Anomaly, where increasing the number of page frames results in more page faults, not fewer.
Question 21
Computer Science · 1 marks · −0.25Which of the following is a standard method of disk space allocation in file systems?
- A.Contiguous allocation
- B.Round robin allocation
- C.Priority allocation
- D.FIFO allocation
Correct answer: A
Explanation: Contiguous, linked, and indexed allocation are the standard file allocation methods; the other options are not.
Question 22
Computer Science · 1 marks · −0.25How many layers does the OSI reference model have?
- A.4
- B.5
- C.7
- D.6
Correct answer: C
Explanation: The OSI model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Question 23
Computer Science · 1 marks · −0.25Which access method does traditional Ethernet use to manage shared medium access?
- A.Token passing
- B.CSMA/CD
- C.Polling
- D.TDMA
Correct answer: B
Explanation: Ethernet traditionally uses CSMA/CD (Carrier Sense Multiple Access with Collision Detection); Token Ring uses token passing instead.
Question 24
Computer Science · 1 marks · −0.25Which routing approach uses the Bellman-Ford algorithm to compute shortest paths?
- A.Link state routing
- B.Distance vector routing
- C.Flooding
- D.Static routing
Correct answer: B
Explanation: Distance vector routing protocols, such as RIP, use the Bellman-Ford algorithm to compute shortest paths.
Question 25
Computer Science · 1 marks · −0.25What is the default subnet mask for a Class C IPv4 network?
- A.255.0.0.0
- B.255.255.0.0
- C.255.255.255.0
- D.255.255.255.255
Correct answer: C
Explanation: A Class C network's default subnet mask is 255.255.255.0, equivalent to a /24 prefix.
Question 26
Computer Science · 1 marks · −0.25In RSA encryption, which of the following makes up the public key?
- A.The private exponent d
- B.The modulus n and public exponent e
- C.The prime factors p and q alone
- D.A symmetric key
Correct answer: B
Explanation: The RSA public key consists of the modulus n and the public exponent e; the private key uses the exponent d.
Question 27
Computer Science · 1 marks · −0.25In an ER diagram, a relationship that associates at most one instance of an entity on each side is called:
- A.One-to-one
- B.Many-to-many
- C.One-to-many
- D.Many-to-one
Correct answer: A
Explanation: This is the definition of a one-to-one (1:1) relationship.
Question 28
Computer Science · 1 marks · −0.25Which SQL join returns all rows from both tables, with NULLs where there is no match?
- A.INNER JOIN
- B.LEFT JOIN
- C.RIGHT JOIN
- D.FULL OUTER JOIN
Correct answer: D
Explanation: A FULL OUTER JOIN returns matched rows plus unmatched rows from both the left and right tables, filling unmatched columns with NULL.
Question 29
Computer Science · 1 marks · −0.25A relation is in Third Normal Form (3NF) if it is in 2NF and:
- A.No non-prime attribute is transitively dependent on the primary key
- B.Every attribute is atomic
- C.It has no multivalued dependencies
- D.Every determinant is a candidate key
Correct answer: A
Explanation: 3NF requires that no non-prime attribute is transitively dependent on the primary key. "Every determinant is a candidate key" describes BCNF, a stricter form.
Question 30
Computer Science · 1 marks · −0.25Which property of a database transaction ensures that partial transactions are never reflected in the database?
- A.Consistency
- B.Isolation
- C.Atomicity
- D.Durability
Correct answer: C
Explanation: Atomicity guarantees that a transaction is executed completely or not at all, so partial effects are never visible.