Q15
Which one of the following statements is FALSE?
Show answer without attempting
Answer: C
GATE CS · 112 questions
112 Computer Organization and Architecture questions from GATE CS papers, each with the official answer key. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: C
Answer: A, B, C
| Operator | Precedence | Associativity |
|---|---|---|
| + | Highest | Left |
| - | High | Right |
| * | Medium | Right |
| / | Low | Right |
Answer: 6
Answer: B, C
Answer: 4096
Answer: 3
Answer: 3.00
Answer: C
Answer: A
Answer: 32
Answer: 2.9 to 3.1
| OPCODE | UNUSED | DST Register | SRC Register 1 | SRC Register 2 |
|---|
| OPCODE | DST Register | SRC Register | # Immediate value/address |
|---|
Answer: 34
Answer: 2040
Answer: 10.2
//C-code
int a[10], b[10], i;
// int is 32-bit
for (i=0; i<10;i++)
a[i] = b[i] * 8;;assembly-code (; indicates comments)
;r1-r5 are 32-bit integer registers
;initialize r1=0, r2=10
;initialize r3, r4 with base address of a, b
L01: jeq r1, r2, end ;if(r1==r2) goto end
L02: lw r5, 0(r4) ;r5 <- Memory[r4+0]
L03: shl r5, r5, U1 ;r5 <- r5 << U1
L04: sw r5, 0(r3) ;Memory[r3+0] <- r5
L05: add r3, r3, U2 ;r3 <- r3+U2
L06: add r4, r4, U3
L07: add r1, r1, 1
L08: jmp U4 ;goto U4
L09: endAnswer: B

Answer: C
Answer: 19
Answer: A
Answer: A, B, D
Answer: 0.85
0/200 correct0 marks