GATE CSE 2026 Set 2

GATE 2026 Previous Year

3 hDuration
100Total Marks
64Questions
12Sections
Log in to start โ†’

Instructions

General instructions for this test:

  • Duration: 3 h. The timer starts as soon as you begin and cannot be paused.
  • Total questions: 64 across 12 section(s); maximum marks: 100.
  • You are allowed 1 attempt(s) at this test.
  • Use the question palette on the right to navigate. Answered questions are highlighted in green; questions marked for review are highlighted in yellow.
  • Each question's marking scheme (correct / wrong) is shown on the question card. Unanswered questions receive zero marks.
  • Switching tabs, exiting full-screen, or attempting to copy text is monitored. Repeated tab-switching may auto-submit the test.
  • Your answers autosave as you navigate. Click Submit Test when you are done. The test will be auto-submitted when the timer expires.

No exam-specific instructions were provided for this paper.

Paper Structure

Compiler Design

Compiler Design

Q1. mcq single +2 / 0
Consider the control flow graph given below. Which one of the following options is the set of live variables at the exit point of each basic block?
Q2. numerical +1 / 0
A lexical analyzer uses the following token definitions - letter โ†’ [A - Za - z] - digit โ†’ [0-9] - id โ†’ letter (letter $\mid$ digit)* - number โ†’ digit $^{+}$ - ws โ†’ (blank | tab | newline) ${ }^{+}$ For the string given below, $x1 \quad 23mm \quad 78\quad$ y $\quad7 z \quad z z 5 \quad 14 A \quad 8 H \quad A a Y c D$ the number of tokens (excluding ws) that will be produced by the lexical analyzer is $\_\_\_\_$ . (answer in integer)
Q3. mcq single +2 / 0
Consider the canonical $L R(0)$ parsing of the grammar below using terminals $\{a, b, c\}$ and non-terminals $\{A, B, C, S\}$ with $S$ as the start symbol. $$ \begin{aligned} & S \rightarrow A C B \\ & A \rightarrow \alpha A \mid \in \\ & C \rightarrow c C \mid \in \\ & B \rightarrow b B \mid b \end{aligned} $$ Which one of the following options gives the number of shift-reduce conflicts that will occur in the $L R(0)$ ACTION table?
Data Structures

Data Structures

Q1. mcq multi +2 / 0
Consider a binary search tree (BST) with $n$ leaf nodes ( $n>0$ ). Given any node $V$, the key present in the node is denoted as $\operatorname{Val}(V)$. All the keys present in the given BST are distinct. The keys belong to the set of real numbers. For a node $V$, let $\operatorname{Suc}(V)$ denote the node that is its inorder successor. If a node $V$ does not have an inorder successor, then $\operatorname{Suc}(V)$ is NULL. As there are no duplicates, if $\operatorname{Suc}(V)$ is not NULL, then $\operatorname{Val}(V)<\operatorname{Val}(\operatorname{Suc}(V))$. Corresponding to every leaf node $L_i$ that has a non-NULL $\operatorname{Suc}\left(L_i\right)$, a new key $k_i$ with the following property is to be inserted into the BST. $$ \operatorname{Val}\left(L_i\right) < k_i < \operatorname{Val}\left(\operatorname{Suc}\left(L_i\right)\right) $$ Let $K$ represent the list of all such new keys to be inserted into the BST. Which of the following statements is/are true?
Q2. mcq single +1 / 0
The set T represents various traversals over binary tree. The set S represents the order of visiting nodes during a traversal. $$ \begin{array}{ll}\,\,\,\,\, \text {ย  T } &\,\,\,\,\,\, \text { S } \\ \text { I: } \text { Inorder } & \text { L: left subtree, node, right subtree } \\ \text { II: } \text { Preorder } & \text { M: node, left subtree, right subtree } \\ \text { III: } \text { Postorder } & \text { N: left subtree, right subtree, node } \end{array} $$ Which one of the following is the correct match from $T$ to $S$ ?
Q3. mcq multi +2 / 0
Consider a stack $S$ and a queue $Q$. Both of them are initially empty and have the capacity to store ten elements each. The elements $1,2,3,4$, and 5 arrive one by one, in that order. When an element arrives, it is assigned either to $S$ (pushed on $S$ ) or to $Q$ (enqueued to $Q)$. Once all the five elements are stored, the output is generated in two steps. First, stack $S$ is emptied by popping all elements. Then queue $Q$ is emptied by dequeueing all elements. The output obtained by following this process is 43125 . Given the output, the objective is to predict whether an element was assigned to $S$ or $Q$. Which of the following options is/are possible valid assignment(s) of the elements? Note: In the options, the notation $x S$ denotes that element $x$ was assigned to $S$ and $y Q$ denotes that element $y$ was assigned to $Q$.
Q4. numerical +1 / 0
The keys $5,28,19,15,26,33,12,17,10$ are inserted into a hash table using the hash function $h(k)=k \bmod 9$. The collisions are resolved by chaining. After all the keys are inserted, the length of the longest chain is $\_\_\_\_$ . (answer in integer)
Q5. mcq single +2 / 0
Let $G$ be a weighted directed acyclic graph with $m$ edges and $n$ vertices. Given $G$ and a source vertex $s$ in $G$, which one of the following options gives the worst case time complexity of the fastest algorithm to find the lengths of shortest paths from $s$ to all vertices that are reachable from $s$ in $G$ ?
Database Management System

