Time Left - 18:00 mins

GATE 2022 Toppers Weekly Quiz 5

Attempt now to get your rank among 86 students!

Question 1

For two matrices A and B, we have the value of

Question 2

Consider the following relations Student ( Sid, Sname) and Apply (Sid, Cname, branch). Which of the following SQL query finds sid of the students who apply for CS but not for ME?

Question 3

Consider the following code.

int rec (int a)

{

int i =0;

for (i = 0; i<a; i++)

{

if (a< 1) return 1;

else i= i + rec (a-1);

}

return i;

}

What will be the return value of rec (2)?

Question 4

The following sequence of instruction is executed in a basic 5 stage pipelined processor (IF, ID, EX, MA and WB). Assume that data dependency present in the program is resolved by operand forwarding techniques. Load instruction output present in 4th stage and ALU instruction output is available in 3rd stage. Assume each stage take 1 cycle.

I1 : ADD R0, R1, R2

I2 : LOAD R4, 1(R0)

I3 : ADD R5, R4, R0

I4 : ADD R6, R5, R4

I5 : MUL R7, R5, R4

What is the number of instructions must be inserted to achieve CPI = 1 by using operand forwarding.

Question 5

Consider two arrays A[ ] and B[ ], if A[1 ... n] is in increasing order, and B[1 ... n] is in decreasing order is input to a join algorithm. The output is an array C[1, ... 2n] which has all the value of the arrays A[ ] and B[ ] and is in increasing order. What is the worst case time complexity for join algorithm to join the two array?

Question 6

Identify the not Recursively Enumerable Language.

Question 7

The number of ways in which 5 (one type of different) things and 6 (another type of different) things can be arranged in a row alternatively is -

Question 8

The simplified Boolean expression of the following Venn diagram is ___________.

Question 9

In a RSA cryptosystem, sender public key is 47 and value of p = 13 and q = 31, value of private key of sender is ________.

Question 10Multiple Correct Options

Consider the following statements about user level threads and kernel level threads.
Which statements is/are correct?(Multi Select Questions)
  • 86 attempts
  • 0 upvotes
  • 0 comments
Jul 5GATE & PSU CS