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 46–50 of 64

Q47Transaction2 marksMCQ−0.67 if wrong
Consider a schedule of transactions T1 and T2:
T1 RA RC WD WB Commit T2 RB WB RD WC Commit
Here, RX stands for "Read(X)" and WX stands for "Write(X)". Which one of the following schedules is conflict equivalent to the above schedule?
(A) T1 RA RC WD WB Commit T2 RB WB RD WC Commit (B) T1 RA RC WD WB Commit T2 RB WB RD WC Commit (C) T1 RA RC WD WB Commit T2 RB WB RD WC Commit (D) T1 RA RC WD WB Commit T2 RB WB RD WC Commit

Q48Network Layer Protocol2 marksMCQ−0.67 if wrong
An organization requires a range of IP address to assign one to each of its 1500 computers. The organization has approached an Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17. The ISP wants to assign an address space to the organization which will minimize the number of routing entries in the ISP's router using route aggregation. Which of the following address spaces are potential candidates from which the ISP can allot any one of the organization?

I. 202.61.84.0/21
II. 202.61.104.0/21
III. 202.61.64.0/21
IV. 202.61.144.0/21

Q49Propositional Logic2 marksMCQ−0.67 if wrong
Which one of the following predicate formulae is NOT logically valid?
Note that W is a predicate formula without any free occurrence of x.

Q50Shortest Path2 marksMCQ−0.67 if wrong
Let G=(V,E)G=(V,E) be a directed, weighed graph with weight function w:E→Rw:E\rightarrow \mathbb{R}. For some function f:V→Rf:V\rightarrow \mathbb{R}, for each edge (u,v)∈E(u,v) \in E, define w′(u,v)w'(u,v) as w(u,v)+f(u)−f(v)w(u,v)+f(u)-f(v).

Which one of the options completes the following sentence so that it is TRUE?

"The shortest paths in G under ww are shortest paths under w′w' too,_________".

Q51AVL Tree2 marksMCQ−0.67 if wrong
In a balanced binary search tree with n elements, what is the worst case time complexity of reporting all elements in range [a,b]? Assume that the number of reported elements is k.