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 21–25 of 64

Q22Process1 markMCQ−0.33 if wrong
Consider the following statements about process state transitions for a system using preemptive scheduling.

I. A running process can move to ready state.
II. A ready process can move to running state.
III. A blocked process can move to running state.
IV. A blocked process can move to ready state.

Which of the above statements are TRUE?

Q23SQL1 markMCQ−0.33 if wrong
Consider a relational database containing the following schemas.
Catalogue sno pno cost S1 P1 150 S1 P2 50 S1 P3 100 S2 P4 200 S2 P5 250 S3 P1 250 S3 P2 150 S3 P5 300 S3 P4 250 Suppliers sno sname location S1 M/s Royal furniture Delhi S2 M/s Balaji furniture Bangalore S3 M/s Premium furniture Chennai Parts pno pname part_spec P1 Table Wood P2 Chair Wood P3 Table Steel P4 Almirah Steel P5 Almirah Wood
The primary key of each table is indicated by underlining the constituent fields.
 SELECT s.sno, s.sname
    FROM Suppliers s, Catalogue c
    WHERE s.sno=c.sno AND
        cost > (SELECT AVG (cost)
                FROM Catalogue
                WHERE pno = 'P4'
                GROUP BY pno) ;

The number of rows returned by the above SQL query is

Q24ER Model1 markMCQ−0.33 if wrong
Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?

Q25Network Layer Protocol1 markMCQ−0.33 if wrong
Consider the following statements about the functionality of an IP based router.

I. A router does not modify the IP packets during forwarding.
II. It is not necessary for a router to implement any routing protocol.
III. A router should reassemble IP fragments if the MTU of the outgoing link is larger than the size of the incoming IP packet.

Which of the above statements is/are TRUE?