Menu

Question Discussion & Solution

MCQ
Q.
Stack is useful for implementing

forum Community Discussion

speaker_notes_off

No discussions yet. Be the first to start!

You must be logged in to participate in the discussion.

login Login to Discuss

auto_awesome Similar Questions

MCQ
1.
What is the functionality of the following piece of code?

public void display() 
{
	if(size == 0)
		System.out.println("underflow");
	else
	{
		Node current = first;
		while(current != null)
		{
			System.out.println(current.getEle());
			current = current.getNext();
		}
	}
}
forum Discussion
MCQ
2.
Stack A has 3 Elements in it Say X,Y and Z with X on top.1. Stack B is empty.2. An Element popped out from Stack A can be printed immediately or pushed to stack B.3. An Element popped out from Stack B can only be printed.In this arrangement, which of the following permutations of X,Y,Z are not possible ?
forum Discussion
MCQ
3.
Making the push operation costly, select the code snippet which implements the same.(let q1 and q2 be two queues)
forum Discussion
MCQ
4.
In stack terminology, the __________operations are known as push and pop operations respectively.
forum Discussion
MCQ
5.
Which of the following data structures can be used for parentheses matching?
forum Discussion

category More Data Structure Topics

article

Data Structure Basics

format_list_bulleted 128 MCQs
article

Abstract data types

format_list_bulleted 37 MCQs
article

Arrays

format_list_bulleted 134 MCQs
article

Lists

format_list_bulleted 166 MCQs
article

Stacks

format_list_bulleted 165 MCQs
article

Queues

format_list_bulleted 61 MCQs
article

Trees

format_list_bulleted 133 MCQs
article

Binary Trees

format_list_bulleted 120 MCQs
article

B Trees

format_list_bulleted 8 MCQs
article

Heaps

format_list_bulleted 36 MCQs
article

Hash based structures

format_list_bulleted 7 MCQs
article

Graphs

format_list_bulleted 157 MCQs
article

Mixed

format_list_bulleted 10 MCQs