GATE 2020 Computer Science and IT Question Paper with answer


36. Question

There are n elements in the balanced binary search tree. What is the time complexity to report the k elements in the range [a, b]?




Answer
37. Question

Binary min-heap has 1023 elements. Find the number of comparisons required to find the maximum elements?




Answer
38. Question

Let A, B, C be the inputs that give output Z as shown in the below figure. The minterms required the output function Z (A, B, C)is ___

 




Answer
39. Question

You are given an accumulator and memory of 32 registers in between then there is a multiplexer of the number of select lines in the multiplexer.

 




Answer
40. Question
Catalog
sno pno cost
S1 P1 50
S1 P2 50
S1 P3 100
S2 P4 200
S2 P5 250
S3 P1 250
S3 P2 150
S3 P5 300
S4 P4 250
Supplies
sno sname location
S1 RF Delhi
S2 BF Bangalore
S3 PF Chennai

SELECT S.sno, S.sname

FROM Supplier S, catalog C

WHERE S. sno = C.sno AND

Cost > (SELECT AVG (cost)    

FROM Catalog

WHERE pno = `P4`   GroupBy pno);         

Number of rows returns by above query____




Answer