
Data Structres
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Venkat Joshua
Used 3+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these best describes an array?
A data structure that shows a hierarchical behavior
Container of objects of similar types
Arrays are immutable once initialised
Array is not a data structure
Answer explanation
Array contains elements only of the same type.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the disadvantages of arrays?
Data structure like queue or stack cannot be implemented
There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
Index value of an array can be negative
Elements are sequentially accessed
Answer explanation
Arrays are of fixed size. If we insert elements less than the allocated size, unoccupied positions can’t be used again. Wastage will occur in memory.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Elements in an array are accessed _____________
randomly
sequentially
exponentially
logarithmically
Answer explanation
Elements in an array are accessed randomly. In Linked lists, elements are accessed sequentially.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of pop() operation when the stack is implemented using an array?
O(1)
O(n)
O(log n)
O(n log n)
Answer explanation
pop() accesses only one end of the structure, and hence constant time.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following array element will return the top-of-the-stack-element for a stack of size N elements(capacity of stack > N)?
S[N-1]
S[N]
S[N-2]
S[N+1]
Answer explanation
Array indexing start from 0, hence N-1 is the last index.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a stack, if a user tries to remove an element from an empty stack it is called _________
Underflow
Empty collection
Overflow
Garbage Collection
Answer explanation
Underflow occurs when the user performs a pop operation on an empty stack. Overflow occurs when the stack is full and the user performs a push operation. Garbage Collection is used to recover the memory occupied by objects that are no longer used.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the postfix expression 6 3 2 4 + – *?
1
74
40
-18
Answer explanation
Postfix Expression is (6*(3-(2+4))) which results -18 as output.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
Repaso Parcial 1 BQ
Quiz
•
University
25 questions
financial institutions and markets
Quiz
•
University
30 questions
Video 1 Comunicación AV
Quiz
•
University
25 questions
Acct. Test Bank #4 Adjusting Entries
Quiz
•
9th Grade - University
25 questions
Sistema de gobierno y rama judicial de PR
Quiz
•
12th Grade - University
25 questions
Astro Quiz 2025
Quiz
•
University
26 questions
Procesal Penal - Temas 1, 2, 3, 4, 5, 6 y 7
Quiz
•
University
25 questions
SAS MATEMATIKA Kelas V
Quiz
•
5th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
