
ADS QUIZ FOR MECH1

Quiz
•
Computers
•
Professional Development
•
Hard
Mara Shirisha
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is common in three different types of traversals (Inorder, Preorder and Postorder)?
Root is visited before right subtree
Root is visited after left subtree
Left subtree is always visited before right subtree
All of the above
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The inorder and preorder traversal of a binary tree are d b e a f c g and a b d e c f g, respectively. The postorder traversal of the binary tree is:
d e b f g c a
e d b g f c a
e d b f g c a
d e f g b c a
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the equivalent prefix form of the following expression (a + (b − c))* ((d − e)/(f + g − h))
* +a − bc /− ed + −fgh
* +ab − c /− ed + −fgh
* +a − bc /− de − +fgh
* +a −bc − /de − +fgh
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about a complete binary tree?
Every level, except possibly the last, is completely filled
Every node has either 0 or 2 children
The height of the tree is always log n, where n is the number of nodes
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used for depth-first search?
Queue
Stack
Heap
Linked List
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between binary search tree and AVL tree?
AVL tree is always balanced, while binary search tree may not be balanced
Binary search tree is always balanced, while AVL tree may not be balanced
There is no difference between binary search tree and AVL tree
AVL tree always has a height of log n, where n is the number of nodes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between red-black tree and AVL tree?
AVL tree is always balanced, while red-black tree may not be balanced
Red-black tree is always balanced, while AVL tree may not be balanced
There is no difference between red-black tree and AVL tree
Red-black tree always has a height of log n, where n is the number of nodes
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Data Structures and Algorithms Quiz No.1

Quiz
•
1st Grade - Professio...
12 questions
Computer Networking Fundamentals

Quiz
•
Professional Development
10 questions
Pelatihan Day 2

Quiz
•
Professional Development
10 questions
ADS_3

Quiz
•
Professional Development
11 questions
DSA + System design - 15

Quiz
•
Professional Development
7 questions
PM .NET Graphs/Trees

Quiz
•
Professional Development
15 questions
unit-5 test-1

Quiz
•
Professional Development
7 questions
Binary Representation of Real Numbers Quiz Part 1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development