Database Management System

Q1. mcq single +2 / 0
In the context of schema normalization in relational DBMS, consider a set $F$ of functional dependencies. The set of all functional dependencies implied by $F$ is called the closure of $F$. To compute the closure of $F$, Armstrong's Axioms can be applied. Consider $X, Y$, and $Z$ as sets of attributes over a relational schema. The three rules of Armstrong's Axioms are described as follows. Reflexivity: If $Y \subseteq X$, then $X \rightarrow Y$ Augmentation: If $X \rightarrow Y$, then $X Z \rightarrow Y Z$ for any $Z$ Transitivity: If $X \rightarrow Y$ and $Y \rightarrow Z$, then $X \rightarrow Z$ The additional rule of Union is defined as follows. Union: If $X \rightarrow Y$ and $X \rightarrow Z$, then $X \rightarrow Y Z$ It can be proved that the additional rule of Union is also implied by the three rules of Armstrong's Axioms. Listed below are four combinations of these three rules. Which one of these combinations is both necessary and sufficient for the proof?
Q2. mcq single +1 / 0
$$ \text { In the context of DBMS, consider the two sets } \mathbf{T} \text { and } \mathbf{S} \text { given below. } $$ $$ \begin{array}{ll}\,\,\,\,\, \text { T } &\,\,\,\,\, \text { S } \\ \text { I: } \text { Logical schema } & \text { L: Views } \\ \text { II: } \text { Physical schema } & \text { M: File organization and indexes } \\ \text { III: External schema } & \text { N: Relations } \end{array} $$ Which one of the following is the correct match from $T$ to $S$ ?
Q3. mcq single +2 / 0
An index in a DBMS is said to be dense if an index entry appears for every searchkey value in the indexed file. Otherwise it is called a sparse index. Consider the following two statements. S1: A hash index must be a dense index S2: A $\mathrm{B}^{+}$tree index can be a sparse index Which one of the following options is correct?
Q4. mcq single +1 / 0
Consider concurrent execution of two transactions $T 1$ and $T 2$ in a DBMS, both of which access a data object $A$. For these two transactions to not conflict on $A$, which one of the following statements must be true?
Algorithms

Algorithms

