
Data Structures Quiz

Quiz
•
English
•
Professional Development
•
Medium
Chitharanjan K
Used 2+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the time complexity of the push operation in a stack implemented using an array?
O(1)
O(n
O(log n)
O(n^2)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A stack is a data structure that follows the principle of:
LIFO (Last In First Out)
FIFO (First In First Out)
Priority based
Random access
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following operations is performed at the front of the queue?
Enqueue
Dequeue
Peek
All of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following operations is not supported by a deque?
Insertion at the front
Insertion at the rear
Deletion from the front
Random access of elements
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a circular queue of size 5, if the front is at index 2 and the rear is at index 4, how many elements are there in the queue?
2
3
4
5
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider a queue with elements A, B, C, D (A is at the front). After two dequeue operations and one
enqueue operation of E, what will be the queue?
C, D, E
E, C, D
D,E
E,D
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The primary advantage of postfix expressions over infix expressions is:
Easier to evaluate
Less memory usage
Easier to parse
All of the above
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Yến - KET - 1001-1025 + bonus 45-54 + copy

Quiz
•
Professional Development
38 questions
TEST 6 ETS 2020

Quiz
•
Professional Development
36 questions
VOCABULARY LOGISTICS

Quiz
•
Professional Development
40 questions
U11 ef elementary

Quiz
•
Professional Development
35 questions
Adjectives + Prepositions 3 (h-r)

Quiz
•
8th Grade - Professio...
45 questions
Lesson 1 The Way to Rainy Mountain

Quiz
•
Professional Development
40 questions
English For IT 5: Unit 3

Quiz
•
1st Grade - Professio...
41 questions
Олимпиада

Quiz
•
Professional Development
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade