GATE 2016 (Session 1)
65 questions
MCQ 39 · NAT 261-mark 30 · 2-mark 35
Questions 16–20 of 65
Consider the Boolean operator with the following properties:
, and . Then is equivalent to
, and . Then is equivalent to
Answer: (A)
The four properties are those of XOR, so try (A), , and substitute:
- : . This matches .
- : . This matches .
- : . This matches.
- : . This matches.
The other options fail. (B) is , and at it gives 1, not . (C) is , and at it gives 0, not . (D) is XNOR, and at it gives , not .
Answer: (A)
- : . This matches .
- : . This matches .
- : . This matches.
- : . This matches.
The other options fail. (B) is , and at it gives 1, not . (C) is , and at it gives 0, not . (D) is XNOR, and at it gives , not .
Answer: (A)
The 16 bit 2's complement representation of an integer is 1111 1111 1111 0101; its decimal representation is__________ .
Answer: -11
The MSB is 1, so the number is negative. To find its size, take the 2's complement of 1111 1111 1111 0101:
First invert the bits 0000 0000 0000 1010. Then add 1 0000 0000 0000 1011, which is 11.
Answer: -11
First invert the bits 0000 0000 0000 1010. Then add 1 0000 0000 0000 1011, which is 11.
Answer: -11
We want to design a synchronous counter that counts the sequence 0-1-0-2-0-3 and then repeats. The minimum number of J-K flip flops required to implement this counter is ________.
Answer: 3 to 4
The sequence 0, 1, 0, 2, 0, 3 has 6 steps. The 0 appears three times, and each time a different number comes after it. So the counter must have 6 different internal states.
To hold 6 states, we need flip-flops. The output is then got by decoding the state.
Answer: 3
To hold 6 states, we need flip-flops. The output is then got by decoding the state.
Answer: 3
A processor can support a maximum memory of 4GB, where the memory is word-addressable (a word consists of two bytes). The size of the address bus of the processor is at least ________ bits.
Answer: 31
The memory is 4 GB, which is bytes. Each word has 2 bytes, so the memory holds words.
The memory is word addressable, so we get addresses 31 address bits.
Answer: 31
The memory is word addressable, so we get addresses 31 address bits.
Answer: 31
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT (n refers to the number of items in the queue)?
Answer: (A)
Take a circular array with a front index and a rear index. ENQUEUE puts the item at rear and then moves rear forward. DEQUEUE takes the item from front and then moves front forward. Both indices move modulo the array size. Nothing has to be shifted, so each operation takes time.
Answer: Both operations can be performed in O(1) time
Answer: Both operations can be performed in O(1) time