🇮🇳 GATE · subject

GATE Computer Science and Information Technology (CS) Syllabus

The Computer Science and Information Technology (CS) syllabus for GATE in full: 5 chapters, 22 topics and 39 sub-topics, every one listed below, plus 53 Computer Science and Information Technology (CS) flashcards with answers.

5Chapters
22Topics
39Sub-topics
53Flashcards

Computer Science and Information Technology (CS) syllabus: all 5 chapters

Expand any chapter to see its topics and sub-topics.

  1. Digital Logic and Computer Architecture

    4 topics
    • Boolean Algebra and Logic Gates
      • Minimization using K-maps
      • Combinational circuits
    • Sequential Circuits
      • Flip-flops and registers
      • Counters and state machines
    • Number Representation
      • Fixed and floating point arithmetic
    • Processor Organization
      • Instruction pipelining and hazards
      • Memory hierarchy and cache
      • I/O and interrupts
  2. Programming, Data Structures and Algorithms

    4 topics
    • Programming in C
      • Recursion and pointers
      • Parameter passing and scope
    • Data Structures
      • Arrays, stacks, queues and linked lists
      • Trees, BSTs and heaps
      • Graphs and hashing
    • Algorithm Design and Analysis
      • Asymptotic complexity and recurrences
      • Greedy, divide-and-conquer and dynamic programming
    • Searching, Sorting and Graph Algorithms
      • Sorting algorithms and lower bounds
      • BFS, DFS, shortest paths and MST
  3. Theory of Computation and Compiler Design

    4 topics
    • Regular Languages and Finite Automata
      • DFA, NFA and regular expressions
      • Pumping lemma for regular languages
    • Context-Free Languages and Pushdown Automata
    • Turing Machines and Undecidability
      • Decidability and recursive enumerability
    • Compiler Phases
      • Lexical and syntax analysis
      • Syntax-directed translation
      • Intermediate code and optimization
  4. Operating Systems and Databases

    5 topics
    • Process and Thread Management
      • CPU scheduling
      • Synchronization and deadlocks
    • Memory Management
      • Paging, segmentation and virtual memory
    • File Systems and Disk Scheduling
    • Relational Model and SQL
      • Relational algebra and SQL queries
      • Integrity constraints
    • Database Design and Transactions
      • Normalization and functional dependencies
      • Transactions and concurrency control
      • File organization and indexing (B and B+ trees)
  5. Computer Networks

    5 topics
    • Network Models and Layers
      • OSI and TCP/IP reference models
    • Data Link and MAC Layer
      • Error detection and flow control
      • Switching and Ethernet
    • Network Layer
      • IPv4 addressing and subnetting
      • Routing algorithms
    • Transport and Application Layer
      • TCP and UDP
      • DNS, HTTP, SMTP and FTP
    • Network Security Basics
      • Symmetric and public-key cryptography