Q1. mcq single +1 / 0
Consider the following functions, where $n$ is a positive integer. $$ n^{1 / 3}, \log (n), \log (n!), 2^{\log (n)} $$ Which one of the following options lists the functions in increasing order of asymptotic growth rate? Note: Assume the base of log to be 2 .
Q2. mcq multi +1 / 0
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity $\Theta(n)$ ?
Q3. mcq single +2 / 0
Consider a table $T$, where the elements $T[i][j], 0 \leq i, j \leq n$, represent the cost of the optimal solutions of different subproblems of a problem that is being solved using a dynamic programming algorithm. The recursive formulation to compute the table entries is as follows: $$ \begin{array}{ll} T[0][k]=T[k][0]=1 & \text { for } k=0,1,2, \ldots, n \\ T[i][j]=2 T[i-1][j]+3 T[i][j-1] & \text { for } 1 \leq i, j \leq n \end{array} $$ Consider the following two algorithms to compute entries of $T$. Assume that for both the algorithms, for all $0 \leq i, j \leq n, T[i][j]$ has been initialized to 1 . Algorithm $B_k, k \in\{1,2\}$ is said to be correct if and only if it calculates the correct values of $T[i][j]$, for all $0 \leq i, j \leq n$, (as per the recursive formulation) at the end of the execution of the algorithm $B_k$. Which one of the following statements is true?
Q4. numerical +1 / 0
Consider an array $A=[10,7,8,19,41,35,25,31]$. Suppose the merge sort algorithm is executed on array $A$ to sort it in increasing order. The merge sort algorithm will carry out a total of 7 merge operations. A merge operation on sorted left array $L$ and sorted right array $R$ is said to be void if the output of the merge operation is the elements of array $L$ followed by the elements of array $R$. The number of void merge operations among these 7 merge operations is $\_\_\_\_$ . (answer in integer)
Q5. mcq single +2 / 0
Consider an array $A$ of integers of size $n$. The indices of $A$ run from 1 to $n$. An algorithm is to be designed to check whether $A$ satisfies the condition given below. $\forall i, j \in\{1, \ldots, n-1\}$ such that $i>j,(A[i+1]-A[i])>(A[j+1]-A[j])$ Which one of the following gives the worst case time complexity of the fastest algorithm that can be designed for the problem?
Programming Languages

Programming Languages

Q1. numerical +2 / 0
Consider the following ANSI-C program. #include <stdio.h> int main( ) { int *ptr, a, b, c; a=5; b=11; c=20; ptr=&a; *ptr=c; ptr=&c; a=*(&b); c=*ptr-a; printf("%d",c); return(0); } The output of this program is $\_\_\_\_$ . (answer in integer) Note: Assume that the program compiles and runs successfully.
Q2. mcq single +1 / 0
In C runtime environment, which one of the following is stored in heap?
Q3. mcq single +1 / 0
$$\text { Consider the following three ANSI-C programs, P1, P2 and P3 }$$ Which one of the following statements is true?
Q4. numerical +2 / 0
Consider the following ANSI-C function. int func(int start, int end){ int length = end + 1 - start; if((length<1)| (start < 0)||(end<0)){ return(0); } if(length%3 == 0){ return(func(start+1, end)); } else if(length%3 == 1){ return(1 + func(start, end -1)); } else { return(func(start + 2, end)); } } The maximum possible value that can be returned from this function is $\_\_\_\_$ . (answer in integer) Note: Ignore syntax errors (if any) in the function.
Digital Logic

Digital Logic

Q1. numerical +2 / 0
Consider the digital circuit shown below with two input lines A and B, two select lines S 0 and S 1 , and an output line Y . The blocks Q and M represent active high $2: 4$ decoder and 4-to-1 multiplexer, respectively. Out of 16 possible input combinations, the number of combinations that produce $\mathrm{Y}=1$ is $\_\_\_\_$ . (answer in integer) Note: One input combination is an instance of [A B S1 S0].
Q2. mcq single +1 / 0
Which one of the following options is not a property of Boolean Algebra? Note: + is OR operation, โ€ข is AND operation, and ' is NOT operation
Q3. mcq multi +1 / 0
In a system, numbers are represented using 4-bit two's complement form. Consider four numbers $N 1=1011, N 2=1101, N 3=1010$ and $N 4=1001$ in the system. Which of the following operations will result in arithmetic overflow?
Q4. numerical +1 / 0
The 32-bit IEEE 754 single precision representation of a number is 0xC2710000. The number in decimal representation is $\_\_\_\_$ . (rounded off to two decimal places)
General Aptitude

General Aptitude

