GATE CSE 2027 · Full-length mock test · Updated 29 November 2026
GATE CSE 2027 Free Full Mock Test 2: 65 Questions, 100 Marks with Answer Key and Solutions
GATE CSE 2027 Free Full Mock Test 2 is a complete, original GATE CSE full length mock test on the exact 2027 pattern, a little tougher than an average mock, with a worked solution under every question, a full answer key and a self-scoring guide with negative marks.

65 questions · 100 marks · 3 hours37 MCQ · 16 MSQ · 12 NATAnswer key + solutionsFree

GATE CSE 2027 Free Full Mock Test 2: 65 questions, 100 marks, 3 hours with answer key and solutions

Quick answer: GATE CSE 2027 Free Full Mock Test 2 is a full-length GATE CS practice paper on this page: 65 original questions for 100 marks in 3 hours, with 15 marks of General Aptitude and 85 marks of technical questions, in MCQ, MSQ and NAT format. Every question has a hidden worked solution, so it works as a GATE CSE mock test with solutions, and the answer key and scoring guide are at the end. For 10 more full-length mocks with performance analysis, enrol in the free GATE CSE 2027 Test Series by Piyush Wairale on piyushwairale.com.

Free GATE CSE 2027 Test Series: 50+ subject-wise tests, 10 full mocks and PYQ PDFs

Free · By Piyush Wairale (IIT Madras)

Finished this paper? Take 10 more full-length GATE CS mocks free

Subject-wise tests
50+
Full GATE CSE 2027 syllabus, test by test
Full-length mocks
10
65 questions, 100 marks, 3 hours
GATE CSE PYQs
PDF + solutions
Previous year papers with worked solutions
Price
Free
Enrol for free on piyushwairale.com
  • 10 full-length mock tests on the real GATE CS pattern: 65 questions, 100 marks, 3 hours, with MCQ, MSQ and NAT questions.
  • 50+ subject-wise tests covering Engineering Mathematics, Digital Logic, COA, Programming and Data Structures, Algorithms, TOC, Compiler Design, Operating Systems, DBMS and Computer Networks.
  • GATE CSE previous year question (PYQ) PDFs with solutions, so you see how IIT examiners frame questions.
  • Detailed solutions and performance analysis after every test to find your strengths and weak areas.

Start the free GATE CSE 2027 Test Series

GATE CSE 2027 Free Full Mock Test 2: Instructions

Read this before you start. Treat this paper exactly like the real exam.

  • Time: 3 hours. Set a timer for 180 minutes and stop the moment it rings. Unfinished questions count as unattempted.
  • Calculator: GATE gives only an on-screen virtual calculator, so use a basic calculator app at most. No phone search, no notes.
  • Answer sheet: write your answers on paper as “Q no: answer”. Do not open any “Show answer” box until the timer ends.
  • Negative marking: MCQ only. A wrong 1-mark MCQ costs 1/3 mark and a wrong 2-mark MCQ costs 2/3 mark. MSQ and NAT have no negative marking and no partial marks.
  • MSQ: one or more options are correct. You get marks only if you select exactly the correct set.
  • NAT: type a number. Where a range is given in the key, any value inside it is correct.
  • Self-scoring: after the timer, use the answer key table and the scoring guide at the end of this paper.

GATE CSE 2027 Free Full Mock Test 2: Section split and subject coverage

GATE CSE 2027 Free Full Mock Test 2 follows the official GATE CS structure: 10 General Aptitude questions for 15 marks and 55 technical questions for 85 marks, with Engineering Mathematics inside the technical section.

Section Questions Marks each No. of questions Total marks
A: General Aptitude Q1 to Q5 1 5 5
A: General Aptitude Q6 to Q10 2 5 10
B: Technical Q11 to Q35 1 25 25
B: Technical Q36 to Q65 2 30 60
Total Q1 to Q65 1 or 2 65 100
Subject Questions Marks Focus topics in this mock
General Aptitude 10 15 Verbal, clocks, series, percentages, work, permutations, data interpretation, syllogism
Engineering Mathematics 9 14 Rank, eigenvalues, Bayes, recurrence counting, graph colouring, group theory
Digital Logic 4 6 Number systems, flip-flop conversions, ripple counters
Computer Organization and Architecture 4 7 Set-associative cache, pipeline stalls with forwarding, DMA cycle stealing
Programming and Data Structures 6 9 Recursion output, heap operations, BST deletion, linked-list code
Algorithms 7 12 Dijkstra and Prim traces, matrix chain DP, inversions, hashing with chaining
Theory of Computation 6 9 Minimal DFA for divisibility, closure, CFG ambiguity, Rice’s theorem
Compiler Design 4 6 LR(1) and LALR(1) conflicts, SDT evaluation, three-address code
Operating Systems 5 8 Semaphore code tracing, disk scheduling, multi-level paging
DBMS 5 7 B+ tree order and height, view serializability, division, lossless joins
Computer Networks 5 7 CRC, GBN and SR windows, TCP Reno cwnd, DNS and HTTP RTTs
Total 65 100 37 MCQ, 16 MSQ, 12 NAT

Already attempted the first paper? This one uses different sub-topics, so take both. Start with GATE CSE 2027 Free Full Mock Test 1 if you have not, and see the Free GATE CSE 2027 Test Series hub for every free resource in one place.

GATE CSE 2027 Free Full Mock Test 2: Section A General Aptitude (15 marks)

Section A of GATE CSE 2027 Free Full Mock Test 2 has 10 questions: Q1 to Q5 carry 1 mark each and Q6 to Q10 carry 2 marks each. Aim to finish this section in about 20 minutes.

Q1. General Aptitude: Verbal (MCQ) · 1 mark, minus 1/3 if wrong

Choose the word that best fills the blank: “The proposal received ______ support; not a single member of the committee voted against it.”

(A) unanimous
(B) ambivalent
(C) tepid
(D) partial

Show answer

Answer: (A) unanimous. “Not a single member voted against it” means every member agreed, which is exactly what unanimous means. Ambivalent means having mixed feelings, tepid means lukewarm, and partial means incomplete.

Q2. General Aptitude: Calendar (MCQ) · 1 mark, minus 1/3 if wrong

1 January 2027 is a Friday. What day of the week is 1 March 2027?

(A) Sunday
(B) Monday
(C) Tuesday
(D) Saturday

Show answer

Answer: (B) Monday. 2027 is not a leap year, so from 1 January to 1 March there are 31 + 28 = 59 days. 59 = 8 × 7 + 3, so the day moves 3 places forward: Friday → Saturday → Sunday → Monday.

Q3. General Aptitude: Number series (MCQ) · 1 mark, minus 1/3 if wrong

Find the next term: 3, 5, 9, 17, 33, ?

(A) 63
(B) 64
(C) 65
(D) 66

Show answer

Answer: (C) 65. Each term is (previous term × 2) − 1: 3 → 5 → 9 → 17 → 33 → 65. Equivalently, the terms are 2n + 1 for n = 1 to 6.

Q4. General Aptitude: Percentages (MCQ) · 1 mark, minus 1/3 if wrong

The price of a commodity rises by 25%. By what percentage must a family reduce its consumption so that its expenditure on the commodity stays the same?

(A) 15%
(B) 25%
(C) 30%
(D) 20%

Show answer

Answer: (D) 20%. Required reduction = 25 / (100 + 25) × 100 = 20%. Check: 1.25 × 0.80 = 1.00, so expenditure is unchanged.

Q5. General Aptitude: Coding (MCQ) · 1 mark, minus 1/3 if wrong

In a code, each word is replaced by the sum of the alphabet positions of its letters (A = 1, B = 2, …, Z = 26). So CAT is coded as 24. What is the code for DOG?

(A) 26
(B) 24
(C) 27
(D) 28

Show answer

Answer: (A) 26. D = 4, O = 15, G = 7, so DOG = 4 + 15 + 7 = 26. (Check: CAT = 3 + 1 + 20 = 24.)

Q6. General Aptitude: Time and work (NAT) · 2 marks, no negative marking

A and B together can finish a job in 10 days, B and C together in 15 days, and A and C together in 18 days. How many days will A alone take to finish the job?

Show answer

Answer: 22.5. Adding the three pair rates: 2(A + B + C) = 1/10 + 1/15 + 1/18 = (9 + 6 + 5)/90 = 20/90, so A + B + C = 1/9 job per day. A = 1/9 − (B + C) = 1/9 − 1/15 = (5 − 3)/45 = 2/45. A alone takes 45/2 = 22.5 days.

