+91-9920808017
Take an Online Test - GK Test / Computer Organisation Test


Data Structures


Home >Computer Science MCQ >

Data Structures >

Stacks


Data Structures

Abstract Data Types
Algorithms
Binary Heaps & Binary Search trees
Graphs
Hashing
Linked Lists
Queues
Sorting & Searching

Trees

Artificial Intelligence

C Programming MCQ

Compiler Design

Computer Graphics

Computer Networks

Computer Organization Architecture

Data Mining

Data Warehousing MCQ

Database MCQ

Digital Logic

Mathematical Logic

Object Oriented Programming

Operating System

Software Engineering MCQ

Theory Of Computation MCQ

Unix

Web Technology

Windows Programming MCQ


 

 

Online Test





16: Stack can't be used to
A.
Evaluate an arithmetic expression in postfix form
B.
Implement recursion
C.
Convert a given arithmetic expression in infix form to its evaluate postfix form
D.
Allocate resources(like CPU)by the operating system
  Answer Report Discuss

17: Which of the following permutations can be obtained in the output(in the same order),using a stack assuming that the input is the sequence 1,2,3,4,5 in that order?
A.
3,4,5,1,2
B.
3,4,5,2,1
C.
1,5,2,3,4
D.
5,4,3,2,1
  Answer Report Discuss

18: Stack is useful for implementing
A.
Radix
B.
Breadth first search
C.
Recursion
D.
None of these
  Answer Report Discuss

19:

If the sequence of operations- push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop, are performed on a stack, the sequenceof popped out values are


A.

2, 2, 1, 1, 2


B.

2, 2, 1, 2, 2


C.

2, 1, 2, 2, 1


D.

2, 1, 2, 2, 2


  Answer Report Discuss

20:

In evaluating the arithmetic expression 2 * 3-(4+5), using stacks to evaluate its equivalent post-fix form, which of the following stack configuration is not possible?


A.

4073
B.

4073
C.

4073
D.

4073
  Answer Report Discuss

  1 2 3 4 5 6


Computer Science
Engineering Maths
Free Online Test