Q1. mcq single +1 / 0
Expedite, Hasten, Hurry, $\_\_\_\_$ . Fill the blank by choosing a word with a meaning similar to that of the words given above.
Q2. mcq single +2 / 0
Water: P:: Food: Q Choose the P and Q combination from the options below to form a meaningful analogy.
Q3. mcq single +1 / 0
A day can only be cloudy or sunny. The probability of a day being cloudy is 0.5 , independent of the condition on other days. What is the probability that in any given four days, there will be three cloudy days and one sunny day?
Q4. mcq single +1 / 0
The values of Stock A and Stock B on a particular day are Rs. 50 and Rs. 80, respectively. An investor invests Rs. 100 in Stock A and Rs. 80 in Stock B. He sells all the stocks the next day when the value of Stock A is Rs. 55 and Stock B is Rs. 70. The profit made by the investor is Rs. $\_\_\_\_$
Q5. mcq single +2 / 0
An unbiased six-faced dice whose faces are marked with numbers $1,2,3,4,5$, and 6 is rolled twice in succession and the number on the top face is recorded each time. The probability that the sum of the two recorded numbers is a prime number is $\_\_\_\_$ .
Q6. mcq single +1 / 0
'When it is raining, peacocks dance.' Based only on this sentence, which one of the following options is necessarily true?
Q7. mcq single +1 / 0
A black square PQRS has been cut into two parts. One part of it is shown in Panel I. Which one of the shapes in Panel II is the other part?
Q8. mcq single +2 / 0.67
Figures (i) and (ii) represent intercity highway systems. The black dots represent cities and the line segments between them represent intercity highways. A salesperson needs to make a trip. She needs to start from a city, visit each of the remaining cities exactly once, and finally return to the same city from which she started. Which one of the following options is then true?
Q9. mcq single +2 / 0
The figure in Panel I below is a grid of cells with four rows and four columns. The numbers on the top and on the left represent the number of cells that are to be shaded in that column and row, respectively. Which one of the options shown in Panel II below represents the grid shaded correctly?
Q10. mcq single +2 / 0
Two tiles are missing in Panel I. Which one of the options in Panel II is the appropriate choice for the missing tiles?
Theory Of Computation

Theory Of Computation

Q1. mcq multi +2 / 0
Let $\Sigma=\{a, b, c, d\}$ and let $L=\left\{a^i b^j c^k d^l \mid i, j, k, l \geq 0\right\}$. Which of the following constraints ensure(s) that the language $L$ is context-free?
Q2. mcq multi +1 / 0
Which of the following grammars is/are ambiguous?
Q3. mcq single +1 / 0
Which one of the following statements is equivalent to the following assertion? Turing machine $M$ decides the language $L \subseteq\{0,1\}$.
Q4. mcq multi +2 / 0
Consider the following two finite automata $D_1$ and $D_2$. Which of the following statements is/are true?
Q5. numerical +2 / 0
The determinant of a $4 \times 4$ matrix $A$ is 3 . The value of the determinant of $2 A$ is $\_\_\_\_$ . (answer in integer)
Computer Networks

Computer Networks

Q1. mcq single +1 / 0
Consider a file of size 4 million bytes being transferred between two hosts connected via a path consisting of three consecutive links of bandwidth $2 \mathrm{Mbps}, 500 \mathrm{kbps}$, and 1 Mbps , respectively. All processing delays and propagation delays are negligible. Assume that there is no other background traffic over the path and no other additional overhead to transfer the file. Which one of the following is the total time (in seconds) to transfer the file? Note: $1 \mathrm{M}=10^6, 1 \mathrm{k}=10^3$
Q2. mcq single +1 / 0
Which one of the following protocols may need to broadcast some of its messages?
Q3. numerical +2 / 0
Consider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at 48 KB , the maximum segment size (MSS) is 2 KB , and the slow start threshold for TCP congestion control is 16 KB . Assume that there are no timeouts or duplicate acknowledgements. The number of rounds of transmission required for the congestion control algorithm of the TCP connection to reach the congestion avoidance phase is $\_\_\_\_$ . (answer in integer) Note: $1 \mathrm{~K}=2^{10}$
Q4. numerical +2 / 0
It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length 3000 kilometers. Assume that the link bandwidth is $10^8$ bits per second and that the propagation delay in the link is 5 nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number. Let $N$ be the minimum number of bits needed for the sequence number field in the protocol header such that (i) the sequence numbers do not wrap around before 60 seconds, and (ii) the maximum utilization of the link is achieved. The value of $N$ is $\_\_\_\_$ . (answer in integer)
Q5. mcq single +2 / 0
Consider the transmission of data bits 110001011 over a link that uses Cyclic Redundancy Check (CRC) code for error detection. If the generator bit pattern is given to be 1001, which one of the following options shows the remainder bit pattern appended to the data bits before transmission?
Q6. numerical +1 / 0
If an IP network uses a subnet mask of 255.255 .240 .0 , the maximum number of IP addresses that can be assigned to network interfaces is $\_\_\_\_$ . (answer in integer)
Discrete Mathematics

