Gate
2
iit
Quiz [ MCQ ]
Questions List
.
.
.
.
Stacks & Queues
Question
The following sequence of operations is performed on a stack: PUSH(10), PUSH(20), POP, PUSH(10), PUSH(20), POP, POP, POP, PUSH (20), POP The sequende of values popped out is:
Answer
let * be defined as X*Y = !X+Y. Let z= X*Y value of Z*X is
The concatenation of two lists is to be performed in O(1) time. Which of the following implementations of a llist should be used?
If the proposition ~p => q is true, then the truth value of the proposition ~p v (p => q), where ~ is negation, 'V' is inclusive or and '=>' is implication, is
Which scheduling policy is most suitable for a time-shared operating systems?
The number of substrings (of all lengths inclusive) that can be formed from a character string of length n is