GATE CSE 2027 · Free practice questions · Updated 29 November 2026
GATE CSE MSQ and NAT Practice Questions 2027: 20 Free Questions with Step-by-Step Solutions
10 MSQ and 10 NAT questions across every GATE CS subject, with worked solutions, a marking table and a clear strategy for both question types. Then train them under exam conditions in the free GATE CSE 2027 Test Series by Piyush Wairale (IIT Madras).

10 MSQ + 10 NATAll GATE CS subjectsNo negative markingFree test series

GATE CSE MSQ and NAT Practice Questions 2027 with step-by-step solutions

Quick answer: GATE CSE MSQ and NAT practice questions are multiple select questions (one or more options correct) and numerical answer type questions (you type a number) from the GATE CS paper. Both carry no negative marking and no partial marks, so you score only when your answer is exactly right. This page gives you 20 free GATE CSE MSQ and NAT practice questions with step-by-step solutions, and the free GATE CSE 2027 Test Series gives you many more inside 50+ subject-wise tests and 10 full-length mocks.

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

Free · By Piyush Wairale (IIT Madras)

Free GATE CSE 2027 Test Series with MCQ, MSQ and NAT questions

Subject-wise tests
50+
Full GATE CSE 2027 syllabus
Full-length mocks
10
65 questions, 100 marks, 3 hours
GATE CSE PYQs
PDF + solutions
Previous year papers with solutions
Price
Free
Enrol for free on piyushwairale.com
  • MCQ, MSQ and NAT questions in every test, so you practise all three GATE question types.
  • 10 full-length mock tests on the real GATE pattern: 65 questions, 100 marks, 3 hours.
  • Detailed solutions and explanations for every question, plus GATE CSE PYQ PDFs with solutions.
  • Performance analysis that shows your strengths and weak areas after each test.

Start the free GATE CSE 2027 Test Series

What are MSQ and NAT in GATE CSE?

The GATE CS paper has 65 questions for 100 marks in 3 hours, and it uses three question types. You already know MCQ: four options, exactly one correct. MSQ and NAT are the two types that decide ranks, because they cannot be guessed easily.

  • MSQ (Multiple Select Question): four options, and one or more of them are correct. You must select exactly the correct set. If even one option is missing or one extra option is ticked, you get zero.
  • NAT (Numerical Answer Type): no options at all. You type a number (integer or decimal) using the on-screen keypad. The answer is accepted only if it matches the correct value or falls inside the range set by the examiners.

Since there are no options to eliminate in NAT and no partial credit in MSQ, these questions reward real understanding. That is exactly why both types should be part of your weekly routine, not something you see for the first time in a mock.

GATE CS marking scheme: MCQ vs MSQ vs NAT

Feature MCQ MSQ NAT
Options 4, exactly one correct 4, one or more correct None, you type a number
Marks per question 1 or 2 1 or 2 1 or 2
Negative marking Minus 1/3 (1-mark), minus 2/3 (2-mark) None None
Partial marks Not applicable None: all correct options and nothing else None: exact value or within the given range
Can you guess? Risky because of negative marks Guessing rarely works, but costs nothing Almost impossible to guess
Best approach Attempt when confidence is high Judge each option on its own Solve fully, then check rounding and units

The full marking scheme and syllabus are in our GATE CS 2027 syllabus and exam pattern guide.

Strategy for GATE CSE MSQ questions

  1. Treat each option as a true or false statement. Read option (A), decide true or false, and only then move to (B). Do not compare options against each other, because any number from one to four can be correct.
  2. Never stop at the first correct option. The most common MSQ mistake is finding one correct option and moving on. Always test all four.
  3. Look for counterexamples. For a statement like “always” or “never”, try to find one small case that breaks it. One counterexample makes the option false.
  4. Attempt every MSQ you have worked on. There is no negative marking, so a reasoned attempt is always better than a blank.
  5. Do not over-select. Ticking an extra option to “be safe” turns a correct answer into zero. Select only what you have proved.

Strategy for GATE CSE NAT questions

  1. Read the rounding instruction. If the question says “rounded off to two decimal places”, type 0.83, not 0.8333 and not 0.8. Round only at the final step, never in the middle.
  2. Know that ranges exist. For decimal answers, the official key usually accepts a small range. Your job is still to compute carefully; the range only absorbs tiny rounding differences.
  3. Watch the units. The question may ask for milliseconds while your working is in seconds, or KB while you computed bytes. Convert before you type.
  4. Practise the virtual calculator. GATE gives only an on-screen virtual calculator. Practise with it so long multiplications and logarithms do not slow you down on exam day.
  5. Re-check the formula, not just the arithmetic. Most NAT errors come from the wrong formula (for example, forgetting the plus 1 in 1 + 2a for sliding window), not from bad calculation.

