GATE 2026 (Session 1)
65 questions
MCQ 28 · MSQ 24 · NAT 131-mark 30 · 2-mark 35
Questions 11–15 of 65
An urn contains one red ball and one blue ball. At each step, a ball is picked uniformly at random from the urn, and this ball together with another ball of the same color is put back in the urn. The probability that there are equal number of red and blue balls after two steps is
Answer: (B)
Start with the urn holding red ball and blue ball.
Step 1: One ball is drawn at random, and each ball has probability . If the red ball is drawn, the urn changes to . If the blue ball is drawn, the urn changes to . Each of these cases has probability .
Step 2: We need the urn to finish with equal red and blue balls, that is . After 2 steps the urn always has balls in total.
- Starting from , we must draw the blue ball. Its probability .
- Starting from , we must draw the red ball. Its probability .
So the required probability .
Answer: 1/3
Step 1: One ball is drawn at random, and each ball has probability . If the red ball is drawn, the urn changes to . If the blue ball is drawn, the urn changes to . Each of these cases has probability .
Step 2: We need the urn to finish with equal red and blue balls, that is . After 2 steps the urn always has balls in total.
- Starting from , we must draw the blue ball. Its probability .
- Starting from , we must draw the red ball. Its probability .
So the required probability .
Answer: 1/3
Consider matrices with their elements from . The number of such matrices with even number of s in every row and every column is
Answer: (A)
Choose the top-left block freely. This can be done in ways. Now fill the rest of the matrix so that all parities are even:
- Each of the first 3 rows needs an even number of 1s, so the entry of column 4 in that row is forced.
- Each of the first 3 columns needs an even number of 1s, so the entry of row 4 in that column is forced.
- The corner entry (row 4, column 4) is forced by the parity of row 4.
Column 4 is then automatically even. The total number of 1s is the sum of the four row counts, and every row count is even, so the total is even. The same total is the sum of the four column counts. Columns 1 to 3 are even, so column 4 must be even too.
So every choice of the block gives exactly one valid matrix, and every valid matrix arises this way. Number of matrices = .
Answer: (A)
- Each of the first 3 rows needs an even number of 1s, so the entry of column 4 in that row is forced.
- Each of the first 3 columns needs an even number of 1s, so the entry of row 4 in that column is forced.
- The corner entry (row 4, column 4) is forced by the parity of row 4.
Column 4 is then automatically even. The total number of 1s is the sum of the four row counts, and every row count is even, so the total is even. The same total is the sum of the four column counts. Columns 1 to 3 are even, so column 4 must be even too.
So every choice of the block gives exactly one valid matrix, and every valid matrix arises this way. Number of matrices = .
Answer: (A)
For , the maximum multiplicity of any eigenvalue of an matrix with elements from is
Answer: (A)
Take a real matrix of size . An eigenvalue is a root of the characteristic polynomial, and this polynomial has degree . So the multiplicity of any eigenvalue cannot be more than .
This limit can be reached. The identity matrix , or any scalar matrix , has one eigenvalue that repeats exactly times.
So the largest multiplicity an eigenvalue can have is .
Answer: n
This limit can be reached. The identity matrix , or any scalar matrix , has one eigenvalue that repeats exactly times.
So the largest multiplicity an eigenvalue can have is .
Answer: n
Match each addressing mode in with a data element or an element of a data structure (in a high-level language) in :
Answer: (B)
Match each addressing mode with the data element it is normally used for:
- P. Immediate: the operand value is placed inside the instruction itself → used for a Constant (4).
- Q. Indirect: the instruction holds the address of the address of the data → used for a Pointer (2).
- R. Base with index: effective address = base + index. It is normally used to reach an Element of an array (1), where the base is the start of the array and the index is the subscript.
- S. Base with offset/displacement: effective address = base + a fixed offset. It is normally used to reach an Element of a record/struct (3), where the base is the start of the record and the offset is the position of the field.
Answer: P-4, Q-2, R-1, S-3
- P. Immediate: the operand value is placed inside the instruction itself → used for a Constant (4).
- Q. Indirect: the instruction holds the address of the address of the data → used for a Pointer (2).
- R. Base with index: effective address = base + index. It is normally used to reach an Element of an array (1), where the base is the start of the array and the index is the subscript.
- S. Base with offset/displacement: effective address = base + a fixed offset. It is normally used to reach an Element of a record/struct (3), where the base is the start of the record and the offset is the position of the field.
Answer: P-4, Q-2, R-1, S-3
Consider a processor whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand.
Which one of the following sequences of instructions corresponds to the high-level language statement ?
Note: X, Y, and Z are memory operands. R, R, and R are registers.
Which one of the following sequences of instructions corresponds to the high-level language statement ?
Note: X, Y, and Z are memory operands. R, R, and R are registers.
Answer: (D)
A load-store (register-register) machine does arithmetic only on registers. It cannot work directly on memory. So to compute , where are memory locations, we need these steps:
1. LOAD both memory operands into registers: and .
2. Add the registers: (the first operand is the destination, as the question says).
3. STORE the result in memory: .
An option that puts a memory operand straight into an ADD instruction (for example or ) is not valid on a load-store machine. ADD takes only register operands.
Answer: LOAD R0,X; LOAD R1,Y; ADD R2,R0,R1; STORE Z,R2
1. LOAD both memory operands into registers: and .
2. Add the registers: (the first operand is the destination, as the question says).
3. STORE the result in memory: .
An option that puts a memory operand straight into an ADD instruction (for example or ) is not valid on a load-store machine. ADD takes only register operands.
Answer: LOAD R0,X; LOAD R1,Y; ADD R2,R0,R1; STORE Z,R2