Q7. General Aptitude: Permutations (MCQ) · 2 marks, minus 2/3 if wrong

How many 4-digit numbers with all digits different can be formed using the digits 0, 1, 2, 3, 4, 5, 6 if the number must be divisible by 5?

(A) 200
(B) 220
(C) 240
(D) 260

Show answer

Answer: (B) 220. The last digit must be 0 or 5. Last digit 0: the other three places take any 3 of the remaining 6 digits in order, 6 × 5 × 4 = 120. Last digit 5: the first digit cannot be 0 or 5 (5 choices), then 5 × 4 for the middle two places, giving 5 × 5 × 4 = 100. Total = 220.

Q8. General Aptitude: Data interpretation (MCQ) · 2 marks, minus 2/3 if wrong

Three factories produced the following numbers of units. By approximately what percentage did their combined production rise from 2024 to 2025?

Factory 2024 2025
P 240 300
Q 180 216
R 150 165

(A) 18.5%
(B) 20.0%
(C) 19.5%
(D) 21.0%

Show answer

Answer: (C) 19.5%. Combined 2024 = 240 + 180 + 150 = 570. Combined 2025 = 300 + 216 + 165 = 681. Rise = 111/570 ≈ 19.47%, so about 19.5%. Averaging the individual rises (25%, 20%, 10%) gives 18.3%, which is wrong because the factories have different sizes.

Q9. General Aptitude: Seating arrangement (MSQ: one or more correct) · 2 marks, no negative marking

Five friends P, Q, R, S and T sit in a row of five seats, all facing the same way. Q sits at one of the two ends. T sits in the middle seat. S sits next to T. P sits somewhere to the left of R, and P does not sit next to Q. Which statement(s) must be true?

(A) S does not sit at either end.
(B) Q sits at the right end.
(C) R does not sit at the left end.
(D) S sits immediately to the left of T.

Show answer

Answer: (A) and (C). Listing every seating that satisfies all the conditions gives exactly three: P R T S Q, P S T R Q and Q S T P R. S is in seat 4, 2 or 2, never at an end, so (A) must be true. R is in seat 2, 4 or 5, never at the left end, so (C) must be true. (B) fails for Q S T P R, and (D) fails for P R T S Q.

Q10. General Aptitude: Interest (NAT) · 2 marks, no negative marking

The difference between the compound interest (compounded annually) and the simple interest on a sum of money for 3 years at 10% per annum is Rs 155. What is the sum (in Rs)?

Show answer

Answer: 5000. For principal P: CI = P(1.13 − 1) = 0.331P and SI = P × 0.10 × 3 = 0.30P. The difference is 0.031P = 155, so P = 5000.

Want more aptitude practice? See our GATE General Aptitude guides and the Best GATE Aptitude Test Series.

GATE CSE 2027 Free Full Mock Test 2: Section B Technical (Q11 to Q35, 1 mark each)

Section B of GATE CSE 2027 Free Full Mock Test 2 starts here. These 25 questions carry 1 mark each (25 marks). A wrong 1-mark MCQ costs 1/3 mark, so skip an MCQ if you cannot eliminate at least two options.

Q11. Engineering Mathematics: Rank (MCQ) · 1 mark, minus 1/3 if wrong

For which value of k does the matrix M = [[1, 1, 1], [1, 2, 3], [1, 4, k]] have rank 2?

(A) 5
(B) 7
(C) 9
(D) 3

Show answer

Answer: (B) 7. Rows 1 and 2 are not multiples of each other, so the rank is at least 2. It is exactly 2 when det M = 0. det M = 1(2k − 12) − 1(k − 3) + 1(4 − 2) = k − 7, so k = 7. Revise: Engineering Mathematics guide.

Q12. Engineering Mathematics: Group theory (MSQ: one or more correct) · 1 mark, no negative marking

Which of the following is/are groups?

(A) {1, −1, i, −i} under complex multiplication
(B) {1, 3, 5, 7} under multiplication modulo 8
(C) The set of integers under subtraction
(D) {1, 2, 3, 4, 5} under multiplication modulo 6

Show answer

Answer: (A) and (B). (C) fails associativity: (1 − 2) − 3 = −4 but 1 − (2 − 3) = 2. (A) is the cyclic group of fourth roots of unity. (D) is not closed: 2 × 3 = 6 ≡ 0, which is not in the set. (B) is closed, has identity 1, and every element is its own inverse (3 × 3 = 9 ≡ 1, 5 × 5 = 25 ≡ 1, 7 × 7 = 49 ≡ 1).

Q13. Engineering Mathematics: Graph colouring (MCQ) · 1 mark, minus 1/3 if wrong

The wheel graph W8 is formed by joining one hub vertex to every vertex of the cycle C7. What is its chromatic number?

(A) 2
(B) 3
(C) 4
(D) 5

Show answer

Answer: (C) 4. An odd cycle such as C7 needs 3 colours. The hub is adjacent to all 7 rim vertices, so it needs a fourth colour. Chromatic number = 4.

Q14. Engineering Mathematics: Conditional probability (MCQ) · 1 mark, minus 1/3 if wrong

Three fair coins are tossed. Given that at least two of them show heads, what is the probability that all three show heads?

(A) 1/8
(B) 1/4
(C) 1/3
(D) 1/2

Show answer

Answer: (B) 1/4. Outcomes with at least two heads: HHT, HTH, THH, HHH (4 equally likely outcomes). Only HHH has three heads, so the probability is 1/4.

Q15. Digital Logic: Number systems (MCQ) · 1 mark, minus 1/3 if wrong

What is the decimal value of (2A.C)16 + (17.4)8?

(A) 57.75
(B) 60.25
(C) 58.5
(D) 58.25

Show answer

Answer: (D) 58.25. (2A.C)16 = 2 × 16 + 10 + 12/16 = 42.75. (17.4)8 = 8 + 7 + 4/8 = 15.5. Sum = 58.25. Revise: Digital Logic guide.

Q16. Digital Logic: Flip-flop conversion (MCQ) · 1 mark, minus 1/3 if wrong

A JK flip-flop is to be built from a D flip-flop and a combinational circuit. The input D must be:

(A) JQ′ + K′Q
(B) JQ + K′Q′
(C) J′Q + KQ′
(D) J + K′Q

Show answer

Answer: (A) JQ′ + K′Q. D must equal the JK next state Q+ = JQ′ + K′Q (hold when J = K = 0, reset when J = 0, K = 1, set when J = 1, K = 0, toggle when J = K = 1). A truth table over J, K, Q confirms that only (A) matches all 8 rows.

Q17. COA: DMA modes (MCQ) · 1 mark, minus 1/3 if wrong

In the cycle-stealing mode of DMA, the DMA controller:

(A) takes the bus for one word transfer at a time, interleaved with CPU bus cycles
(B) holds the system bus until the whole block is transferred
(C) transfers data only when the CPU is not using the bus at all, without ever delaying the CPU
(D) needs the CPU to execute one instruction for every word transferred

Show answer

Answer: (A) takes the bus for one word transfer at a time, interleaved with CPU bus cycles. Cycle stealing grabs the bus for one word (one bus cycle) at a time, so the CPU is slowed slightly but never blocked for long. (B) is burst mode, (C) is transparent mode, and (D) describes programmed I/O, not DMA. Revise: Computer Organization and Architecture guide.

Q18. Programming: Recursion output (NAT) · 1 mark, no negative marking

What value does g(345) return?

int g(int n) {
  if (n == 0) return 0;
  return (n % 10) + 2 * g(n / 10);
}
Show answer

Answer: 25. g(3) = 3 + 2 × g(0) = 3. g(34) = 4 + 2 × 3 = 10. g(345) = 5 + 2 × 10 = 25. Each digit is weighted by a power of 2 based on its position from the right: 3 × 4 + 4 × 2 + 5 × 1 = 25. Revise: Programming and Data Structures guide.

Q19. Data Structures: Heap insertion (MCQ) · 1 mark, minus 1/3 if wrong

The keys 10, 20, 15, 30, 40 are inserted in this order into an initially empty binary max-heap stored in an array (index 0 is the root). What is the final array?

