Computer Organization and Architecture questions

Q15

GATE CS 2024 CS-1Input OutputMCQ1 mark−1/3 if wrong
Which one of the following statements is FALSE?
Show answer without attempting

Answer: C

Q30

GATE CS 2024 CS-1Instruction PipeliningMSQ1 mark
Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Which of the following statements about forwarding is/are CORRECT?
More than one option can be correct.
Show answer without attempting

Answer: A, B, C

Q33

GATE CS 2024 CS-1Instruction Set and AddressingNAT1 mark
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below.

The value of the expression 3+1+5∗2/7+2−4−7−6/23 + 1 + 5 * 2 / 7 + 2 - 4 - 7 - 6 / 2 as per the above rules is __________
OperatorPrecedenceAssociativity
+ HighestLeft
- HighRight
* MediumRight
/ LowRight
Show answer without attempting

Answer: 6

Q53

GATE CS 2024 CS-1Memory HierarchyMSQ2 marks
Consider two set-associative cache memory architectures: WBC, which uses the write back policy, and WTC, which uses the write through policy. Both of them use the LRU (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: B, C

Q54

GATE CS 2024 CS-1Memory HierarchyNAT2 marks
Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the hard disk is _________
Show answer without attempting

Answer: 4096

Q55

GATE CS 2024 CS-1Instruction PipeliningNAT2 marks
The baseline execution time of a program on a 2 GHz single core machine is 100 nanoseconds (ns). The code corresponding to 90% of the execution time can be fully parallelized. The overhead for using an additional core is 10 ns when running on a multicore system. Assume that all cores in the multicore system run their share of the parallelized code for an equal amount of time.
The number of cores that minimize the execution time of the program is ________
Show answer without attempting

Answer: 3

Q56

GATE CS 2024 CS-1Memory HierarchyNAT2 marks
A given program has 25% load/store instructions. Suppose the ideal CPI (cycles per instruction) without any memory stalls is 2. The program exhibits 2% miss rate on instruction cache and 8% miss rate on data cache. The miss penalty is 100 cycles. The speedup (rounded off to two decimal places) achieved with a perfect cache (i.e., with NO data or instruction cache misses) is _________
Show answer without attempting

Answer: 3.00

Q11

GATE CS 2024 CS-2Input OutputMCQ1 mark−1/3 if wrong
Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one of the following is the data transfer rate (in bits per second) of the DMA controller if 1% of the processor cycles are used for DMA?
Show answer without attempting

Answer: C

Q31

GATE CS 2024 CS-2Instruction PipeliningMSQ1 mark
An instruction format has the following structure:
Instruction Number: Opcode destination reg, source reg-1, source reg-2

Consider the following sequence of instructions to be executed in a pipelined processor:

I1: DIV R3, R1, R2
I2: SUB R5, R3, R4
I3: ADD R3, R5, R6
I4: MUL R7, R3, R8

Which of the following statements is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: A

Q57

GATE CS 2024 CS-2Instruction Set and AddressingNAT2 marks
A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a 16-bit scalar field. If 8 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is _________
Show answer without attempting

Answer: 32

Q58

GATE CS 2024 CS-2Instruction PipeliningNAT2 marks
A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an instruction of a program P. The unit is then redesigned to operate on a 5-stage pipeline at 2 GHz. Assume that the ideal throughput of the pipelined unit is 1 instruction per cycle. In the execution of program P, 20% instructions incur an average of 2 cycles stall due to data hazards and 20% instructions incur an average of 3 cycles stall due to control hazards. The speedup (rounded off to one decimal place) obtained by the pipelined design over the non-pipelined design is _________
Show answer without attempting

Answer: 2.9 to 3.1

Q61

GATE CS 2024 CS-2Instruction Set and AddressingNAT2 marks
A processor uses a 32-bit instruction format and supports byte-addressable memory access. The ISA of the processor has 150 distinct instructions. The instructions are equally divided into two types, namely R-type and I-type, whose formats are shown below.

R-type Instruction Format:
OPCODEUNUSEDDST RegisterSRC Register 1SRC Register 2
I-type Instruction Format:
OPCODEDST RegisterSRC Register# Immediate value/address
In the OPCODE, 1 bit is used to distinguish between I-type and R-type instructions and the remaining bits indicate the operation. The processor has 50 architectural registers, and all register fields in the instructions are of equal size.

Let XX be the number of bits used to encode the UNUSED field, YY be the number of bits used to encode the OPCODE field, and ZZ be the number of bits used to encode the immediate value/address field. The value of X+2Y+ZX + 2Y + Z is ________
Show answer without attempting

Answer: 34

0/120 correct0 marks

Related topics in GATE CS