Topic: Queue | BPSC Paper-2 Computer Science Notes

Queue

Topic: QUEUE

Summary notes on topic "Queue"
-----------------------------------
• Queue is an ordered linear data structure, following FIFO strategy.

• Front and Rear are used to indicate beginning and end of queue.

• In Python, the use of predefined methods takes care of Front and Rear.

• Insertion in a queue happens at the rear end. Deletion happens at the front.

• Insertion operation is known as enqueue and deletion operation is known as dequeue.

• To support enqueue and dequeue operations, isEmpty, isfull and peek operations are used

• Deque is a version of queue, which allows insertion and deletion at both ends.

• A deque can support both stack and queue operations.

• Other operations supported by deque are insertfront, insertrear, deletefront, deleterear, getfront, getrear, isempty and isfull.

MCQ Qu-Ans

Qu: The end from which elements are added or deleted is called _________ of a stack.







Qu: Trying to add an element to a full stack results in an exception called __________







Qu: __________ adds a new element at the TOP of the stack.







Qu: Built-in method of list to add an element to the stack.







$ads={1}

Qu: Trying to pop an element from an empty stack results into a special condition called________ .







Qu: Any arithmetic expression can be represented in any of the notation.







Qu: x+y can be written as xy+. This is called







Qu: Polish mathematician Jan Lukasiewicz in the 1920’s introduced a different way of representing arithmetic expression, called







$ads={2}

Qu: Insertion in queue happens at the ________ end. Deletion happens at the __________.







Qu: Queue is an ordered linear data structure, following ___________ strategy.







Qu: The postfix form of the expression (A+ B)*(C*D- E)*F / G is?







Qu: The data structure required to check whether an expression contains balanced parenthesis is?







Qu: What data structure would you mostly likely see in a non recursive implementation of a recursive algorithm?







Qu: The process of accessing data stored in a serial access memory is similar to manipulating data on a ------?







Qu: The postfix form of A*B+C/D is?







Qu: Which data structure is needed to convert infix notation to postfix notation?







Qu: The prefix form of A-B/ (C * D ⋀ E) is?







Qu: What is the result of the following operation Top (Push (S, X))







Post a Comment

Thanks for your best idea after moderation comment published here.

Previous Post Next Post