Time Left - 18:00 mins

GATE 2022 Rapid Revision Quiz 10

Attempt now to get your rank among 155 students!

Question 1Multiple Correct Options

Which of the following is/are tautology?

Question 2

The number of tokens in the following C statement
printf(“i=PERCENTAGE-TAG---d, &i=PERCENTAGE-TAG---x”,i,&i); is

Question 3

Consider the following C function.

The return value of fun (5) is ____________.

Question 4

To avoid deadlock in TCP ____ is used.

Question 5

Consider following 2 queries with relation schema :

Student (ID., name, DEPT)

Courses (CID.ID, Grade, DEPT)

Q1: Select *

      From Student S

      Where not exists (select *

                                 from Course C

                                 Where C.ID = S.ID and C.Id> 4.0)

Q2:(ID (Student) – πID(σGrade> 4.0 (Course))) Student.

Which of the following query results “all students who never got a grade above 4.0” ?

Question 6

Disk request come into disk driver for cylinders 10, 22, 20, 2, 6, 40 and 31 in that order. The disk head is currently positioned over 30 and seek takes 3 msec per cylinder moved. The total seek time using SCAN algorithm is ________ (in msec). [Assume 1st read/write head moving towards increasing (highest number) direction].

[Note : There are 61 cylinder numbered from 0-60.]

Question 7

Consider the following statement regarding a system having m resources of a particular type and n processes using those resources:

1) The maximum need of each process is between 1 and m resources.

2) The sum of all maximum needs is less than m + n.

For the given system to be deadlock free, choose the correct statement?

Question 8

Consider the following languages :
L1 : {< M, q > | M is a Turing Machine that visits state q on some input within 15 steps}.
L2 : {< M > | M is a Turing Machine, |M| < 200 where |M|is number of states in machine}.
Which of the following is correct ?
  • 155 attempts