You can train these habits under real time pressure in the Free GATE CSE 2027 Test Series hub, which links every free mock on this site.

GATE CSE MSQ and NAT Practice Questions, part 1: 10 MSQs with solutions

Set a timer for 25 minutes and attempt all 10 MSQs before opening any answer. Remember: select every correct option and nothing else.

Q1. Operating Systems: Page replacement (MSQ: one or more correct)

Consider the page reference string 4, 7, 1, 4, 2, 7, 5, 4, 1, 2, 7, 5, with all frames initially empty. Which of these statements are correct?

(A) FIFO with 3 frames causes 10 page faults
(B) LRU with 3 frames causes 11 page faults
(C) Optimal replacement with 3 frames causes 7 page faults
(D) FIFO with 4 frames causes more page faults than FIFO with 3 frames

Show answer

Answer: (A), (B) and (C). Simulating each policy step by step with 3 frames: FIFO gives 10 faults, LRU gives 11 faults and Optimal gives 7 faults. Note that LRU does worse than FIFO on this string; LRU is better on average, not on every string. With 4 frames FIFO gives only 7 faults, so (D) is false for this string (Belady’s anomaly can happen with FIFO, but it does not happen here). Revise in GATE CSE Operating System 2027.

Q2. DBMS: Keys and normal forms (MSQ: one or more correct)

Relation R(A, B, C, D) has the functional dependencies AB → C, C → D and D → A. Which statements are correct?

(A) BD is a candidate key of R
(B) R is in 3NF
(C) R is in BCNF
(D) B is part of every candidate key

Show answer

Answer: (A), (B) and (D). B appears on no right-hand side, so B is in every key. Closures: (AB)+ = ABCD, (CB)+ = ABCD, (DB)+ = ABCD, and B alone is not a key. So the candidate keys are AB, BC and BD, and every attribute is prime. For 3NF, each FD needs a superkey on the left or a prime attribute on the right: AB → C has a superkey, while C → D and D → A have prime attributes on the right. So R is in 3NF. C → D violates BCNF because C is not a superkey, so (C) is false. Revise in GATE CSE DBMS 2027.

Q3. Computer Networks: Subnetting (MSQ: one or more correct)

A host has the IP address 192.168.10.77/27. Which statements are correct?

(A) The network address is 192.168.10.64
(B) The broadcast address is 192.168.10.95
(C) The subnet has 30 usable host addresses
(D) 192.168.10.97 is in the same subnet

Show answer

Answer: (A), (B) and (C). A /27 mask leaves 5 host bits, so each block has 32 addresses: 64 to 95 contains 77. The network address is .64, the broadcast is .95 and usable hosts are 32 minus 2 = 30. Address .97 lies in the next block (96 to 127), so (D) is false. Revise in GATE CSE Computer Networks 2027.

Q4. Algorithms: Minimum spanning trees (MSQ: one or more correct)

G is a connected, undirected graph in which all edge weights are distinct. Which statements are always true?

(A) G has exactly one minimum spanning tree
(B) The lightest edge of G is in the MST
(C) The heaviest edge of G is never in the MST
(D) The heaviest edge of any cycle in G is not in the MST

Show answer

Answer: (A), (B) and (D). With distinct weights the MST is unique. The lightest edge is always picked first by Kruskal’s algorithm, and by the cycle property the heaviest edge on any cycle is never in the MST. (C) is false: if the heaviest edge is a bridge (its removal disconnects G), every spanning tree must contain it. Revise in GATE CSE Algorithms 2027.

Q5. Data Structures: Binary search tree (MSQ: one or more correct)

The keys 50, 30, 70, 20, 40, 60, 80, 35 are inserted in this order into an empty binary search tree. Height is measured in edges, so a single node has height 0. Which statements are correct?

(A) The height of the tree is 3
(B) The inorder successor of 35 is 30
(C) The postorder traversal ends with 80, 70, 50
(D) The tree has 4 leaf nodes

Show answer

Answer: (A), (C) and (D). The longest path is 50 → 30 → 40 → 35, which is 3 edges. The inorder sequence is 20, 30, 35, 40, 50, 60, 70, 80, so the successor of 35 is 40, not 30, and (B) is false. Postorder is 20, 35, 40, 30, 60, 80, 70, 50. The leaves are 20, 35, 60 and 80. Revise in GATE CSE Programming and Data Structures 2027.

Q6. Theory of Computation: Regular languages (MSQ: one or more correct)

Which of these languages over {a, b} are regular?