(A) 40, 30, 20, 10, 15
(B) 40, 30, 15, 20, 10
(C) 40, 20, 30, 10, 15
(D) 40, 30, 15, 10, 20

Show answer

Answer: (D) 40, 30, 15, 10, 20. After 10, 20, 15: [20, 10, 15]. Insert 30 at index 3, it swaps with 10 then with 20: [30, 20, 15, 10]. Insert 40 at index 4 (parent index 1 holds 20), swap, then swap with 30: [40, 30, 15, 10, 20].

Q20. Data Structures: BST deletion (MCQ) · 1 mark, minus 1/3 if wrong

The keys 55, 35, 75, 25, 45, 65, 85, 70 are inserted in this order into an empty binary search tree. The root 55 is then deleted, replacing it with its in-order successor. What is the left child of 75 after the deletion?

(A) 70
(B) 65
(C) NULL
(D) 85

Show answer

Answer: (A) 70. The in-order successor of 55 is the minimum of its right subtree: 75, then 65 (65 has no left child). 65 moves to the root, and its right child 70 takes 65’s old place as the left child of 75.

Q21. Algorithms: Hashing with chaining (MCQ) · 1 mark, minus 1/3 if wrong

A hash table with 100 slots uses separate chaining and simple uniform hashing. It stores 2000 keys. What is the expected number of keys examined in an unsuccessful search?

(A) 10
(B) 20
(C) 21
(D) 40

Show answer

Answer: (B) 20. Load factor α = n/m = 2000/100 = 20. An unsuccessful search scans the whole chain of one slot, whose expected length is α = 20 (excluding the constant hashing cost). Revise: Algorithms guide.

Q22. Algorithms: Dijkstra properties (MSQ: one or more correct) · 1 mark, no negative marking

Which of the following statement(s) about Dijkstra’s single-source shortest path algorithm is/are TRUE?

(A) It computes correct shortest paths on any directed graph whose edge weights are all non-negative.
(B) Adding the same positive constant to every edge weight never changes the shortest path between any pair of vertices.
(C) With a binary heap, it runs in O((V + E) log V) time.
(D) If all edge weights are distinct, the shortest path from the source to every vertex is unique.

Show answer

Answer: (A) and (C). (A) and (C) are standard results. (B) is false: paths with more edges gain more. Example: S→A→B with weights 1, 1 (total 2) and direct S→B with weight 3; add 2 to every edge and the two-edge path costs 6 while the direct edge costs 5. (D) is false: with S→A = 1, A→B = 3 and S→B = 4, all weights are distinct but both paths to B cost 4.

Q23. TOC: Closure properties (MSQ: one or more correct) · 1 mark, no negative marking

Which of the following closure statement(s) is/are TRUE?

(A) The intersection of a context-free language and a regular language is always context-free.
(B) Recursively enumerable languages are closed under complement.
(C) Context-free languages are closed under complement.
(D) Deterministic context-free languages are closed under complement.

Show answer

Answer: (A) and (D). (A) is true: run the PDA and DFA together (product construction). (D) is true: a DPDA can be made to read the whole input and then swap accepting states. (B) is false: if both L and its complement were RE, L would be recursive, but the halting language is RE and not recursive. (C) is false: CFLs are closed under union, so closure under complement would give closure under intersection, which fails. Revise: Theory of Computation guide.

Q24. TOC: Minimal DFA (NAT) · 1 mark, no negative marking

Binary strings are read most significant bit first, and the empty string is treated as the value 0. How many states does the minimal DFA have that accepts exactly the binary strings whose value is divisible by 6?

Show answer

Answer: 4. The remainder DFA has 6 states (r → 2r + b mod 6). Divisibility by 6 needs divisibility by 2 (last bit 0) and by 3. Merging remainders that behave the same on every suffix gives the classes {0}, {1, 4}, {2, 5}, {3}. Minimisation leaves 4 states. A useful rule: for n = 2k × m with m odd, the count is m + k = 3 + 1 = 4.

Q25. TOC: Rice’s theorem (MCQ) · 1 mark, minus 1/3 if wrong

For a Turing machine M, which of the following problems is decidable?

(A) Is L(M) a regular language?
(B) Is L(M) empty?
(C) Does L(M) contain the string ab?
(D) Does M have more than 10 states?

Show answer

Answer: (D) Does M have more than 10 states. Rice’s theorem makes every non-trivial property of the language L(M) undecidable, which covers (A), (B) and (C). The number of states is a property of the machine’s description, not its language, so it is checked by simply reading the encoding of M.

Q26. Compiler Design: Three-address code (NAT) · 1 mark, no negative marking

Consider x = (a + b) * (a + b − c) + (a + b − c) / d. If every common subexpression is computed only once, what is the minimum number of three-address instructions (each of the form p = q op r) needed, including the instruction that assigns to x?

Show answer

Answer: 5. Build the DAG: t1 = a + b, t2 = t1 − c, t3 = t1 * t2, t4 = t2 / d, x = t3 + t4. There are 5 distinct operator nodes, so 5 instructions. Revise: Compiler Design guide.

Q27. Compiler Design: LR parsing facts (MSQ: one or more correct) · 1 mark, no negative marking

Which of the following statement(s) is/are TRUE?

(A) Every unambiguous grammar is LALR(1).
(B) Every LALR(1) grammar is also CLR(1).
(C) Merging CLR(1) states with the same core can create reduce-reduce conflicts but never a new shift-reduce conflict.
(D) A grammar can be SLR(1) even though its LR(0) automaton has a state with a shift-reduce conflict.

Show answer

Answer: (B), (C) and (D). (B) holds because LALR(1) tables are obtained by merging CLR(1) states. (C) is a standard result: a merged state’s shift actions depend only on the shared core. (D) is true: for E → E + T | T, T → T * F | F, F → (E) | id, the state {E → T., T → T.*F} has an LR(0) conflict, but FOLLOW(E) does not contain *, so SLR(1) resolves it. (A) is false: some unambiguous grammars (for example S → aSa | bSb | a | b) are not LR(k) for any k.

Q28. Operating Systems: Disk scheduling (MSQ: one or more correct) · 1 mark, no negative marking

A disk has cylinders 0 to 199. The head is at cylinder 50 and moving towards higher cylinder numbers. The request queue (in arrival order) is 82, 170, 43, 140, 24, 16, 190. Which statement(s) about total head movement is/are TRUE?

(A) FCFS gives a total head movement of 624 cylinders.
(B) SSTF gives a total head movement of 208 cylinders.
(C) SCAN (going to cylinder 199 before reversing) gives 332 cylinders.
(D) LOOK gives 324 cylinders.

Show answer

Answer: (B) and (C). SSTF: 50→43→24→16→82→140→170→190 = 7 + 19 + 8 + 66 + 58 + 30 + 20 = 208. SCAN: (199 − 50) + (199 − 16) = 149 + 183 = 332. LOOK: (190 − 50) + (190 − 16) = 140 + 174 = 314, not 324. FCFS: 32 + 88 + 127 + 97 + 116 + 8 + 174 = 642, not 624. Revise: Operating Systems guide.

Q29. Operating Systems: Semaphore ordering (MCQ) · 1 mark, minus 1/3 if wrong

Semaphores S = 1 and T = 0, and the shared variable x = 1. Two processes run concurrently. What is the value of x after both finish?

P1: repeat 2 times { wait(S); x = x + 1; signal(T); }
P2: repeat 2 times { wait(T); x = x * 2; signal(S); }

(A) 6
(B) 8
(C) 10
(D) 12

Show answer

Answer: (C) 10. T = 0 blocks P2 first, and S = 1 lets P1 run once, so the operations strictly alternate: P1, P2, P1, P2. x goes 1 → 2 → 4 → 5 → 10. Every interleaving gives the same result.

Q30. DBMS: Relational algebra division (MCQ) · 1 mark, minus 1/3 if wrong

Enrolled(S, C) = {(s1, DB), (s1, OS), (s2, DB), (s3, OS), (s3, DB), (s3, CN), (s4, CN)} and Course(C) = {DB, OS}. What is Enrolled ÷ Course?

(A) {s1, s3}
(B) {s1}
(C) {s3}
(D) {s1, s2, s3}

Show answer

Answer: (A) {s1, s3}. Division returns every S value paired with all courses in Course. s1 has DB and OS; s3 has DB, OS and CN (extra courses do not matter); s2 lacks OS; s4 lacks both. Result = {s1, s3}. Revise: DBMS guide.