GATE Computer Science and Information Technology (CS) flashcards — 53 questions with answers

  1. State De Morgan's theorems in Boolean algebra.

    $\overline{A + B} = \bar{A} \cdot \bar{B}$ and $\overline{A \cdot B} = \bar{A} + \bar{B}$. The complement of a sum equals the product of complements, and the complement of a product equals the sum of complements.

  2. What is the difference between minterms and maxterms?

    A minterm is a product (AND) term in which every variable appears once (complemented or not) and equals $1$ for exactly one input combination. A maxterm is a sum (OR) term that equals $0$ for exactly one combination. SOP uses minterms; POS uses maxterms.

  3. Why is the XOR gate called the 'inequality detector,' and what is its Boolean expression?

    XOR outputs $1$ only when its inputs differ. For two inputs: $A \oplus B = A\bar{B} + \bar{A}B$. It outputs $0$ when inputs are equal.

  4. List the basic Boolean identities for absorption and complementarity.

    Absorption: $A + AB = A$ and $A(A+B) = A$. Complement: $A + \bar{A} = 1$ and $A \cdot \bar{A} = 0$. Identity: $A + 0 = A$, $A \cdot 1 = A$.

  5. In a Karnaugh map, what are the two rules for forming valid groups?

    Groups must contain a power of two cells ($1, 2, 4, 8, \dots$) and must be rectangular. Adjacent cells differ by exactly one variable (Gray-code ordering), wrapping around edges/corners is allowed, and larger groups eliminate more variables.

  6. What is a 'don't care' condition in K-map minimization and how is it used?

    A don't-care (marked $X$ or $d$) is an input combination that never occurs or whose output is irrelevant. It can be treated as either $0$ or $1$—whichever yields larger groupings and thus a simpler minimized expression.

  7. How many variables does a group of $2^k$ cells eliminate in a K-map?

    A group of $2^k$ adjacent cells eliminates $k$ variables, leaving the variables that remain constant across the group in the resulting product term.

  8. Define prime implicant and essential prime implicant.

    A prime implicant is an implicant (group of 1s) that cannot be combined into a larger group. An essential prime implicant is a prime implicant that covers at least one minterm not covered by any other prime implicant, so it must appear in the minimal cover.

  9. What distinguishes a combinational circuit from a sequential circuit?

    A combinational circuit's output depends only on the current inputs (no memory), e.g., adders, multiplexers. A sequential circuit's output depends on current inputs and stored state (it has memory via flip-flops), e.g., counters, registers.

  10. Give the sum and carry expressions for a full adder.

    For inputs $A$, $B$, and carry-in $C_{in}$: $\text{Sum} = A \oplus B \oplus C_{in}$ and $\text{Carry} = AB + C_{in}(A \oplus B)$.

  11. What does an $n$-to-$2^n$ decoder do, and a $2^n$-to-$1$ multiplexer?

    An $n$-to-$2^n$ decoder activates exactly one of $2^n$ outputs based on the $n$-bit input. A $2^n$-to-$1$ multiplexer selects one of $2^n$ data inputs using $n$ select lines and routes it to a single output.

  12. How many select lines are needed for an $8\text{-to-}1$ multiplexer, and why?

    Three select lines, because $2^3 = 8$. In general, a $2^n\text{-to-}1$ MUX needs $n$ select lines to address all inputs.

  13. What is the characteristic (excitation) equation of an SR latch, and its forbidden condition?

    Next state $Q_{next} = S + \bar{R}Q$, with the constraint $SR = 0$. The condition $S = R = 1$ is forbidden because it produces an indeterminate/invalid output.

  14. Give the characteristic equation of a JK flip-flop.

    $Q_{next} = J\bar{Q} + \bar{K}Q$. When $J=K=1$ the output toggles; $J=K=0$ holds; $J=1,K=0$ sets; $J=0,K=1$ resets.

  15. What is the characteristic equation of a D flip-flop and a T flip-flop?

    D flip-flop: $Q_{next} = D$ (output follows input). T flip-flop: $Q_{next} = T \oplus Q$, so $T=1$ toggles and $T=0$ holds the state.

  16. Differentiate a latch from a flip-flop.

    A latch is level-triggered (transparent while the enable/clock level is active). A flip-flop is edge-triggered (changes state only on the rising or falling clock edge), making it more suitable for synchronous design.

  17. What is the race-around condition in a JK flip-flop and how is it solved?

    When $J=K=1$ and the clock pulse width exceeds the propagation delay, the output toggles multiple times during one pulse. It is solved using a master-slave (or edge-triggered) configuration.

  18. Compare SISO, SIPO, PISO, and PIPO shift registers by data movement.

    SISO: serial-in serial-out. SIPO: serial-in parallel-out (serial-to-parallel converter). PISO: parallel-in serial-out (parallel-to-serial converter). PIPO: parallel-in parallel-out (temporary storage).

  19. What is the maximum modulus (count) of an $n$-bit binary counter?

    An $n$-bit counter has a maximum modulus of $2^n$, counting from $0$ to $2^n - 1$ before rolling over.

  20. How many flip-flops are required to build a mod-$N$ counter?

    The minimum number of flip-flops is $\lceil \log_2 N \rceil$, i.e., the smallest integer $n$ such that $2^n \geq N$.

