Consider the following operation performed on a stack of size 5.
Push(1);
Pop();
Push(2);
Push(3);
Pop();
Push(4);
Pop();
Pop();
Push(5);
After the completion of all operation, the number of elements present in stack are
APPLICATIONS OF STACK
Quiz
•
Computers
•
Professional Development
•
Medium
POOJA SAPRA
Used 75+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following operation performed on a stack of size 5.
Push(1);
Pop();
Push(2);
Push(3);
Pop();
Push(4);
Pop();
Pop();
Push(5);
After the completion of all operation, the number of elements present in stack are
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The prefix form of an infix expression (p + q) – (r * t) is?
a) + pq – *rt
b) – +pqr * t
c) – +pq * rt
d) – + * pqrt
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The prefix form of A-B/ (C * D ^ E) is?
a) -/*^ACBDE
b) -ABCD*^DE
c) -A/B*C^DE
d) -A/BC*^DE
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The postfix form of the expression (A+ B)*(C*D- E)*F / G is?
a) AB+ CD*E – FG /**
b) AB + CD* E – F **G /
c) AB + CD* E – *F *G /
d) AB + CDE * – * F *G
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If there's no base criteria in a recursive program, the program will
not be executed
executed until all condition matches
executes infinitely
obtain progressive approach
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Convert the following Infix expression to Postfix form using a stack
x + y * z + (p * q + r) * s, Follow usual precedence rule and assume that the expression is legal.
a) xyz*+pq*r+s*+
b) xyz*+pq*r+s+*
c) xyz+*pq*r+s*+
d) xyzp+**qr+s*+
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an inherent application of stack?
a) Reversing a string
b) Evaluation of postfix expression
c) Implementation of recursion
d) Job scheduling
10 questions
PM JFE 2.0 - conditionals, operators, arrays and loops
Quiz
•
Professional Development
10 questions
ICT05 - Day 3
Quiz
•
Professional Development
15 questions
Network Plus Pre Assessment
Quiz
•
Professional Development
11 questions
ME ADS QUIZ
Quiz
•
Professional Development
12 questions
Javascript Avanzado ft-22b Grupo 5
Quiz
•
Professional Development
8 questions
Git intro
Quiz
•
Professional Development
10 questions
Git Quiz
Quiz
•
Professional Development
10 questions
Git & Github
Quiz
•
Professional Development
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade