McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2024
→
Computer Science Engineering (CSE)
→
Data Structures (DS)
→
What will be the value of top, if there ...
Q.
What will be the value of top, if there is a size of stack STACK_SIZE is 5
A.
5
B.
6
C.
4
D.
none
Answer» C. 4
2.6k
0
Do you find this helpful?
15
View all MCQs in
Data Structures (DS)
Discussion
No comments yet
Login to comment
Related MCQs
When a stack is organized as an array, a variable named Top is used to point to the top element of the stack. Initially, the value of Top is set to_______to indicate an empty stack.
Inserting an item into the stack when stack is not full is called …………. Operation and deletion of item form the stack, when stack is not empty is called ………..operation.
Pushing an element into stack already having five elements and stack size of 5, then stack becomes
What will be the value of top, if there is a size of stack STACK_SIZE is 5
When does top value of the stack changes?
Suppose implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one of the following statements is TRUE with respect to this modified stack?
In a stack, if a user tries to remove an element from empty stack it is called
What happens when the stack is full and there is no space for a new element, and an attempt is made to push a new element?
The total number of elements in a stack at a given point of time can be calculated from the value of______.
When the push operation is performed on stack the value of TOS will be ______