Show the other 33 Computer Science and Information Technology (CS) flashcards
  1. Contrast a ripple (asynchronous) counter with a synchronous counter.

    In a ripple counter, each flip-flop is clocked by the previous stage's output, so delays accumulate (slower). In a synchronous counter, all flip-flops share a common clock, eliminating cumulative delay and removing decoding glitches.

  2. What is the key difference between a Mealy machine and a Moore machine?

    In a Mealy machine, output depends on both the current state and current input. In a Moore machine, output depends only on the current state. Moore typically needs more states but produces glitch-free, synchronous outputs.

  3. What is the range of an $n$-bit unsigned binary number versus a two's complement number?

    Unsigned: $0$ to $2^n - 1$. Two's complement (signed): $-2^{n-1}$ to $2^{n-1} - 1$, giving an asymmetric range with one extra negative value.

  4. How do you compute the two's complement of a binary number?

    Invert all bits (one's complement) and add $1$. Equivalently, the two's complement of an $n$-bit value $x$ is $2^n - x$. This makes subtraction $A - B = A + (\text{two's complement of } B)$.

  5. Why is two's complement preferred over sign-magnitude and one's complement representations?

    Two's complement has a single representation of zero, allows addition/subtraction with the same hardware (no end-around carry), and naturally handles sign. Sign-magnitude and one's complement both have two zeros ($+0$ and $-0$).

  6. In IEEE 754 single-precision, how are the 32 bits allocated?

    1 sign bit, 8 exponent bits (bias $127$), and 23 mantissa (fraction) bits. The value is $(-1)^{s} \times 1.M \times 2^{(E - 127)}$ for normalized numbers.

  7. What is the exponent bias in IEEE 754 single and double precision?

    Single precision (8 exponent bits): bias $= 127$. Double precision (11 exponent bits): bias $= 1023$. Stored exponent $=$ actual exponent $+$ bias.

  8. What is the implicit (hidden) bit in normalized IEEE 754 floating point?

    For normalized numbers the leading mantissa bit is always $1$, so it is not stored. The significand is interpreted as $1.M$, effectively giving 24 bits of precision in single precision from 23 stored bits.

  9. How is overflow detected when adding two's complement numbers?

    Overflow occurs when two operands of the same sign produce a result of the opposite sign. Equivalently, overflow $=$ carry-in to the MSB XOR carry-out of the MSB ($C_{in} \oplus C_{out}$).

  10. Name the four general categories of a CPU's functional units / register-level organization.

    The datapath (ALU and registers), the control unit (generates control signals), the register file (general-purpose registers, PC, IR, MAR, MBR), and the bus/interconnect linking them to memory and I/O.

  11. What is the purpose of the Program Counter (PC) and Instruction Register (IR)?

    The PC holds the address of the next instruction to fetch. The IR holds the currently fetched instruction being decoded and executed.

  12. Define the five classic stages of a RISC instruction pipeline.

    IF (instruction fetch), ID (instruction decode/register read), EX (execute/ALU), MEM (memory access), WB (write back). Each stage handles a different instruction concurrently.

  13. What is the ideal speedup of a $k$-stage pipeline, and why is it not achieved in practice?

    Ideal speedup approaches $k$ (the number of stages) for a large instruction count. It is not achieved due to pipeline hazards, stage imbalance, pipeline fill/drain overhead, and stalls.

  14. List the three types of pipeline hazards.

    Structural hazards (resource conflict), data hazards (instruction depends on a result not yet available), and control hazards (branches changing the instruction flow). Each can cause pipeline stalls.

  15. What is a data hazard, and how does forwarding (bypassing) mitigate it?

    A data hazard occurs when an instruction needs a value that a prior instruction hasn't yet written back. Forwarding routes the ALU result directly from one stage to a dependent instruction's input, avoiding a stall instead of waiting for write-back.

  16. Define the three RAW, WAR, and WAW data dependencies.

    RAW (read-after-write, true dependency): an instruction reads a register a prior one writes. WAR (write-after-read, anti-dependency): writes after a prior read. WAW (write-after-write, output dependency): two writes to the same register. Only RAW is a true data hazard in in-order pipelines.

  17. Give the formula for the effective CPI of a pipeline with stalls.

    $\text{CPI}_{eff} = 1 + \text{stall cycles per instruction}$. Execution time $= \text{Instruction count} \times \text{CPI}_{eff} \times \text{clock cycle time}$.

  18. What is the typical ordering of the memory hierarchy from fastest to slowest?

    Registers $\rightarrow$ L1 cache $\rightarrow$ L2 cache $\rightarrow$ L3 cache $\rightarrow$ main memory (DRAM) $\rightarrow$ secondary storage (SSD/disk). Speed and cost per bit decrease, while capacity increases, going down the hierarchy.

  19. State the average memory access time (AMAT) formula.

    $\text{AMAT} = \text{Hit time} + \text{Miss rate} \times \text{Miss penalty}$. With multiple levels it is applied recursively for each cache level.

  20. Compare direct-mapped, fully associative, and set-associative cache mapping.

    Direct-mapped: each memory block maps to exactly one cache line (fast, high conflict misses). Fully associative: a block can go anywhere (no conflict misses, costly search). Set-associative: a block maps to one set of $k$ lines, balancing the two ($k$-way).

  21. How is a memory address split for cache lookup in a set-associative cache?

    The address divides into Tag, Set Index, and Block Offset fields. Offset bits $= \log_2(\text{block size})$, index bits $= \log_2(\text{number of sets})$, and the remaining high-order bits form the tag.

  22. Distinguish write-through from write-back cache policies.

    Write-through updates both cache and main memory on every write (simple, consistent, more traffic). Write-back updates only the cache and marks the line dirty, writing to memory only on eviction (less traffic, needs a dirty bit).

  23. Name the three categories of cache misses (the '3 Cs').

    Compulsory (cold) misses on first access to a block, Capacity misses when the working set exceeds cache size, and Conflict misses when multiple blocks map to the same set in non-fully-associative caches.

  24. Contrast programmed I/O, interrupt-driven I/O, and DMA.

    Programmed I/O: CPU polls the device status (wastes cycles). Interrupt-driven I/O: device signals the CPU when ready (no busy-waiting). DMA: a controller transfers data directly between device and memory, interrupting the CPU only at completion (best for bulk transfer).

  25. What happens during an interrupt service sequence?

    The CPU finishes the current instruction, saves the program state (PC and registers), disables/acknowledges the interrupt, jumps to the Interrupt Service Routine via the vector table, executes the ISR, then restores state and resumes the interrupted program.

  26. What is the difference between the storage classes 'static' and 'automatic' in C?

    Automatic (local) variables live on the stack, are created on block entry and destroyed on exit. Static variables persist for the program's lifetime in a fixed memory region, retaining value between function calls; file-scope static also limits linkage to that file.

  27. In C, what is the difference between call-by-value and call-by-reference (via pointers)?

    Call-by-value copies the argument, so changes inside the function don't affect the caller's variable. C passes a pointer (address) to simulate call-by-reference: dereferencing the pointer (e.g., $*p$) lets the function modify the caller's actual variable.

  28. What does pointer arithmetic $p + n$ compute for a pointer $p$ to type $T$?

    It yields the address $p + n \times \text{sizeof}(T)$, advancing by $n$ elements (not $n$ bytes). This is why $a[i]$ is equivalent to $*(a + i)$ for an array $a$.

  29. What two components must every recursive function have to terminate correctly?

    A base case (stopping condition that returns without recursing) and a recursive case that moves toward the base case. Each call uses a new stack frame; missing or unreachable base cases cause infinite recursion and stack overflow.

  30. Compare the time and space complexity of array vs. linked-list operations for random access and insertion.

    Array: random access $O(1)$, insertion/deletion at arbitrary position $O(n)$ (shifting). Linked list: random access $O(n)$ (traversal), insertion/deletion given the node pointer $O(1)$. Linked lists also use extra space for pointers.

  31. Contrast a stack and a queue by their access discipline and core operations.

    A stack is LIFO (last-in first-out) with push and pop at one end (top). A queue is FIFO (first-in first-out) with enqueue at the rear and dequeue at the front. Both basic operations are $O(1)$.

  32. What are the worst-case search, insert, and delete complexities of a balanced BST versus an unbalanced BST?

    Balanced BST (e.g., AVL, red-black): $O(\log n)$ for search, insert, and delete. Unbalanced (degenerate/skewed) BST: $O(n)$ because it can degrade into a linked list. In-order traversal of a BST yields sorted order.

  33. State the heap property and the array index relationships for a binary heap.

    Max-heap: every parent $\geq$ its children (min-heap: parent $\leq$ children). For a node at index $i$ (0-based): left child $= 2i+1$, right child $= 2i+2$, parent $= \lfloor (i-1)/2 \rfloor$. Insert and extract-min/max are $O(\log n)$; peek is $O(1)$.

GATE Computer Science and Information Technology (CS) FAQ

What is in the GATE Computer Science and Information Technology (CS) syllabus?

GATE Computer Science and Information Technology (CS) is split into 5 chapters: Digital Logic and Computer Architecture, Programming, Data Structures and Algorithms, Theory of Computation and Compiler Design, Operating Systems and Databases and Computer Networks. Together they contain 22 topics and 39 sub-topics.

How many chapters are in GATE Computer Science and Information Technology (CS)?

5 chapters, containing 22 topics and 39 sub-topics. The largest chapter is Operating Systems and Databases, with 5 topics.

Are there flashcards for GATE Computer Science and Information Technology (CS)?

Yes — a 53-card Computer Science and Information Technology (CS) deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.