Q31. DBMS: B+ tree order (MSQ: one or more correct) · 1 mark, no negative marking

A B+ tree index uses 2048-byte blocks, a 10-byte search key, a 6-byte block pointer and an 8-byte record pointer. Each leaf also stores one block pointer to the next leaf. Which statement(s) is/are TRUE?

(A) A leaf node can hold at most 113 (key, record pointer) pairs.
(B) An internal node can hold at most 128 keys.
(C) An internal node can hold at most 128 block pointers.
(D) A leaf node can hold at most 114 (key, record pointer) pairs.

Show answer

Answer: (A) and (C). Internal node with p pointers and p − 1 keys: 6p + 10(p − 1) ≤ 2048 gives 16p ≤ 2058, so p = 128 pointers and 127 keys. Leaf with q pairs: 18q + 6 ≤ 2048 gives q ≤ 113.4, so q = 113. The true statements are “at most 113 pairs” and “at most 128 block pointers”.

Q32. DBMS: Lossless decomposition (MSQ: one or more correct) · 1 mark, no negative marking

R(A, B, C, D, E) has functional dependencies F = {B → C, CD → E, E → A}. Which decomposition(s) is/are lossless-join?

(A) {ABC, CDE}
(B) {BC, ABDE}
(C) {AB, BCD, DE}
(D) {BC, CDE, ABD}

Show answer

Answer: (B) and (D). (B): the common attribute B determines C, so B is a key of BC: lossless. (D): chase test. Row ABD gets C from row BC (B → C), then CD → E gives it E from row CDE, so it becomes all-distinguished: lossless. (A): the common attribute C determines nothing: lossy. (C): the chase never completes a row (B → C fills C in row AB, but CD → E cannot fire there because row AB has no D): lossy.

Q33. Computer Networks: CRC (MCQ) · 1 mark, minus 1/3 if wrong

A sender uses CRC with generator polynomial x3 + 1 to send the message 101110. What are the CRC check bits appended to the message?

(A) 011
(B) 101
(C) 110
(D) 001

Show answer

Answer: (A) 011. Generator = 1001 (degree 3), so append three 0s: 101110000. Modulo-2 division by 1001 leaves remainder 011. The transmitted frame is 101110011. Revise: Computer Networks guide.

Q34. Computer Networks: Sliding window (MSQ: one or more correct) · 1 mark, no negative marking

A sliding-window protocol uses 4-bit sequence numbers. Which statement(s) is/are TRUE?

(A) Go-Back-N can use a sender window of 15.
(B) Selective Repeat can use a sender window of 8.
(C) Selective Repeat can use a sender window of 9.
(D) Go-Back-N can use a sender window of 16.

Show answer

Answer: (A) and (B). With n-bit sequence numbers, Go-Back-N allows a window of at most 2n − 1 = 15, and Selective Repeat allows at most 2n−1 = 8 (sender and receiver windows equal). Windows of 16 for GBN or 9 for SR let an old frame be mistaken for a new one.

Q35. Computer Networks: HTTP and DNS timing (MCQ) · 1 mark, minus 1/3 if wrong

A browser loads a base HTML page that references 5 small images on the same server. Resolving the server name by DNS takes 2 RTTs in total (done once). Each TCP connection set-up takes 1 RTT and each request-response takes 1 RTT; transmission times are negligible. With non-persistent HTTP and no parallel connections, how many RTTs pass before all objects are received?

(A) 9
(B) 12
(C) 14
(D) 18

Show answer

Answer: (C) 14. DNS = 2 RTT. Each of the 6 objects (1 page + 5 images) needs a new connection: 1 RTT handshake + 1 RTT request = 2 RTT. Total = 2 + 6 × 2 = 14 RTT. (Persistent HTTP without pipelining would need 2 + 1 + 6 = 9.)

Halfway through GATE CSE 2027 Free Full Mock Test 2?

If the 1-mark questions felt slow, the fix is timed practice. The free GATE CSE 2027 Test Series has 50+ subject-wise tests and 10 full-length mocks with detailed solutions and performance analysis, so you can see exactly which topics cost you time.

Take the free GATE CSE 2027 Test Series

GATE CSE 2027 Free Full Mock Test 2: Section B Technical (Q36 to Q65, 2 marks each)

The 2-mark half of GATE CSE 2027 Free Full Mock Test 2 decides most scores. These 30 questions carry 2 marks each (60 marks). A wrong 2-mark MCQ costs 2/3 mark. MSQ and NAT questions have no negative marking, so always attempt them.

Q36. Engineering Mathematics: Eigenvalues (MCQ) · 2 marks, minus 2/3 if wrong

Let A = [[4, 1, 0], [1, 4, 1], [0, 1, 4]]. What is the sum of the eigenvalues of A2 − 2A + I?

(A) 27
(B) 29
(C) 31
(D) 33

Show answer

Answer: (C) 31. A2 − 2A + I = (A − I)2. The sum of eigenvalues is its trace. A − I = [[3, 1, 0], [1, 3, 1], [0, 1, 3]] is symmetric, so trace((A − I)2) = sum of squares of all entries = 3 × 9 + 4 × 1 = 31. Check: the eigenvalues of A are 4 and 4 ± √2, so (λ − 1)2 gives 9 + (3 + √2)2 + (3 − √2)2 = 9 + 22 = 31.

Q37. Engineering Mathematics: Bayes theorem (NAT) · 2 marks, no negative marking

A disease affects 4% of a population. A test detects it in 90% of people who have it, and gives a false positive for 8% of people who do not. A randomly chosen person tests positive. What is the probability that the person has the disease? (Round off to two decimal places.)

Show answer

Answer: 0.32 (accept 0.31 to 0.33). P(D | +) = (0.04 × 0.90) / (0.04 × 0.90 + 0.96 × 0.08) = 0.036 / (0.036 + 0.0768) = 0.036 / 0.1128 ≈ 0.319, so 0.32.

Q38. Engineering Mathematics: Recurrence counting (MCQ) · 2 marks, minus 2/3 if wrong

How many strings of length 6 over the alphabet {0, 1, 2} contain an even number of 0s (zero 0s counts as even)?

(A) 364
(B) 366
(C) 729
(D) 365

Show answer

Answer: (D) 365. Let en count such strings. Appending 1 or 2 keeps the parity, and appending 0 flips it, so en = 2en−1 + (3n−1 − en−1) = en−1 + 3n−1, with e0 = 1. This gives 2, 5, 14, 41, 122, 365, and in closed form en = (3n + 1)/2 = (729 + 1)/2 = 365.

Q39. Engineering Mathematics: Cyclic groups (MCQ) · 2 marks, minus 2/3 if wrong

G is a cyclic group of order 36. Let x be the number of generators of G and y the number of subgroups of G. What is x + y?

(A) 18
(B) 21
(C) 24
(D) 27

Show answer

Answer: (B) 21. Generators = φ(36) = 36 × (1 − 1/2)(1 − 1/3) = 12. A cyclic group has exactly one subgroup for each divisor of its order: 36 has 9 divisors (1, 2, 3, 4, 6, 9, 12, 18, 36). x + y = 12 + 9 = 21.

Q40. Engineering Mathematics: Counting colourings (MCQ) · 2 marks, minus 2/3 if wrong

In how many ways can the vertices of the cycle C5 be properly coloured using at most 3 colours (adjacent vertices get different colours; the vertices are labelled)?

(A) 24
(B) 30
(C) 32
(D) 48

Show answer

Answer: (B) 30. The chromatic polynomial of Cn is (k − 1)n + (−1)n(k − 1). For n = 5, k = 3: 25 − 2 = 30.

Q41. Digital Logic: Ripple counter (MCQ) · 2 marks, minus 2/3 if wrong

A 4-bit ripple (asynchronous) up-counter starts at 0000 and uses flip-flops with a propagation delay of 15 ns each. An asynchronous clear resets all flip-flops as soon as Q3 = Q2 = 1. Ignoring the delay of the clear logic, what are the modulus of the counter and the maximum clock frequency for reliable operation?

(A) Mod 13, 16.67 MHz
(B) Mod 12, 66.67 MHz
(C) Mod 11, 16.67 MHz
(D) Mod 12, 16.67 MHz

Show answer

