__Problem 1:__

Suppose that a client performs an intermixed sequence of enqueue and dequeue operations in a queue.The enqueue operations put the integers o through 9 in order on to the queue, the dequeue operations print out the return value.Which of the following sequences could not occur?

- 0 1 2 3 4 5 6 7 8 9
- 4 6 8 7 5 3 2 9 0 1
- 2 5 6 7 4 8 9 3 1 0
- 4 3 2 1 0 5 6 7 8 9

__Problem 2__

In a queue, if rear=front then what will be the queue

a) Queue is empty

b) Queue is full

c) Queue has only one element

d) none of the above

__Problem 3__

In a queue,if rear=0,front=0 then what will be the queue

a) Queue is empty

b) Queue is full

c) Queue has only one element

d) none of the above

__Problem 4__

In a queue,if rear=0,front=1 then what will be the queue

a) Queue is empty

b) Queue is full

c) Queue has only one element

d) Queue is circular

__Problem 5__

In a queue,if rear=-1,front=-1 then what will be the queue

a) Queue is empty

b) Queue is full

c) Queue has only one element

d) none of the above

__Problem 6__

In a queue,if rear=max-1,front=0 then what will be the queue

a) Queue is empty

b) Queue is full

c) Queue has only one element

d) none of the above

Hi there, I wish for to subscribe for this blog to

ReplyDeleteget most up-to-date updates, so where can i do it please assist.

Also visit my blog ... registry cleaner software

My webpage>microsoft registry cleaner