Discrete Mathematics

Q1. numerical +2 / 0
Suppose an unbiased coin is tossed 6 times. Each coin toss is independent of all previous coin tosses. Let $E_1$ be the event that among the second, fourth, and sixth coin tosses, there are at least two heads. Let $E_2$ be the event that among the first, second, third, and fifth coin tosses, there are equal number of heads and tails. The conditional probability $P\left(E_1 \mid E_2\right)$ is equal to $\_\_\_\_$ . (rounded off to one decimal place)
Q2. mcq single +1 / 0
The probability density function $f(x)$ of a random variable $X$ which takes real values is $$ f(x)=\frac{1}{3 \sqrt{2 \pi}} \exp \left(-\frac{x^2}{18}\right), x \in(-\infty,+\infty) $$ Which one of the following statements is correct about the random variable?
Q3. mcq single +1 / 0
For two different persons $x$ and $y$, the predicate $M(x, y)$ denotes that $x$ knows $y$. Consider the following statement. There is a person who does not know anyone else, but that person is known by everyone else. Which one of the following expressions represents the above statement?
Q4. mcq multi +1 / 0
Let $R$ be a binary relation on the set $\{1,2, \ldots, 10\}$, where $(x, y) \in, R$ if the product of $x$ and $y$ is square of an integer. Which of the following properties is/are satisfied by $R$ ?
Q5. numerical +1 / 0
Consider the system of linear equations given below. $$ \begin{aligned} a x+y & =b \\ 16 x+a y & =24 \end{aligned} $$ Suppose the values of a and b are chosen such that the system of linear equations produce multiple solutions. Then the product of $a$ and $b$ is $\_\_\_\_$ . (answer in integer)
Q6. mcq single +2 / 0
Consider a complete graph $K_n$ with $n$ vertices ( $n>4$ ). Note that multiple spanning trees can be constructed over $K_n$. Each of these spanning trees is represented as a set of edges. The Jaccard coefficient between any two sets is defined as the ratio of the size of the intersection of the two sets to the size of the union of the two sets. Which one of the following options gives the lowest possible value for the Jaccard coefficient between any two spanning trees of $K_n$ ?
Q7. mcq multi +1 / 0
For a real number $a$, let $I(a)=\int\limits_{-1}^1\left(3 x^2-a x+1\right) d x$. Which of the following statements is/are true?
Q8. numerical +2 / 0
Consider a function $f:(0,1) \rightarrow\{0,1\}$ defined as follows. For a real number $r \in(0,1), f(r)=1$ if the second digit after the decimal point in $r$ is one of the four digits $2,3,6$ and 7 . Otherwise, $f(r)$ is equal to 0 . The number of points in $(0,1)$ at which $f$ is discontinuous is $\_\_\_\_$ . (answer in integer)
Operating Systems

Operating Systems