Answer: (D) Mod 12, 16.67 MHz. Q3Q2 = 11 first happens at 1100 (12), which is cleared at once, so the stable states are 0 to 11: mod 12. In a ripple counter the clock must wait for the change to ripple through all 4 flip-flops: T ≥ 4 × 15 = 60 ns, so fmax = 1/60 ns ≈ 16.67 MHz.

Q42. Digital Logic: Flip-flop behaviour (MSQ: one or more correct) · 2 marks, no negative marking

X is an external input and Q is the present state. Which statement(s) is/are TRUE?

(A) A JK flip-flop with J = X and K = X′ behaves as a D flip-flop with D = X.
(B) A D flip-flop with D = X ⊕ Q behaves as a T flip-flop with T = X.
(C) A JK flip-flop with J = K = 1 behaves as a D flip-flop with D = Q.
(D) A T flip-flop with T = X ⊕ Q behaves as a D flip-flop with D = X.

Show answer

Answer: (A), (B) and (D). (A): X = 1 sets and X = 0 resets, so Q+ = X. (B): Q+ = X ⊕ Q, which is the T flip-flop equation. (D): Q+ = T ⊕ Q = X ⊕ Q ⊕ Q = X. (C) is false: J = K = 1 toggles, so Q+ = Q′, not Q.

Q43. COA: Set-associative cache (NAT) · 2 marks, no negative marking

A 2-way set-associative cache has 4 sets and uses LRU replacement. A block with block address b maps to set (b mod 4). The cache is initially empty. How many misses occur for this sequence of block addresses?

0, 1, 4, 5, 0, 1, 8, 5, 0, 9, 4, 1

Show answer

Answer: 8. Only sets 0 and 1 are used. Set 0 sees 0 (M), 4 (M), 0 (H), 8 (M, evicts 4), 0 (H), 4 (M, evicts 8): 4 misses. Set 1 sees 1 (M), 5 (M), 1 (H), 5 (H), 9 (M, evicts LRU 1), 1 (M, evicts 5): 4 misses. Total = 8 misses (4 hits). The trap is that after 1, 5, 1, 5 the LRU block is 1, not 5.

Q44. COA: Pipeline with forwarding (NAT) · 2 marks, no negative marking

A 5-stage pipeline (IF, ID, EX, MEM, WB) has full operand forwarding into the EX stage. A load followed immediately by an instruction that uses the loaded value needs 1 stall; ALU results forward with no stall. How many clock cycles does this sequence take to complete?

I1: LW  R1, 0(R2)
I2: ADD R3, R1, R4
I3: SUB R5, R3, R6
I4: LW  R7, 4(R5)
I5: AND R8, R7, R1
I6: OR  R9, R8, R7
Show answer

Answer: 12. Without hazards, 6 instructions take 5 + 5 = 10 cycles. I2 uses R1 right after a load: 1 stall. I3 and I4 get ALU results by forwarding: no stall. I5 uses R7 right after a load: 1 stall. I6 is fine (R8 forwarded, R7 already available). Total = 10 + 2 = 12 cycles.

Q45. COA: DMA cycle stealing (MCQ) · 2 marks, minus 2/3 if wrong

A device transfers data to memory at 16 × 106 bytes per second using DMA in cycle-stealing mode, moving one 4-byte word per stolen bus cycle. Each bus cycle takes 50 ns. What fraction of bus cycles does the DMA controller steal?

(A) 10%
(B) 16%
(C) 25%
(D) 20%

Show answer

Answer: (D) 20%. Words per second = 16 × 106 / 4 = 4 × 106. Bus cycles per second = 1 / 50 ns = 2 × 107. Fraction = 4 × 106 / 2 × 107 = 0.2 = 20%.

Q46. Data Structures: Linked list code (MCQ) · 2 marks, minus 2/3 if wrong

The list 1 → 2 → 3 → 4 → 5 → 6 → 7 is passed to f (head points to node 1). What is the list after the call?

struct node { int val; struct node *next; };
void f(struct node **head) {
  struct node *p = *head, *q = NULL, *r;
  while (p && p->next) {
    r = p->next;
    p->next = r->next;
    r->next = p;
    if (q) q->next = r; else *head = r;
    q = p;
    p = p->next;
  }
}

(A) 2 → 1 → 4 → 3 → 6 → 5 → 7
(B) 7 → 6 → 5 → 4 → 3 → 2 → 1
(C) 2 → 1 → 3 → 4 → 5 → 6 → 7
(D) 1 → 3 → 5 → 7 → 2 → 4 → 6

Show answer

Answer: (A) 2 → 1 → 4 → 3 → 6 → 5 → 7. Each loop iteration swaps the pair (p, r) by relinking pointers: r goes before p, the previous pair’s tail q is linked to r, and p moves to the next pair. Pairs (1,2), (3,4), (5,6) are swapped; 7 has no partner, so the loop stops. Result: 2 1 4 3 6 5 7.

Q47. Computer Networks: TCP sequence numbers and window scaling (MCQ) · 2 marks, minus 2/3 if wrong

A TCP connection runs on a 1 Gbps link with an RTT of 80 ms. TCP uses 32-bit byte sequence numbers and a 16-bit window field (maximum 65,535 bytes) that can be multiplied by 2s using the window scale option. What are (i) the time for the sequence numbers to wrap around when sending at full speed, and (ii) the minimum scale factor s needed to keep the link fully used?

(A) 34.36 s and s = 8
(B) 4.29 s and s = 8
(C) 34.36 s and s = 7
(D) 274.88 s and s = 8

Show answer

Answer: (A) 34.36 s and s = 8. (i) 1 Gbps = 1.25 × 108 bytes/s, so 232 bytes take 4,294,967,296 / 1.25 × 108 ≈ 34.36 s. (ii) Bandwidth-delay product = 1.25 × 108 × 0.08 = 107 bytes. 65,535 × 27 ≈ 8.39 × 106 is too small, while 65,535 × 28 ≈ 1.68 × 107 is enough, so s = 8. Option (B) forgets to convert bits to bytes.

Q48. Data Structures: Build-heap (MSQ: one or more correct) · 2 marks, no negative marking

The array [4, 10, 3, 5, 1, 8, 7, 2] (index 0 is the root) is converted into a max-heap by the standard bottom-up build-heap method, calling sift-down on indices 3, 2, 1, 0 in that order. Which statement(s) is/are TRUE?

(A) The right child of the root is 7.
(B) Exactly 3 swaps are performed in total.
(C) The final array is 10, 5, 8, 4, 1, 3, 7, 2.
(D) The element 4 ends at index 1.

Show answer

Answer: (B) and (C). Index 3 (5, child 2): no swap. Index 2 (3, children 8 and 7): swap with 8. Index 1 (10, children 5 and 1): no swap. Index 0 (4, children 10 and 8): swap with 10, then 4 at index 1 has children 5 and 1, so swap with 5; at index 3 its only child is 2, so it stops. That is 3 swaps, giving [10, 5, 8, 4, 1, 3, 7, 2]. The root’s right child is 8, and 4 ends at index 3.

Q49. Data Structures: BST deletions (MCQ) · 2 marks, minus 2/3 if wrong

The keys 45, 25, 65, 15, 35, 55, 75, 30, 40, 60, 70, 80, 58 are inserted in this order into an empty BST. Then 65 is deleted using its in-order predecessor, and after that 25 is deleted using its in-order successor. What is the preorder traversal of the final tree?

(A) 45, 15, 35, 30, 40, 70, 55, 60, 58, 75, 80
(B) 45, 35, 15, 30, 40, 60, 55, 58, 75, 70, 80
(C) 45, 30, 15, 35, 40, 58, 55, 60, 75, 70, 80
(D) 45, 30, 15, 35, 40, 60, 55, 58, 75, 70, 80

Show answer

Answer: (D) 45, 30, 15, 35, 40, 60, 55, 58, 75, 70, 80. The predecessor of 65 is the largest key in its left subtree: 55 → 60 (60 has left child 58). 60 replaces 65, and 58 becomes the right child of 55. The successor of 25 is the smallest key in its right subtree: 35 → 30 (a leaf). 30 replaces 25. Preorder: 45, 30, 15, 35, 40, 60, 55, 58, 75, 70, 80. Option (A) is what you get if you mix up predecessor and successor.

Q50. Algorithms: Dijkstra trace (MCQ) · 2 marks, minus 2/3 if wrong

