Removing an element from stack is called:
A)
Create
done
clear
B)
Push
done
clear
C)
Dequeue
done
clear
D)
Pop
done
clear
View Answer play_arrow
An element can be deleted from a Stack using..................method
A)
pop()
done
clear
B)
del()
done
clear
C)
remove()
done
clear
D)
all of the above
done
clear
View Answer play_arrow
Stack size is 5 and it already contains 5 elements, now if you push an element into this stack, then you will get:
A)
User flow
done
clear
B)
Crash
done
clear
C)
Underflow
done
clear
D)
Overflow
done
clear
View Answer play_arrow
If insertion can take place at one end (rear) and deletion can be done from another end (front) from a list, this list is called:
A)
Queue
done
clear
B)
Stack
done
clear
C)
Tree
done
clear
D)
Linked list
done
clear
View Answer play_arrow
An element can be added to a Stack using..................method?
A)
extend()
done
clear
B)
insert()
done
clear
C)
append()
done
clear
D)
none of the above
done
clear
View Answer play_arrow
..................is the best way to implement the type of sharing when a "resource is shared among multiple consumers".
A)
stack
done
clear
B)
queue
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
When you are waiting for paying a bill in super market, a ................. is formed to hold all the customers in a line until the billing executive is free.
A)
stack
done
clear
B)
queue
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
Airport authorities make use of ........................in situations of sharing a single runway of airport for both landing and take-off flights.
A)
stack
done
clear
B)
queue
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
"Reversal of a String/Number or any sequence" is application of
A)
stack
done
clear
B)
queue
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
A...........................is a physical implementation that clearly defines a way of storing, accessing, manipulating data stored
A)
Data Structure
done
clear
B)
Data Type
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
................... is/are example(s) of linear data structure
A)
stack
done
clear
B)
queue
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
Which of the following operation are performed on data structure?
A)
Traversal
done
clear
B)
Sorting
done
clear
C)
Merging
done
clear
D)
All of the above
done
clear
View Answer play_arrow
Insertion and deletions take place from different end in
A)
Stack
done
clear
B)
Queue
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
.........................data structures are single level data structures
A)
Linear
done
clear
B)
Non-Linear
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
...........................data structures are multi-level data structures.
A)
Linear
done
clear
B)
Non-Linear
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
Which of the following is/are Python's built in linear data structure.
A)
List
done
clear
B)
Tuples
done
clear
C)
Dictionaries
done
clear
D)
All of the above
done
clear
View Answer play_arrow
A ....................... defines a set of values along with well-defined operations stating its input-output behaviours:
A)
Data Structure
done
clear
B)
Data Type
done
clear
C)
both a and b
done
clear
D)
None of the above
done
clear
View Answer play_arrow
Applications of Stack is/are:
A)
A parentheses balancing program
done
clear
B)
Tracking of local variable at run time
done
clear
C)
Compiler syntax Analyzer
done
clear
D)
AII of the above
done
clear
View Answer play_arrow
A empty queue named "que" can be created using list with the help of.......................
A)
que=()
done
clear
B)
que={}
done
clear
C)
que=[]
done
clear
D)
Linear Tree
done
clear
View Answer play_arrow
An element can be deleted from a Queue using .................method
A)
pop()
done
clear
B)
del()
done
clear
C)
remove()
done
clear
D)
all of the above.
done
clear
View Answer play_arrow
Consider a Queue with front=2, rear=4 and size=6 Diksha, Reena, Bhawna, Teena, ........................., What will be the queue after insertion of "Khushi" and "Pihu" and deletion of one element from the queue.
A)
Diksha, Reena, Teena, Khushi, Pihu
done
clear
B)
Reena, Bhawna, Teena, Khushi, Pihu
done
clear
C)
Diksha, Bhawna, Teena, Khushi, Pihu
done
clear
D)
None of the above
done
clear
View Answer play_arrow
Consider a Queue with front=0, rear=3 and size=5 Diksha, Reena, Bhawna, Teena What will be the value of front and rear when "Teena" is deleted from the queue.
A)
f=0, r=2
done
clear
B)
f=1, r=2
done
clear
C)
f=1, r=3
done
clear
D)
None of the above
done
clear
View Answer play_arrow
Consider a Queue with rear=front=-1 and Size = 9 What will be the value of front and rear when an element is deleted from the queue.
A)
0
done
clear
B)
1
done
clear
C)
-1
done
clear
D)
underflow
done
clear
View Answer play_arrow
Consider a Queue with rear=8 and Size = 9 What will be the value of rear when an element is insert from the queue.
A)
9
done
clear
B)
8
done
clear
C)
overflow
done
clear
D)
underflow
done
clear
View Answer play_arrow