(A) {anbm | n, m ≥ 0 and n + m is even}
(B) {anbn | 0 ≤ n ≤ 100}
(C) {ww | w ∈ {a, b}*}
(D) {ap | p is a prime number}

Show answer

Answer: (A) and (B). (A) is a*b* intersected with “even length”, and both are regular, so the intersection is regular. (B) is a finite language (101 strings), and every finite language is regular. (C) and (D) fail the pumping lemma for regular languages: (C) needs unbounded memory to match the two halves, and the gaps between primes are not periodic. Revise in GATE CSE Theory of Computation 2027.

Q7. COA: Pipelining (MSQ: one or more correct)

A 5-stage pipeline has stage delays of 150, 120, 200, 180 and 100 ps, and each pipeline register adds 10 ps. The non-pipelined version takes the sum of the stage delays per instruction. Ignore hazards. For 100 instructions, which statements are correct?

(A) The pipeline clock period is 210 ps
(B) The total time for 100 instructions is 21,840 ps
(C) The speedup over the non-pipelined version is about 3.43
(D) The pipeline completes one instruction every 200 ps in steady state

Show answer

Answer: (A), (B) and (C). Clock period = largest stage delay + register delay = 200 + 10 = 210 ps. Total time = (k + n − 1) × clock = (5 + 100 − 1) × 210 = 21,840 ps. Non-pipelined time = 750 × 100 = 75,000 ps, so speedup = 75,000 / 21,840 ≈ 3.43. In steady state one instruction completes every 210 ps, not 200 ps, so (D) is false. Revise in GATE CSE COA 2027.

Q8. Digital Logic: Boolean functions (MSQ: one or more correct)

F(A, B, C) = Σm(1, 3, 5, 6, 7). Which statements are correct?

(A) The minimal sum of products is F = C + AB
(B) F = ΠM(0, 2, 4)
(C) F is a self-dual function
(D) F can be built with one 2-input AND gate and one 2-input OR gate

Show answer

Answer: (A), (B) and (D). Minterms 1, 3, 5, 7 are all rows with C = 1, and minterm 6 adds AB with C = 0, so F = C + AB. The missing minterms 0, 2, 4 become the maxterms. AB needs one AND gate and adding C needs one OR gate. A self-dual function needs F(A′, B′, C′) = F′(A, B, C) for every input. Take A = 1, B = 1, C = 0: F(0, 0, 1) = 1 (minterm 1), but F′(1, 1, 0) = 0 because minterm 6 is in F. So F is not self-dual and (C) is false. Quick check: a self-dual function of 3 variables has exactly 4 minterms, and F has 5. Revise in GATE CSE Digital Logic 2027.

Q9. Compiler Design: FIRST and FOLLOW (MSQ: one or more correct)

Consider the grammar E → E + T | T, T → T * F | F, F → id, with start symbol E. Which statements are correct?

(A) The grammar is left recursive
(B) The grammar is LL(1) as written
(C) FOLLOW(T) = {+, *, $}
(D) FIRST(E) = {id}

Show answer

Answer: (A), (C) and (D). E → E + T and T → T * F are left recursive, and no left-recursive grammar is LL(1), so (B) is false. FIRST of every non-terminal reduces to FIRST(F) = {id}. FOLLOW(E) = {+, $}. From E → E + T and E → T, FOLLOW(T) contains FOLLOW(E), and from T → T * F it also contains *, giving {+, *, $}. Revise in GATE CSE Compiler Design 2027.

Q10. Engineering Mathematics: Eigenvalues (MSQ: one or more correct)

Let A = [[4, 1], [2, 3]]. Which statements are correct?

(A) The eigenvalues of A are 2 and 5
(B) det(A) = 10
(C) A is diagonalizable
(D) A is singular

Show answer

Answer: (A), (B) and (C). The characteristic equation is λ2 − 7λ + 10 = 0, so λ = 2 or 5. det(A) = 4 × 3 − 1 × 2 = 10. Two distinct eigenvalues guarantee two independent eigenvectors, so A is diagonalizable. A non-zero determinant means A is not singular, so (D) is false. Revise in GATE CSE Engineering Mathematics 2027.

Practise MSQ and NAT under a real GATE clock

The free GATE CSE 2027 Test Series mixes MCQ, MSQ and NAT in every subject-wise test and in 10 full-length mocks, with detailed solutions and performance analysis that shows exactly which question types cost you marks.

Start the free GATE CSE 2027 Test Series

10 GATE CSE NAT questions with solutions

Give yourself 30 minutes for these 10 NAT questions. Keep a rough sheet and use only a basic calculator, as you would with the GATE virtual calculator.

