GATE Computer Science & Information Technology (GATE CS) PYQ & Mock Arena
Practice solved GATE CS MCQ, MSQ & NAT questions or launch a timed CBT mock exam
letters are placed uniformly at random into addressed envelopes ( letter per envelope). What is the expected number of letters that land in their correct envelope?
Suppose language is known to be Undecidable and we construct a computable many-one reduction . What can we conclude with certainty about ?
Let be a Context-Free Language (CFL) and be a Regular Language over . Which of the following languages are GUARANTEED to be Context-Free?
A high-speed TCP connection transmits continuously at (). In how many seconds does the -bit TCP sequence number space () wrap around completely?
A Token Bucket shaper has bucket capacity , token refill rate , and maximum output link rate . Starting with a full bucket, what is the maximum burst duration in milliseconds during which the output can transmit continuously at ?
Which of the following statements regarding Database Concurrency & Crash Recovery are ALWAYS TRUE?
Let have tuples with distinct values of , and let be non-empty with tuples. What are the minimum and maximum possible numbers of tuples in the Relational Division ?
In Static Single Assignment (SSA) intermediate representation, what is the exact role of a -function such as placed at the entry of a join basic block?
Consider the Three-Address Code fragment below:
1: i = 1
2: s = 0
3: if i > 10 goto 8
4: if i % 2 == 0 goto 6
5: s = s + i
6: i = i + 1
7: goto 3
8: return s
How many Basic Blocks exist in its Control Flow Graph?
Which of the following statements about Multi-Core Process Synchronization are CORRECT?
A process owns virtual memory pages in RAM ( Read-Only code pages and Read-Write data pages) and calls fork() on an OS with Copy-on-Write (COW) paging. Before exec(), the parent writes to distinct data pages and the child writes to data pages ( of which is the same page written by the parent). How many total physical page frames are occupied by parent and child combined?
An inner for loop executes exactly iterations each time an outer while loop invokes it ( outer invocations). What are the steady-state branch prediction accuracies on the inner-loop backward branch for a 1-bit predictor vs a 2-bit saturating counter predictor?
A Write-Back, Write-Allocate L1 cache has hit time and miss rate . Transferring one cache block to or from Main Memory takes , and of evicted cache blocks are dirty. What is the Average Memory Access Time (AMAT) in nanoseconds?
A processor uses virtual pages and a Virtually Indexed, Physically Tagged (VIPT) L1 data cache with cache blocks. To avoid virtual aliasing without OS page coloring (so Set Index + Block Offset Page Offset), what is the minimum set-associativity required for a L1 cache?
For how many truth assignments out of over does the implication evaluate to TRUE?
How many Prime Implicants (PI) does the 4-variable Boolean function possess?
A processor has an L1 cache with hit time and hit rate , an L2 cache with hit time and local hit rate , and main memory access penalty (hierarchical inclusive serial lookup: L2 accessed only on L1 miss; RAM accessed only on L2 miss). What is the Average Memory Access Time (AMAT) in nanoseconds?
Consider the Syntax-Directed Definition: , and , with . Notice + (&) has higher precedence than * (#) and both are left-associative! Evaluate 2 # 3 & 5 # 4 & 1.
Over , what is the minimum number of states in a complete DFA accepting all strings whose 3rd symbol from the right (end) is a ()?
Using Kadane’s Algorithm, what is the maximum contiguous subarray sum of the array [-2, 1, -3, 4, -1, 2, 1, -5, 4]?