
Stack Exercises
Authored by Chong May
English
University
Used 128+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The postfix form of the expression (A+ B)*(C*D- E)*F / G is?
AB + CD* E - F **G /
AB + CDE - F *G /
AB+ CD*E - FG /**
AB + CD* E - *F *G/
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The process of accessing data stored in a serial access memory is similar to manipulating data on a ------?
Linked List
Stack
Heap
Queue
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The prefix form of A-B/ (C * D ⋀ E) is?
-A/B*C⋀DE
-/*⋀ACBDE
-ABCD*⋀DE
-A/BC*⋀DE
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The postfix form of A*B+C/D is?
ABCD+/*
A*BC+/D
AB*CD/+
*AB/CD+
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the worst-case time complexity when looking at the top item from the stack?
O(n)
O(2n)
O(n^2)
O(1)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which one of the following is NOT an application of Stack Data Structure?
Managing function calls
The stock span problem
Arithmetic expression evaluation
Printing Documents with Printer
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end.
True
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?