Q11. Operating Systems: SRTF scheduling (NAT)

Four processes arrive as follows (arrival time, burst time in ms): P1 (0, 6), P2 (1, 3), P3 (2, 7), P4 (4, 2). Using preemptive Shortest Remaining Time First, what is the average waiting time in ms?

Show answer

Answer: 3.5 ms. Gantt chart: P1 0 to 1, P2 1 to 4, P4 4 to 6, P1 6 to 11, P3 11 to 18. Completion times: P1 = 11, P2 = 4, P3 = 18, P4 = 6. Waiting = completion − arrival − burst: P1 = 5, P2 = 0, P3 = 9, P4 = 0. Average = 14 / 4 = 3.5 ms.

Q12. DBMS: B+ tree order (NAT)

A B+ tree index uses 1024-byte blocks. A search key takes 12 bytes and a block pointer takes 8 bytes. What is the maximum number of child pointers an internal node can hold?

Show answer

Answer: 51. An internal node with p pointers has p − 1 keys: 8p + 12(p − 1) ≤ 1024, so 20p ≤ 1036 and p ≤ 51.8. The largest integer is 51.

Q13. Computer Networks: Sliding window (NAT)

A link has a bandwidth of 20 Mbps and a one-way propagation delay of 15 ms. Frames are 2000 bytes. Go-Back-N is used and the sender must keep the link 100% busy. What is the minimum number of bits needed for the sequence number field?

Show answer

Answer: 6. Transmission time = 16,000 bits / 20 Mbps = 0.8 ms. a = 15 / 0.8 = 18.75. Window needed = 1 + 2a = 38.5, so at least 39 frames. In Go-Back-N the window can be at most 2k − 1, so 2k ≥ 40, giving k = 6.

Q14. Algorithms: Matrix chain multiplication (NAT)

Matrices A1, A2, A3, A4 have dimensions 10 × 20, 20 × 5, 5 × 30 and 30 × 10. What is the minimum number of scalar multiplications needed to compute A1A2A3A4?

Show answer

Answer: 3000. The best order is (A1A2)(A3A4). A1A2 costs 10 × 20 × 5 = 1000, A3A4 costs 5 × 30 × 10 = 1500, and the final product (10 × 5)(5 × 10) costs 10 × 5 × 10 = 500. Total = 3000. The dynamic programming table confirms no order is cheaper; for example ((A1A2)A3)A4 costs 5500.

Q15. Data Structures: Hashing with linear probing (NAT)

A hash table has 11 slots (0 to 10), h(k) = k mod 11 and uses linear probing. The keys 25, 36, 47, 14, 3, 58 are inserted in that order into an empty table. In which slot does 58 end up?

Show answer

Answer: 8. Every key hashes to slot 3 (25, 36, 47, 14, 3 and 58 all leave remainder 3). So they fill slots 3, 4, 5, 6, 7 in order, and 58 probes 3 to 7, all occupied, and lands in slot 8. This is primary clustering in action.

Q16. Theory of Computation: Minimal DFA (NAT)

L is the set of strings over {a, b} in which the number of a’s is divisible by 3 and the number of b’s is divisible by 2. How many states does the minimal DFA for L have?

Show answer

Answer: 6. Track (number of a’s mod 3, number of b’s mod 2): 3 × 2 = 6 states. No two states are equivalent, because from each state a different suffix leads to acceptance. A Myhill-Nerode check gives exactly 6 classes.

Q17. COA: Average memory access time (NAT)

L1 cache hit time is 2 ns and its miss rate is 5%. L2 hit time is 10 ns and its local miss rate is 20%. Main memory access time is 100 ns. What is the average memory access time in ns?

Show answer

Answer: 3.5 ns. AMAT = L1 hit time + L1 miss rate × (L2 hit time + L2 miss rate × memory time) = 2 + 0.05 × (10 + 0.2 × 100) = 2 + 0.05 × 30 = 3.5 ns.

Q18. Digital Logic: IEEE 754 (NAT)

A 32-bit IEEE 754 single-precision number is stored as the hexadecimal value C1480000. What is its decimal value?

Show answer

Answer: −12.5. Binary: 1 10000010 10010000000000000000000. Sign = 1 (negative). Exponent = 130 − 127 = 3. Mantissa = 1.1001 in binary = 1.5625. Value = −1.5625 × 23 = −12.5.

Q19. Compiler Design: Lexical analysis (NAT)

How many tokens does a C lexical analyser produce for this statement?

printf("x=%d", a+++b);
Show answer

