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
In which of the following case(s) is it possible to obtain different results for call-by-reference and call-by-name parameterpassing?
Let E1 and E2 be two entities in an E/R diagram with simple single-valued attributes. R1 and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is many-to-many. R1 and R2 do not have any attributes of tables required to represent this situation in the relational model?
How many 8-bit characters can be transmitted per second over a 9600 baud serial communication link using asynchronous mode of transmission with one start bit, eight data bits, and one parity bit and two stop bits?
Which scheduling policy is most suitable for a time-shared operating systems?