Saturday, 13 February 2021

Assignment - 104 for TGT/PGT Computer Science

 

Assignment - 104

Qus: 1.

int a[4][5]={{1,2,3,4,5},{6,7,8,9,10},{11,12,13,14,15},{16,17,18,19,20}};

printf("%d",*(*(a+**a+2)+3));

(a).  14

(b).  17

(c).   19

(d).  18

(e).  None of These

Qus: 2.

Consider the following sequence of micro-operations.

     MBR ← PC

     MAR ← X 

     PC ← Y 

     Memory ← MBR

Which one of the following is a possible operation performed by this sequence?
(A) Instruction fetch
(B) Operand fetch
(C) Conditional branch
(D) Initiation of interrupt service

Qus: 3.

Two processors A and B have clock frequencies of 700 Mhz and 900 Mhz respectively. Suppose A can execute an instruction with an average of 3 steps and B can execute with an average of 5 steps. For the execution of the same instruction which processor is faster?

(a).  A

(b).  B

(c).   Both take the same time

(d).  Insufficient information

Qus: 4.

Registers are to RAM’s as Cache’s are to ___________

(a).  System stacks

(b).  Overlays

(c).   Page Table

(d).  TLB

Qus: 5.

In memory-mapped I/O ____________

(a).  The I/O devices and the memory share the same address space

(b).  The I/O devices have a separate address space

(c).   The memory and I/O devices have an associated address space

(d).  A part of the memory is specifically set aside for the I/O operation


No comments:

Post a Comment