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, what is the number of elements present on the stack
Data Structures - Stacks
Quiz
•
Computers
•
12th Grade
•
Medium
R Woodruff
Used 12+ times
FREE Resource
35 questions
Show all answers
1.
FILL IN THE BLANK 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, what is the number of elements present on the stack
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which form of access is used to add remove nodes from a stack?
LIFO
FIFO
LILO
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to add an element to a Stack?
add()
enqueue()
push()
pop()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to return an element from a stack without removing it?
dequeue()
NextItem()
peek()
pop()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the element "A B C D" are placed in a stack and are deleted one at a time
in what order will they be removed?
ABCD
DBCA
DCBA
DABC
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these data structures is LIFO?
Stack
Queue
Binary Tree
Double linked list
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Storage for data defined in terms of set of operations to be performed on the data
Arrays
Variables
Abstract Data Types
Data Types
35 questions
Hash Tables & Other Data Structures
Quiz
•
10th - 12th Grade
37 questions
OCR H446 - 2.2 Problem Solving and Programming - Algorithms - 02
Quiz
•
12th Grade
33 questions
2.1.1 CSE Transitioning from Block to Text Coding
Quiz
•
9th - 12th Grade
30 questions
AP CSP|U3L6 Intro to Programming by Mr. B
Quiz
•
12th Grade
30 questions
Data Structures - Hash Tables
Quiz
•
12th Grade
36 questions
Struktur Data dalam Pembuatan Gim
Quiz
•
12th Grade - University
35 questions
JavaScript Control Flow and Loops.
Quiz
•
10th Grade - University
30 questions
Python Function - 1
Quiz
•
11th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University