Menu

Stacks Questions

MCQ
141.
What does the following function check for? (all necessary headers to be included and function is called from main)
forum Discussion
MCQ
142.
What does
forum Discussion
MCQ
143.
What is the time complexity of pop() operation when the stack is implemented using an array?
forum Discussion
MCQ
144.
Which of the following array position will be occupied by a new element being pushed for a stack of size N elements(capacity of stack > N).
forum Discussion
MCQ
145.
What happens when you pop from an empty stack while implementing using the Stack ADT in Java?
forum Discussion
MCQ
146.
What is the functionality of the following piece of Java code?

Assume:
forum Discussion
MCQ
147.
forum Discussion
MCQ
148.
Which of the following array element will return the top-of-the-stack-element for a stack of size N elements(capacity of stack > N).
forum Discussion
MCQ
149.
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
150.
What does
forum Discussion