GATE 2020 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2020

64 questions

MCQ 41 · NAT 231-mark 29 · 2-mark 35

Questions 11–15 of 64

Q11Maxima and Minima1 markMCQ−0.33 if wrong
Consider the functions

I. e−xe^{-x}
II. x2−sin⁡xx^2-\sin x
III. x3+1\sqrt{x^3+1}

Which of the above functions is/are increasing everywhere in [0,1] ?

Q12Recurrence Relation1 markMCQ−0.33 if wrong
For parameters a and b, both of which are ω(1),T(n)=T(n1/a)+1\omega(1) , T(n)=T(n^{1/a})+1, and T(b)=1T(b)=1. Then T(n)T(n) is

Q13Interrupt1 markMCQ−0.33 if wrong
Consider the following statements.

I. Daisy chaining is used to assign priorities in attending interrupts.
II. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt.
III. In polling,the CPU periodically checks the status bits to know if any device needs its attention.
IV. During DMA, both the CPU and DMA controller can be bus masters at the same time.

Which of the above statements is/are TRUE?

Q14Machine Instruction1 markMCQ−0.33 if wrong
Consider the following data path diagram.
BUS MARMDRIRPC R0R1R7 TEMP2TEMP1ALU To Memory
Consider an instruction: R0←R1+R2R0\leftarrow R1+R2. The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts r and w indicate read and write operations, respectively.

1.  R2r,TEMP1r,ALUadd,TEMP2w1. \; R2_r,TEMP1_r,ALU_{add},TEMP2_w
2.  R1r,TEMP1w2. \; R1_r,TEMP1_w
3.  PCr,MARw,MEMr3. \; PC_r,MAR_w,MEM_r
4.  TEMP2r,R0w4. \; TEMP2_r,R0_w
5.  MDRr,IRw5. \; MDR_r,IR_w

Which one of the following is the correct order of execution of the above steps?

Q15Binary Search Tree1 markMCQ−0.33 if wrong
The preorder traversal of a binary search tree is 15,10,12,11,20,18,16,19. Which one of the following is the postorder traversal of the tree?