Q1. mcq single +1 / 0
Which one of the following CPU scheduling algorithms cannot be preemptive?
Q2. numerical +2 / 0
A system has a Translation Lookaside Buffer (TLB) that has a reach of 1 MB . TLB reach is defined as the total amount of physical memory that can be accessed through the TLB entries. The paging system uses pages of size 4 KB . The virtual address space is 64 GB and physical address space is 1 GB . If each TLB entry stores a 4-bit process id, page number, frame number, and a 2-bit control field, then the size of the TLB (in bytes) is $\_\_\_\_$ . (answer in integer) Note: $1 \mathrm{~K}=2^{10}, 1 \mathrm{M}=2^{20}, 1 \mathrm{G}=2^{30}$
Q3. numerical +2 / 0
Consider contiguous allocation of physical memory to processes using variable partitioning scheme. Suppose there are 8 holes in the memory of sizes $20 \mathrm{~KB}, 4 \mathrm{~KB}$, $25 \mathrm{~KB}, 18 \mathrm{~KB}, 7 \mathrm{~KB}, 9 \mathrm{~KB}, 15 \mathrm{~KB}$, and 12 KB . Assume that no two holes are adjacent. Two processes P1 of size 16 KB and P2 of size 9 KB arrive in that order, and they are allocated memory using the best-fit technique. After allocating space to P1 and P2, the number of holes of size less than 8 KB is $\_\_\_\_$ . (answer in integer) Note: $1 \mathrm{~K}=2^{10}$
Q4. mcq multi +2 / 0
Consider three processes P1, P2, and P3 running identical code, as shown in the pseudocode below. A and B are two binary semaphores initialized to 1 and 0 , respectively. $X$ is a shared variable initialized to 0 . Each line in the pseudocode is executed atomically. Pseudocode of P1, P2, and P3 Wait(A); Print(*); X = X+1; If (X == 2) { Print($); Signal(B); } Signal(A); Wait(B); Print(#); Signal(B); Assume that any of the three processes can start to execute first and context switching can happen between these processes at any arbitrary time and in any arbitrary order. Which of the following patterns is/are possible to be generated as an outcome of the execution of these three processes?
Q5. numerical +2 / 0
To keep track of free blocks in a file system, one of the two approaches is generally used - using bitmaps (bit vectors) or using linked lists. Consider that the linked list approach is used to keep track of free blocks in a file system. Assume that the disk size is 16 GB , block size is 2 KB , and block numbers used are 32-bit long. A single pointer of size 4 bytes is used in each block of the list to point to the next block of the list. The number of blocks required to hold the free disk block numbers is $\_\_\_\_$ (answer in integer) Note: $1 \mathrm{~K}=2^{10}$ and $1 \mathrm{G}=2^{30}$
Computer Organization

Computer Organization

Q1. numerical +2 / 0
Consider a system with 1 MB physical memory and a word length of 1 byte. The system uses a direct mapped cache, with block numbers starting from 0 . The word with physical address 0xA2C28 is mapped to the cache block number $176_{10}$. The maximum possible size of the cache (in KB ) for this configuration is $\_\_\_\_$ . (answer in integer) Note: $1 \mathrm{~K}=2^{10}$ and $1 \mathrm{M}=2^{20}$
Q2. mcq multi +2 / 0
Consider a system with a processor and a 4 KB direct mapped cache with block size of 16 bytes. The system has a 16 MB physical memory. Four words $\mathrm{P}, \mathrm{Q}, \mathrm{R}$, and S are accessed by the processor in the same order 10 times. That is, there are a total of 40 memory references in the sequence $\mathrm{P}, \mathrm{Q}, \mathrm{R}, \mathrm{S}, \mathrm{P}, \mathrm{Q}, \mathrm{R}, \mathrm{S}, \ldots$ Assume that the cache memory is initially empty. The physical addresses of the words are given below (1 word $=1$ byte). P: 0x845B32, Q: 0x845B26, R: 0x845B36, S: 0x846B32 Which of the following statements is/are true? Note: $1 \mathrm{~K}=2^{10}$ and $1 \mathrm{M}=2^{20}$
Q3. numerical +2 / 0
A non-pipelined instruction execution unit that operates at 1.6 GHz clock takes an average of 5 clock cycles to complete the execution of an instruction. To improve the performance, the system was pipelined with a goal of achieving an average throughput of one instruction per clock cycle. However, it could operate only at 1.2 GHz due to pipeline overheads. While executing a program in the pipelined design, $30 \%$ of instructions encountered a stall of 2 cycles due to pipeline hazards. The speed-up obtained by the pipelined design over the non-pipelined one for this program is $\_\_\_\_$ (rounded off to two decimal places) Note: $1 \mathrm{G}=10^9$
Q4. mcq single +1 / 0
Consider the following two statements about interrupt handling mechanisms in a CPU. S1: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism. S2: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt. Which one of the following options is correct with respect to S1 and S2?
Q5. mcq single +2 / 0
Consider a processor that has 16 general purpose registers and it uses 2-byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has 2 register operands and a 6 -bit immediate operand. Each R-type instruction has 3 register operands. Each C-type instruction has a register operand and a 6-bit offset value. If there are 2 unique M-type opcodes and 7 unique R-type opcodes, which one of the following options gives the maximum number of unique opcodes possible for C-type instructions?