Dijkstra’s algorithm is run from S on the directed graph with edges S→A (4), S→B (1), B→A (2), B→C (6), B→D (7), A→C (3), A→D (4), C→D (1), C→E (2), D→E (2). Ties are broken alphabetically. What is the order in which vertices are finalised, and what is the shortest distance to E?

(A) S, B, A, C, D, E; distance 8
(B) S, B, A, D, C, E; distance 8
(C) S, B, A, C, D, E; distance 9
(D) S, A, B, C, D, E; distance 8

Show answer

Answer: (A) S, B, A, C, D, E; distance 8. d(S) = 0. Finalise S: d(A) = 4, d(B) = 1. Finalise B: d(A) = 3, d(C) = 7, d(D) = 8. Finalise A: d(C) = 6, d(D) = 7. Finalise C (6): d(D) stays 7, d(E) = 8. Finalise D (7): 7 + 2 = 9 does not beat 8. Finalise E (8). Order S, B, A, C, D, E with d(E) = 8.

Q51. Algorithms: Prim’s algorithm (MSQ: one or more correct) · 2 marks, no negative marking

Prim’s algorithm starts at A on the undirected graph with edges A-B (6), A-C (3), B-C (5), B-D (2), C-D (7), C-E (4), D-E (8), D-F (9), E-F (1), B-F (10). Which statement(s) is/are TRUE?

(A) The weight of the minimum spanning tree is 15.
(B) The edge B-D is added before the edge B-C.
(C) The third edge added is E-F.
(D) Kruskal’s algorithm adds the MST edges in the same order as Prim’s algorithm from A.

Show answer

Answer: (A) and (C). Prim from A adds A-C (3), C-E (4), E-F (1), C-B (5), B-D (2). So the third edge is E-F, and B-D comes after B-C. MST weight = 3 + 4 + 1 + 5 + 2 = 15. Kruskal adds them in weight order E-F, B-D, A-C, C-E, B-C, which is different.

Q52. Algorithms: Matrix chain multiplication (NAT) · 2 marks, no negative marking

Matrices A1 to A5 have dimensions 10×20, 20×5, 5×30, 30×10 and 10×25. What is the minimum number of scalar multiplications needed to compute A1A2A3A4A5?

Show answer

Answer: 5000. With p = (10, 20, 5, 30, 10, 25), the DP m[i][j] = min over k of m[i][k] + m[k+1][j] + pi−1pkpj gives 5000, using (A1A2)((A3A4)A5): A1A2 = 1000, A3A4 = 1500, (A3A4)A5 = 1250, final product 10 × 5 × 25 = 1250. Total = 1000 + 1500 + 1250 + 1250 = 5000.

Q53. Algorithms: Counting inversions (MCQ) · 2 marks, minus 2/3 if wrong

How many inversions (pairs i < j with a[i] > a[j]) does the array [8, 3, 6, 1, 7, 2, 5, 4] have?

(A) 15
(B) 16
(C) 17
(D) 18

Show answer

Answer: (C) 17. Count, for each element, the smaller elements to its right: 8 → 7, 3 → 2 (1, 2), 6 → 4 (1, 2, 5, 4), 1 → 0, 7 → 3 (2, 5, 4), 2 → 0, 5 → 1 (4), 4 → 0. Total = 7 + 2 + 4 + 0 + 3 + 0 + 1 + 0 = 17. Merge sort counts the same in O(n log n).

Q54. Algorithms: Hashing with chaining (MCQ) · 2 marks, minus 2/3 if wrong

Keys 15, 22, 8, 29, 3, 10, 36, 50 are inserted in this order into a hash table of 7 slots with h(k) = k mod 7, using chaining. Each new key is inserted at the head of its chain. Assuming each stored key is equally likely to be searched, what is the average number of key comparisons in a successful search?

(A) 2.5
(B) 3
(C) 3.5
(D) 4

Show answer

Answer: (B) 3. 15, 22, 8, 29, 36 and 50 all hash to slot 1; 3 and 10 hash to slot 3. Head insertion gives slot 1: 50, 36, 29, 8, 22, 15 (1 to 6 comparisons, total 21) and slot 3: 10, 3 (total 3). Average = (21 + 3)/8 = 3.

Q55. TOC: Ambiguous grammars (MSQ: one or more correct) · 2 marks, no negative marking

Which of the following grammar(s) is/are ambiguous?

(A) S → SS | a
(B) S → aS | Sa | a
(C) S → aSb | ab
(D) S → aSbS | ε

Show answer

Answer: (A) and (B). (A): aaa has two parse trees, (aa)a and a(aa). (B): aa can be derived as S → aS → aa or S → Sa → aa, two different trees. (C) generates anbn with exactly one tree per string. (D) is the standard unambiguous grammar for balanced strings: the first a is matched with a unique b.

Q56. TOC: Decidability (MSQ: one or more correct) · 2 marks, no negative marking

Which of the following problem(s) is/are undecidable?

(A) Given a DFA D, is L(D) infinite?
(B) Given a Turing machine M, is L(M) finite?
(C) Given a CFG G over alphabet Σ, is L(G) = Σ*?
(D) Given a TM M and input w, does M halt on w within 100 steps?

Show answer

Answer: (B) and (C). (B) is a non-trivial property of the RE language L(M), so Rice’s theorem makes it undecidable. (C), universality of CFGs, is a classic undecidable problem. (A) is decidable: look for a cycle on a path from the start state to an accepting state. (D) is decidable: simulate M for 100 steps.

Q57. TOC: Minimal DFA (MCQ) · 2 marks, minus 2/3 if wrong

Binary strings are read most significant bit first, and the empty string has value 0. How many states does the minimal DFA have that accepts exactly the strings whose value leaves remainder 3 when divided by 8?

(A) 3
(B) 4
(C) 5
(D) 8

Show answer

Answer: (B) 4. The value mod 8 depends only on the last three bits, padding with 0s on the left. Merging remainders that behave the same on every suffix gives classes {0, 2, 4, 6}, {1, 5}, {3} and {7}: 4 states. They track “last bit 0”, “suffix 01”, “suffix 011” (accept) and “suffix 111”. Note that the string 11 is accepted, because its value is 3.

Q58. Compiler Design: LR(1) and LALR(1) (MCQ) · 2 marks, minus 2/3 if wrong

Consider the grammar S → xPy | zQy | xQw | zPw, P → m, Q → m. Which statement is TRUE?

(A) The grammar is SLR(1).
(B) The grammar is LALR(1) but not SLR(1).
(C) The grammar is CLR(1) but not LALR(1).
(D) The grammar is not CLR(1).

Show answer

Answer: (C) The grammar is CLR(1) but not LALR(1). In CLR(1), after x m the items are P → m., y and Q → m., w; after z m they are P → m., w and Q → m., y. Neither state has a conflict, so the grammar is CLR(1). Both states have the same core, so LALR(1) merges them into P → m., {y, w} and Q → m., {y, w}, a reduce-reduce conflict. SLR(1) fails too, since FOLLOW(P) = FOLLOW(Q) = {y, w}.

Q59. Compiler Design: SDT evaluation (NAT) · 2 marks, no negative marking

The SDT below gives # lower precedence than &, and both are left-associative. What value is computed for E.val on the input 3 # 4 & 2 # 5 & 3 & 2?

E → E1 # T   { E.val = 2 * E1.val + T.val }
E → T        { E.val = T.val }
T → T1 & F   { T.val = T1.val * F.val − 1 }
T → F        { T.val = F.val }
F → num      { F.val = num.value }
Show answer

Answer: 53. Group by precedence: 3 # (4 & 2) # ((5 & 3) & 2). 4 & 2 = 4 × 2 − 1 = 7. 5 & 3 = 14, then 14 & 2 = 27. Left to right for #: 2 × 3 + 7 = 13, then 2 × 13 + 27 = 53.

Q60. Operating Systems: Semaphore code tracing (MSQ: one or more correct) · 2 marks, no negative marking

Semaphores are initialised as m = 1 and x = 0. Three processes run concurrently, and each print is atomic. Which output(s) is/are possible?

P1: wait(m); print("A"); signal(x); print("B"); signal(m);
P2: wait(x); print("C"); wait(m); print("D"); signal(m);
P3: wait(m); print("E"); signal(m);

(A) EACBD
(B) ACDBE
(C) ACBED
(D) AECBD