Answer: 10. The lexer uses the longest match, so a+++b becomes a, ++, +, b. Tokens: printf, (, “x=%d”, comma, a, ++, +, b, ), semicolon. The string literal is one token however many characters it has.

Q20. Engineering Mathematics: Probability (NAT)

A box has 4 red and 6 blue balls. Three balls are drawn at random without replacement. What is the probability that at least one is red? Give the answer rounded off to two decimal places.

Show answer

Answer: 0.83. P(no red) = C(6, 3) / C(10, 3) = 20 / 120 = 1/6. So P(at least one red) = 1 − 1/6 = 5/6 = 0.8333, which rounds to 0.83. Typing 0.8 or 0.833 ignores the rounding instruction, so always type exactly what the question asks.

Score guide for these GATE CSE MSQ and NAT practice questions

Each question here is worth one point. Count your exact-match answers (for MSQ, only a fully correct set counts) and use the table below.

Score (out of 20) What it means Next step
17 to 20 Strong on both question types Move to full-length mocks and keep an eye on time per question
12 to 16 Good concepts, a few gaps or careless errors Take subject-wise tests in the subjects where you slipped
7 to 11 Concept gaps in some subjects Revise the linked subject guides, then take topic-level tests
0 to 6 MSQ and NAT need focused work Revise theory first, then practise 10 MSQ and NAT questions every day

Also check your error type. If you lost MSQs by missing one correct option, slow down and test every option. If you lost NATs on rounding or units, add a 10-second final check before typing each answer. Then repeat the drill on fresh questions in the free GATE CSE 2027 Test Series.

How the free GATE CSE 2027 Test Series trains MSQ and NAT

Twenty GATE CSE MSQ and NAT practice questions show you the pattern. Scoring well in February needs hundreds more, solved under time pressure. This is where the free GATE CSE 2027 Test Series by Piyush Wairale helps.

  • MCQ, MSQ and NAT in every test. You meet all three types in the same mix as the real GATE CS paper, so switching between them becomes natural.
  • 50+ subject-wise tests. Practise MSQ and NAT topic by topic: page replacement, subnetting, normal forms, pipelining and every other GATE CS area.
  • 10 full-length mocks. 65 questions, 100 marks, 3 hours, on the real GATE pattern, so you learn how much time MSQ and NAT really take.
  • Detailed solutions and explanations. Every question has a worked solution, so you see why each MSQ option is right or wrong.
  • Performance analysis. See your strengths and weak areas after each test and decide where to revise next.
  • GATE CSE PYQ PDFs with solutions. Study how past papers framed MSQ and NAT questions.

Want subject-focused practice first? Try the free GATE CSE Operating System mock test, the Computer Networks mock test or the Engineering Mathematics mock test, then take free full mock test 1.

Frequently asked questions

Is there negative marking for MSQ and NAT in GATE CSE?

No. In GATE CS, negative marking applies only to MCQs (minus 1/3 for a 1-mark question and minus 2/3 for a 2-mark question). MSQ and NAT questions have no negative marking.

Does GATE give partial marks in MSQ?

No. You get the marks only if you select all the correct options and no wrong option. Selecting some but not all correct options gives zero.

How should I round a NAT answer in GATE?

Follow the instruction in the question, such as “rounded off to two decimal places”. Do the full calculation first and round only at the final step. For decimal answers the official key usually accepts a small range.

Can I use my own calculator in GATE CSE?

No. Only the on-screen virtual calculator is allowed. Practise with a virtual calculator before the exam so you are fast with it.

Should I attempt every MSQ and NAT question?

Attempt every MSQ and NAT you have worked on, because a wrong answer costs nothing. Do not waste time on a question you cannot start; mark it and come back if time allows.

Is the GATE CSE 2027 Test Series free?

Yes. The GATE CSE 2027 Test Series by Piyush Wairale is free on piyushwairale.com. It includes 50+ subject-wise tests, 10 full-length mock tests on the real GATE pattern, GATE CSE PYQ PDFs with solutions, MCQ, MSQ and NAT questions, detailed solutions and performance analysis.

Where can I get more GATE CSE MSQ and NAT practice questions?

Start with the 20 questions on this page and the free subject-wise mock tests on piyushai.com. Then take the free GATE CSE 2027 Test Series on piyushwairale.com, which has MCQ, MSQ and NAT questions in 50+ subject-wise tests and 10 full-length mocks.

Your next step: 20 questions done, now take a full test

Enrol free and attempt your first subject-wise test with MSQ and NAT questions today. Detailed solutions and performance analysis are included.

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 →

2 Comments

  1. […] GATE CSE MSQ and NAT Practice Questions […]

  2. […] GATE CSE MSQ and NAT practice questions […]

Leave A Comment