MCQPariksha Logo
    PracticeCareer MapLeaderboard
    Pricing
    All AssessmentsGATE 2027GATE CS
    Featured Exam
    GATE 2027

    GATE CS Mock Test

    65 Questions3h100 Marks−1/3 on MCQ

    Syllabus & Subject Blueprint

    65Q total · 100 marks
    General Aptitude
    5Q
    Engineering Mathematics
    3Q
    Engineering Mathematics
    5Q
    2M/Q
    Digital Logic
    1Q
    Digital Logic
    2Q
    2M/Q
    Computer Organization and Architecture
    3Q
    Computer Organization and Architecture
    2Q
    2M/Q
    Programming and Data Structures
    4Q
    Programming and Data Structures
    3Q
    2M/Q
    Algorithms
    4Q
    Algorithms
    3Q
    2M/Q
    Theory of Computation
    1Q
    Theory of Computation
    3Q
    2M/Q
    Compiler Design
    1Q
    Compiler Design
    2Q
    2M/Q
    Operating System
    2Q
    Operating System
    4Q
    2M/Q
    Databases
    3Q
    Databases
    3Q
    2M/Q
    Computer Networks
    3Q
    Computer Networks
    3Q
    2M/Q
    General Aptitude
    5Q
    2M/Q

    Before you start

    • • Subject-sequential delivery — random fresh questions drawn per subject every attempt
    • • Timer starts immediately — do not refresh the page during an active attempt
    • • Step-by-step explanations and subject analytics shown right after submission
    • • Negative marking enabled: −1/3 on MCQ

    GATE CS Sample Questions & Explanations

    Preview authentic questions from the GATE CS syllabus before starting your timed simulation

    10Practice Questions & Explanations

    Q1.Complete the numerical analogy: 12:144::17:?

    General Aptitude
    1. A.289
    2. B.272
    3. C.34
    4. D.306
    View Answer & Explanation
    Correct Answer:289
    The relation is to square the first number: 122=144. Applying it to 17 gives 172=289.

    Q2.A student may choose exactly one elective from either a group of 4 mathematics electives or a disjoint group of 3 physics electives. How many choices are available?

    Engineering Mathematics
    1. A.7
    2. B.12
    3. C.4
    4. D.3
    View Answer & Explanation
    Correct Answer:7
    The alternatives are mutually exclusive, so the sum rule gives 4+3=7. Multiplying would count pairs of electives rather than a single choice.

    Q3.For three variables ordered as A (most significant bit), B, C (least significant bit), which expression is the minterm m5?

    Digital Logic
    1. A.AB'C
    2. B.A'BC
    3. C.A'B'C
    4. D.AB'C'
    View Answer & Explanation
    Correct Answer:AB'C
    The index 5 is binary 101, so the assignment is A=1, B=0, C=1. A minterm uses a complemented variable for each zero bit, giving AB'C.

    Q4.A processor executes an instruction whose address is 1200 and whose length is 4 bytes. If no control-transfer instruction changes the sequence, what is the address of the next instruction?

    Computer Organization and Architecture
    1. A.1201
    2. B.1204
    3. C.1205
    4. D.1196
    View Answer & Explanation
    Correct Answer:1204
    Sequential execution advances the PC by the instruction length: PCnext=PC+4=1204. Adding one would be appropriate only if the PC counted instructions rather than byte addresses.

    Q5.An undirected weighted graph has edges AB of weight 4, AC of weight 7, and BC of weight 2. If the weighted degree of a vertex is defined as the sum of the weights of its incident edges, what is the weighted degree of A?

    Programming and Data Structures
    1. A.4
    2. B.7
    3. C.11
    4. D.13
    View Answer & Explanation
    Correct Answer:11
    The weighted degree is the sum of weights on edges incident to the vertex. For A, these are AB and AC, giving 4+7=11; the weight of BC is not incident to A.

    Q6.For f(n)=7n2+4n+9 with n≥ 1, which asymptotic classification is tight?

    Algorithms
    1. A.f(n)=(n2)
    2. B.f(n)=(n)
    3. C.f(n)=(n3)
    4. D.f(n)=O(1)
    View Answer & Explanation
    Correct Answer:f(n)=(n2)
    The quadratic term dominates as n grows, and the positive lower-order terms do not change the growth rate. Thus f(n) is bounded above and below by positive constant multiples of n2 for sufficiently large n.

    Q7.Let G have productions S aSb. Which language is generated by G?

    Theory of Computation
    1. A.\{an bn n≥ 0\}
    2. B.\{an bm n,m≥ 0\}
    3. C.\{an bn n≥ 1\}
    4. D.\{(ab)n n≥ 0\}
    View Answer & Explanation
    Correct Answer:\{an bn n≥ 0\}
    Each use of S aSb adds one a to the left and one b to the right; the final S terminates the derivation. The zero-step derivation also generates , so excluding n=0 is incorrect.

    Q8.A language implementation assigns each procedure’s local variables fixed memory locations for the entire program execution. Which consequence follows for a procedure that calls itself recursively?

    Compiler Design
    1. A.Each recursive call automatically receives a distinct copy of every local variable.
    2. B.A later activation can overwrite the earlier activation’s locals, so this scheme cannot correctly support general recursion.
    3. C.Recursion works provided the procedure has no parameters.
    4. D.Only the return address must be placed on a run-time stack; all locals remain safe at fixed locations.
    View Answer & Explanation
    Correct Answer:A later activation can overwrite the earlier activation’s locals, so this scheme cannot correctly support general recursion.
    Static allocation gives a procedure one fixed storage instance, not a separate instance per activation. Recursive calls overlap in time, so their local-variable values cannot be preserved independently in those locations.

    Q9.A system imposes a strict total order on all resource types and permits a process to request resources only in increasing order. Which deadlock-prevention conclusion follows?

    Operating System
    1. A.Circular wait is impossible, so deadlock is prevented.
    2. B.Hold-and-wait is impossible, so deadlock is prevented.
    3. C.Mutual exclusion is impossible, so deadlock is prevented.
    4. D.Deadlock is prevented only if every resource has multiple instances.
    View Answer & Explanation
    Correct Answer:Circular wait is impossible, so deadlock is prevented.
    A circular wait would require a process to hold a higher-ordered resource while waiting for a lower-ordered one, contradicting the ordering rule. The rule does not remove mutual exclusion or necessarily remove hold-and-wait.

    Q10.A file contains several records with the same department code. An index is built on the department code, with each index entry storing the code and a pointer to a matching record or record group. Which statement about the department code is necessarily correct?

    Databases
    1. A.It is a search key, but it need not uniquely identify a record.
    2. B.It is not a search key because it is not unique.
    3. C.It must be the primary key because it is used by an index.
    4. D.It must be unique within both the file and the index.
    View Answer & Explanation
    Correct Answer:It is a search key, but it need not uniquely identify a record.
    A search key is the attribute or set of attributes used to locate records through an index; uniqueness is not required. Uniqueness is a separate property, so an index can contain or reference multiple records sharing a search-key value.

    GATE CS Mock Test FAQs

    What is the exam pattern and duration for the GATE CS mock test?

    The GATE CS assessment under GATE 2027 consists of 65 multiple-choice questions (100 total marks) with a strict time limit of 3 hours. Questions are delivered subject-by-subject in randomized sets on every attempt.

    Which subjects are covered in GATE CS?

    GATE CS covers 22 subjects: General Aptitude, Engineering Mathematics, Engineering Mathematics, Digital Logic, Digital Logic, Computer Organization and Architecture, Computer Organization and Architecture, Programming and Data Structures, Programming and Data Structures, Algorithms, Algorithms, Theory of Computation, Theory of Computation, Compiler Design, Compiler Design, Operating System, Operating System, Databases, Databases, Computer Networks, Computer Networks, General Aptitude.

    Is there negative marking in GATE CS?

    Yes. Negative marking applies at 33.33% of the prescribed marks per question for each incorrect answer. Unattempted questions carry zero penalty.

    Can I practice GATE CS questions for free on MCQPariksha?

    Yes. Every registered learner receives 3 complimentary open simulation attempts overall to experience full timed assessments with step-by-step answer explanations, and can unlock affordable unlimited access passes anytime.

    MCQParikshaOfficial Platform

    Online assessments, competitive mock simulations, and AI-assisted question practice for students and institutions.

    About & Policies

    • About Us & Standards
    • Pricing & Plans
    • Terms & Conditions
    • Privacy Policy
    • Cancellation & Refund Policy
    • Contact Us / Support

    Support & Helpline

    • support@mcqpariksha.com
    • India • Support Hours: 9 AM – 6 PM IST
    • Secured Payments via Cashfree (UPI, Cards, NetBanking)

    © 2026 MCQPariksha. All rights reserved.

    Instagram•X (Twitter)•Help & Queries
    Sign in to Start Assessment