Show answer

Answer: (A) and (C). C needs x, which only P1 signals after A. D and E both need m, which P1 holds from before A until after B. So D and E can appear only after B, or E can come before A entirely. ACBED: P1 prints A, P2 prints C, P1 prints B and releases m, P3 prints E, then P2 prints D: possible. EACBD: P3 runs first: possible. ACDBE puts D before B and AECBD puts E between A and B: both impossible.

Q61. Operating Systems: Multi-level paging (NAT) · 2 marks, no negative marking

A system has 39-bit virtual addresses, 4 KB pages and 8-byte page table entries, and every page table must fit in exactly one page. A process uses only two regions: 8 MB of code starting at virtual address 0, and a 1 MB stack ending at the top of the virtual address space. How much memory (in KB) do its page tables need?

Show answer

Answer: 32. Each table page holds 4096/8 = 512 entries (9 bits). The VPN has 39 − 12 = 27 bits, so there are 3 levels. The code covers 8 MB / 4 KB = 2048 pages, needing 2048/512 = 4 third-level tables and 1 second-level table. The stack covers 256 pages, needing 1 third-level table and another second-level table (it is at the opposite end). With 1 top-level table, the total is 1 + 2 + 5 = 8 pages = 32 KB.

Q62. Operating Systems: C-SCAN (MCQ) · 2 marks, minus 2/3 if wrong

A disk has cylinders 0 to 299. The head is at cylinder 140, and its previous request was at 120. The pending requests are 55, 210, 160, 30, 285, 95, 180. Using C-SCAN, the head goes to the last cylinder, then jumps to cylinder 0 and continues upward. If the return jump also counts as head movement, what is the total head movement?

(A) 428
(B) 465
(C) 553
(D) 458

Show answer

Answer: (C) 553. The head is moving up (120 → 140). C-SCAN: 140 → 299 = 159, jump 299 → 0 = 299, then 0 → 95 serves 30, 55 and 95 = 95. Total = 159 + 299 + 95 = 553. (C-LOOK would give 145 + 255 + 65 = 465, and SCAN would give 159 + 269 = 428.)

Q63. DBMS: View serializability (MSQ: one or more correct) · 2 marks, no negative marking

Which of the following schedule(s) is/are view serializable?

(A) r1(X) r2(X) w1(X) w2(X)
(B) r1(X) w2(X) w1(X) w3(X)
(C) r1(X) w2(X) w1(X) r3(X) w3(X)
(D) r2(Y) w1(X) r3(X) w2(X) w3(X)

Show answer

Answer: (B) and (D). (B): T1 reads the initial X and T3 makes the final write, which matches serial order T1, T2, T3. T2 and T1 are blind writes, so it is view serializable but not conflict serializable. (D): T3 reads X from T1 and T3 writes last, which matches T2, T1, T3. (A) is a lost update: each transaction reads the initial X, so neither can come after the other. (C): T1 must come before T2 (it reads the initial X), but T3 reads from T1, so T2 cannot be between them, and T2 cannot come first either. No serial order works.

Q64. DBMS: B+ tree height (MCQ) · 2 marks, minus 2/3 if wrong

A B+ tree stores 1,000,000 keys. Each leaf holds between 20 and 40 keys, each internal node other than the root has between 25 and 50 children, and the root has between 2 and 50 children. What are the minimum and maximum possible number of levels (counting the leaf level)?

(A) 4 and 5
(B) 4 and 6
(C) 3 and 5
(D) 5 and 5

Show answer

Answer: (A) 4 and 5. Minimum: full leaves give 1,000,000/40 = 25,000 leaves, then 25,000/50 = 500, 500/50 = 10 and 1 root: 4 levels. Maximum: at most 1,000,000/20 = 50,000 leaves. With h levels there are at least 2 × 25h−2 leaves. h = 5 needs 31,250 ≤ 50,000 (possible); h = 6 needs 781,250 (impossible). So 4 and 5.

Q65. Computer Networks: TCP Reno (NAT) · 2 marks, no negative marking

A TCP Reno connection starts with cwnd = 1 MSS in round 1 and ssthresh = 16 MSS. In slow start cwnd doubles each round but does not go beyond ssthresh; after that it grows by 1 MSS per round. A timeout occurs at the end of round 8: ssthresh becomes half of cwnd (rounded down) and cwnd becomes 1. A triple duplicate ACK occurs at the end of round 14: ssthresh becomes half of cwnd (rounded down) and cwnd becomes the new ssthresh (fast recovery, ignoring window inflation). What is cwnd (in MSS) in round 17?

Show answer

Answer: 7. Rounds 1 to 5: 1, 2, 4, 8, 16 (reaches ssthresh). Rounds 6 to 8: 17, 18, 19. Timeout: ssthresh = 9, cwnd = 1. Rounds 9 to 13: 1, 2, 4, 8, 9 (capped at ssthresh). Round 14: 10. Triple duplicate ACK: ssthresh = 5, cwnd = 5 in round 15, then 6 in round 16 and 7 in round 17.

GATE CSE 2027 Free Full Mock Test 2: Answer Key

Use this GATE CSE 2027 Free Full Mock Test 2 answer key to mark your answer sheet. For MSQ, your selection must match the full set. For NAT, any value inside the range is correct.

Q no Subject Type Marks Answer
1 General Aptitude MCQ 1 (A)
2 General Aptitude MCQ 1 (B)
3 General Aptitude MCQ 1 (C)
4 General Aptitude MCQ 1 (D)
5 General Aptitude MCQ 1 (A)
6 General Aptitude NAT 2 22.5
7 General Aptitude MCQ 2 (B)
8 General Aptitude MCQ 2 (C)
9 General Aptitude MSQ 2 (A), (C)
10 General Aptitude NAT 2 5000
11 Engineering Mathematics MCQ 1 (B)
12 Engineering Mathematics MSQ 1 (A), (B)
13 Engineering Mathematics MCQ 1 (C)
14 Engineering Mathematics MCQ 1 (B)
15 Digital Logic MCQ 1 (D)
16 Digital Logic MCQ 1 (A)
17 Computer Organization and Architecture MCQ 1 (A)
18 Programming and Data Structures NAT 1 25
19 Programming and Data Structures MCQ 1 (D)
20 Programming and Data Structures MCQ 1 (A)
21 Algorithms MCQ 1 (B)
22 Algorithms MSQ 1 (A), (C)
23 Theory of Computation MSQ 1 (A), (D)
24 Theory of Computation NAT 1 4
25 Theory of Computation MCQ 1 (D)
26 Compiler Design NAT 1 5
27 Compiler Design MSQ 1 (B), (C), (D)
28 Operating Systems MSQ 1 (B), (C)
29 Operating Systems MCQ 1 (C)
30 DBMS MCQ 1 (A)
31 DBMS MSQ 1 (A), (C)
32 DBMS MSQ 1 (B), (D)
33 Computer Networks MCQ 1 (A)
34 Computer Networks MSQ 1 (A), (B)
35 Computer Networks MCQ 1 (C)
36 Engineering Mathematics MCQ 2 (C)
37 Engineering Mathematics NAT 2 0.32 (range 0.31 to 0.33)
38 Engineering Mathematics MCQ 2 (D)
39 Engineering Mathematics MCQ 2 (B)
40 Engineering Mathematics MCQ 2 (B)
41 Digital Logic MCQ 2 (D)
42 Digital Logic MSQ 2 (A), (B), (D)
43 Computer Organization and Architecture NAT 2 8
44 Computer Organization and Architecture NAT 2 12
45 Computer Organization and Architecture MCQ 2 (D)
46 Programming and Data Structures MCQ 2 (A)
47 Computer Networks MCQ 2 (A)
48 Programming and Data Structures MSQ 2 (B), (C)
49 Programming and Data Structures MCQ 2 (D)
50 Algorithms MCQ 2 (A)
51 Algorithms MSQ 2 (A), (C)
52 Algorithms NAT 2 5000
53 Algorithms MCQ 2 (C)
54 Algorithms MCQ 2 (B)
55 Theory of Computation MSQ 2 (A), (B)
56 Theory of Computation MSQ 2 (B), (C)
57 Theory of Computation MCQ 2 (B)
58 Compiler Design MCQ 2 (C)
59 Compiler Design NAT 2 53
60 Operating Systems MSQ 2 (A), (C)
61 Operating Systems NAT 2 32
62 Operating Systems MCQ 2 (C)
63 DBMS MSQ 2 (B), (D)
64 DBMS MCQ 2 (A)
65 Computer Networks NAT 2 7

