The general principle of stack is
STACK - [UJI UAS ALS]

Quiz
•
Computers
•
University
•
Medium
Emely Lestari
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When do pop, top element is removed
First in and first out
Use push to remove element
Use pop to insert element
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the problem if implementing stack with array when the index[0] is as a TOP:
Pop will not need to move all elements
The top element will not move when doing push
The last elements need to be removed when doing pop
Pop will need to move all elements
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the disadvantage if implement stack with array when the index[0] is as the first element?
Pop will need to move all elements
The last elements need to be removed when doing pop
Pop will not need to move all elements
We need to record the array and the top position
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Stack can be implemented as stack with:
Top is always in the first element only
Top is always in the midddle element only
Top is always in the last element only
Top can be as the first element or last element
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the advantage if implement stack with array when the index[0] is as the first element?
Push will not need to move all elements
The last elements need to be removed when doing pop
We need to record the array and the top position
Pop will need to move all elements
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the advantage if implement stack with array when the index[0] is as the first element?
Pop will need to move all elements
Pop will not need to move all elements
The last elements need to be removed when doing pop
We need to record the array and the top position
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is true about implementing linked list with top at the last element (TAIL)?
Push always insert first element
Pop always delete first element
Push always insert last element
Pop will need to move all elements
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Quiz 2 - Stack

Quiz
•
University
10 questions
Quiz on Stacks and Data Structures 2

Quiz
•
University
15 questions
Stacks and Queues Quiz

Quiz
•
University
10 questions
DSA(UNIT 1) Test 1

Quiz
•
University
12 questions
Data Structures

Quiz
•
University
9 questions
Stacks/Queues

Quiz
•
University
5 questions
Stack Operations

Quiz
•
University
11 questions
WarStory-DataStructure2

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade