GATE 2015 (Session 3) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2015 (Session 3)

65 questions

MCQ 45 · NAT 201-mark 30 · 2-mark 35

Questions 26–30 of 65

Q26Propositional Logic1 markMCQ−0.33 if wrong
In a room there are only two types of people, namely Type 1 and Type 2. Type 1 people always tell the truth and Type 2 people always lie. You give a fair coin to a person in that room, without knowing which type he is from and tell him to toss it and hide the result from you till you ask for it. Upon asking, the person replies the following

"The result of the toss is head if and only if I am telling the truth."

Which of the following options is correct?

Q27Binary Search Tree1 markMCQ−0.33 if wrong
While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is

Q28Stack1 markMCQ−0.33 if wrong
The result evaluating the postfix expression 10 5 + 60 6 / * 8 - is

Q29SQL1 markMCQ−0.33 if wrong
Consider the following relation

Cinema(theater, address, capacity)

Which of the following options will be needed at the end of the SQL query

SELECT P1.address FROM Cinema P1

such that it always finds the addresses of theaters with maximum capacity?

Q30Heap Tree1 markMCQ−0.33 if wrong
Consider the following array of elements.
(89,19,50,17,12,15,2,5,7,11,6,9,100)
The minimum number of interchanges needed to convert it into a max-heap is