What is a stack?

Domande sulle Strutture Dati

Quiz
•
others
•
5th Grade
•
Hard
annamaria laselva
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A data structure that follows the FIFO principle
A data structure that follows the LIFO principle (correct)
A collection of unordered elements
A type of two-dimensional array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation removes the most recent element from a stack?
Enqueue
Dequeue
Push
Pop (correct)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a queue, which operation adds an element?
Pop
Push
Enqueue (correct)
Dequeue
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true regarding vectors?
Vectors can only contain integer numbers.
Vectors have a fixed size once created. (correct)
Vectors can be used to store data of different types.
Vectors cannot be dynamically sized.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best data structure to implement an "undo" function?
Queue
Array
Linked list
Stack (correct)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operations is typical of a queue?
Push
Pop
Enqueue (correct)
All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a vector has a size of 10, how many elements can it contain at most?
5
10 (correct)
11
It has no limits
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
WEDNESDAY: Language Review

Quiz
•
1st - 5th Grade
7 questions
WEDNESDAY: Language Review

Quiz
•
1st - 5th Grade
10 questions
DENTISTRY QUIZ #1

Quiz
•
5th Grade
15 questions
M4 W2 Spelling Test

Quiz
•
5th Grade - University
10 questions
U4L3 Spelling Review

Quiz
•
5th Grade
12 questions
Spellings test

Quiz
•
1st - 5th Grade
12 questions
TUESDAY: Language Review

Quiz
•
1st - 5th Grade
10 questions
Week 6 FRIDAY: Language Quiz

Quiz
•
1st Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade