Data Structures2

Quiz
•
Computers
•
University
•
Medium
Ashok Kumar
Used 6+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For a given graph G having v vertices and e edges which is connected and has no cycles, which of the following statements is true?
v=e
v = e+1
v + 1 = e
v = e-1
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For the tree below, write the pre-order traversal.
2, 7, 2, 6, 5, 11, 5, 9, 4
2, 7, 5, 2, 6, 9, 5, 11, 4
2, 5, 11, 6, 7, 4, 9, 5, 2
2, 7, 5, 6, 11, 2, 5, 4, 9
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is the most appropriate data structure for reversing a word?
queue
stack
tree
graph
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many stacks are required for reversing a word algorithm?
one
two
three
four
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a max-heap, element with the greatest key is always in the which node?
Leaf node
First node of left sub tree
root node
First node of right sub tree
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Heap exhibits the property of a binary tree?
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Heap can be used as ________________
Priority queue
Stack
A decreasing order array
Normal Array
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Binary Tree

Quiz
•
University
12 questions
Greedy Method

Quiz
•
University
8 questions
DSA Group 2 (Heaps Quiz)

Quiz
•
University
15 questions
Data Structures Activity - 1

Quiz
•
University
10 questions
DS Quiz1

Quiz
•
University
13 questions
DSA Day 2

Quiz
•
University
7 questions
Final Practice

Quiz
•
University
10 questions
Quiz 2 - ASD - B

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade