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
The number of substrings (of all lengths inclusive) that can be formed from a character string of length n is
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:
Which one of the following is false? Read ^ as AND, v as OR, ~ as NOT, -> as one way implication and <-> as two way implication.
In which of the following case(s) is it possible to obtain different results for call-by-reference and call-by-name parameterpassing?
let * be defined as X*Y = !X+Y. Let z= X*Y value of Z*X is