How to score GATE CSE 2027 Free Full Mock Test 2 (with negative marks)

Score GATE CSE 2027 Free Full Mock Test 2 exactly as GATE would. Mark each question as correct, wrong or unattempted, then apply this table.

Question type Correct Wrong Unattempted In this paper
1-mark MCQ +1 −1/3 0 19 questions
2-mark MCQ +2 −2/3 0 18 questions
MSQ (1 or 2 marks) Full marks only for the exact set 0 (no negative) 0 16 questions
NAT (1 or 2 marks) Full marks if inside the range 0 (no negative) 0 12 questions
  1. Add positive marks: total the marks of every correct question (MCQ, MSQ and NAT).
  2. Subtract negative marks: count wrong 1-mark MCQs (W1) and wrong 2-mark MCQs (W2). Negative = W1/3 + 2 × W2/3.
  3. Final score = positive marks − negative marks, rounded to two decimal places.
  4. Split it: note your GA score (out of 15) and technical score (out of 85) separately. This shows where marks leak.

Worked example: you get 52 marks from correct answers, with 6 wrong 1-mark MCQs and 4 wrong 2-mark MCQs. Negative = 6/3 + 8/3 = 4.67. Final score = 52 − 4.67 = 47.33. If the 10 wrong MCQs had been left blank, you would have scored 52. That gap is the real cost of guessing.

GATE CSE 2027 Free Full Mock Test 2: What your score means

For context, GATE 2026 CS qualifying marks were 30 (General), 27 (OBC-NCL/EWS) and 20 (SC/ST/PwD). The average score was 18.51, the mean of the top 0.1% was 77.03 and the highest score was 92.57. GATE CSE 2027 Free Full Mock Test 2 is set slightly harder than an average paper, so read the bands below as guidance only. They are not rank or score predictions for GATE 2027.

Your score (out of 100) What it usually means What to do next
Below 20 Core concepts in several subjects are not yet in place. Revise the subject guides, then take subject-wise tests before your next full mock.
20 to 30 Near the 2026 qualifying range. Some subjects are strong, others are leaking marks. Find your 3 weakest subjects from the answer key and fix them with topic tests.
30 to 45 Above the 2026 General qualifying mark on a tougher-than-average paper. Cut negative marks and speed up 2-mark numericals. Take one full mock per week.
45 to 60 Strong preparation with a few gaps. Analyse every wrong MSQ and NAT, and move to 2 full mocks per week.
Above 60 Well prepared for this level of paper. Keep exam stamina up with full mocks at your actual slot time, and revise formulas.

After GATE CSE 2027 Free Full Mock Test 2: analyse, then practise

  1. Sort every question into correct, wrong, skipped but knew, and skipped and did not know. “Skipped but knew” is a speed problem; “wrong” is a concept or care problem.
  2. Re-solve every wrong question without looking, then compare with the worked solution above. That is the point of a GATE CSE mock test with solutions.
  3. Check negative marks. If wrong MCQs cost you more than 3 marks, attempt fewer low-confidence MCQs next time.
  4. Take a subject test for each weak area: OS, DBMS, Computer Networks, Algorithms or TOC.
  5. Take the next full mock within a week. The free GATE CSE 2027 Test Series has 10 full-length mocks with performance analysis.

Not sure how many papers to take before February? Read how many mock tests for GATE CSE and the GATE CSE exam day strategy.

Frequently asked questions

Is the GATE CSE 2027 Test Series free?

Show answer

Yes. The Best GATE CSE 2027 Test Series by Piyush Wairale is free: you enrol for free on piyushwairale.com. It has 50+ subject-wise tests, 10 full-length mock tests on the real GATE pattern (65 questions, 100 marks, 3 hours), GATE CSE PYQ PDFs with solutions, MCQ, MSQ and NAT questions, detailed solutions and performance analysis.

How is GATE CSE 2027 Free Full Mock Test 2 different from Mock Test 1?

Show answer

Both follow the same GATE CS pattern of 65 questions and 100 marks. Mock Test 2 is set slightly harder and uses different sub-topics, such as semaphore code tracing, multi-level paging, view serializability, TCP Reno, LR(1) versus LALR(1) and set-associative cache traces.

What is the GATE CS 2027 exam pattern?

Show answer

GATE CS has 65 questions for 100 marks in 3 hours as a computer-based test: 15 marks of General Aptitude, about 13 marks of Engineering Mathematics and about 72 marks of core Computer Science, with MCQ, MSQ and NAT questions.

Is there negative marking in this mock and in GATE CSE?

Show answer

Yes, for MCQs only: minus 1/3 mark for a wrong 1-mark MCQ and minus 2/3 for a wrong 2-mark MCQ. MSQ and NAT have no negative marking and no partial marks, in this mock and in GATE.

How long should I spend on GATE CSE 2027 Free Full Mock Test 2?

Show answer

Take it in one sitting of 3 hours with a timer, as in the real exam. Then spend at least as long again analysing your answers with the worked solutions.

Is a score of 30 in this mock enough to qualify GATE?

Show answer

The GATE 2026 CS qualifying mark for the General category was 30, but a mock score is only a guide. Qualifying marks change every year and this paper is set slightly harder than average, so use your score to find weak areas rather than to predict a result.

When is GATE 2027?

Show answer

GATE 2027 is organised by IIT Madras on 6, 7, 13, 14, 20 and 21 February 2027, and the result is due on 19 March 2027. Your CS session is printed on your admit card.

Where can I take more full-length GATE CSE mocks?

Show answer

The free GATE CSE 2027 Test Series on piyushwairale.com has 10 full-length mocks plus 50+ subject-wise tests. This site also has free subject mocks, GATE CSE 2027 Free Full Mock Test 1 and GATE CSE 2027 Free Full Mock Test 2.

Your next step after GATE CSE 2027 Free Full Mock Test 2

Score GATE CSE 2027 Free Full Mock Test 2, list your three weakest subjects, and then take your next full-length mock this week in the free GATE CSE 2027 Test Series by Piyush Wairale (IIT Madras).

Start the free GATE CSE 2027 Test Series

More free GATE CSE 2027 resources

Written by Piyush Wairale (M.Tech, IIT Madras), founder of PiyushAI Edtech. Exam details as announced by IIT Madras; always confirm on gate2027.iitm.ac.in. Last updated 29 November 2026.

Share This Story, Choose Your Platform!
Join the PiyushAI AI & Data Science Community | Newsletter
📬 PiyushAI  ·  AI & Data Science Learning Community

Stay Ahead in AI, Data Science, Exams & Your Learning Journey

Join 20,000+ learners exploring AI & Data Science — GATE, Bank IT & PSU exam aspirants, IIT Madras BS Degree students, school teachers exploring the CBSE CT & AI curriculum, working professionals, and anyone starting their AI literacy journey. Tell us a little about yourself and get personalised updates, resources, and mentorship alerts — straight from Piyush Wairale.

🎯
Exam & Career Updates First
GATE, Bank IT Officer, PSU & Government job alerts — plus IIT Madras BS Degree guidance.
📚
Free Learning Resources
Study notes, PYQ analysis, practice questions & guides for exams, data science & AI.
🚀
AI Literacy & CBSE CT-AI
AI tools & concepts for everyone, CBSE CT & AI curriculum support for schools & teachers, plus early course access.
✍️ Join the Community — Fill the Form

Takes less than 60 seconds  •  No spam, only what helps you learn & grow

👨‍🎓 20,000+ Students
▶️ 44,000+ YouTube Subscribers
🎓 IIT Madras Alumnus Mentor

Recent Post

Connect with PiyushAI | YouTube & Telegram Community
🔗 Connect With Us

Learn Daily, Wherever You Are

Free lectures, exam updates, PYQ discussions, and job alerts — delivered through our YouTube channel and Telegram communities.

▶️
YouTube Channel
Piyush Wairale IITM
Free lectures on AI, Data Science, GATE preparation & exam strategy — trusted by 44,000+ subscribers.
Subscribe Now →
🌐
Official Website
piyushwairale.com
Complete courses, GATE DA test series, mock exams & structured preparation programs — all in one place.
Explore Courses →

Leave A Comment