Final Quiz
Quiz
•
Computers
•
Professional Development
•
Hard
PRADHEEBA U
Used 7+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is
(a) log2n
(b) n-1
(c) n
(d) 2n
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the balanced binary tree in the figure given below, how many nodes will become unbalanced when a node is inserted as a child of the node “g”?
1
3
7
8
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A binary search tree is generated by inserting in order the following integers:
50, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24
The number of nodes in the left subtree and right subtree of the root respectively is
(a) (4, 7)
(b) (7, 4)
(c) (8, 3)
(d) (3, 8)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements is false?
A tree with n nodes has (n – 1) edges
A labeled rooted binary tree can be uniquely constructed given its postorder and preorder traversal results.
A complete binary tree with n internal nodes has (n + 1) leaves.
The maximum number of nodes in a binary tree of height h is (2h+1-1)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A complete n-ary tree is one in which every node has 0 or n sons. If x is the number of internal nodes of a complete n-ary tree, the number of leaves in it is given by
(a) x(n – 1) +1
(b) xn - 1
(c) xn + 1
(d) x(n+1)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following nested representation of binary trees: (X Y Z) indicates Y and Z are the left and right sub stress, respectively, of node X. Note that Y and Z may be NULL, or further nested. Which of the following represents a valid binary tree?
(a) (1 2 (4 5 6 7))
(b) (1 ((2 3 4) 5 6) 7)
(c) (1 (2 3 4)(5 6 7))
(d) (1 (2 3 NULL) (4 5))
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The most appropriate matching for the following pairs
X: depth first search 1: heap
Y: breadth-first search 2: queue
Z: sorting 3: stack
is:
(a) X—1 Y—2 Z-3
(b) X—3 Y—1 Z-2
(c) X—3 Y—2 Z-1
(d) X—2 Y—3 Z-1
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
15 questions
Desain Multimedia Interaktif Kelas 12
Quiz
•
KG - Professional Dev...
16 questions
L4 Ôn tập HK 2 - 22-23
Quiz
•
Professional Development
16 questions
U.T. 2: Capa de transporte
Quiz
•
Professional Development
20 questions
js DOM
Quiz
•
12th Grade - Professi...
20 questions
java revews
Quiz
•
Professional Development
15 questions
Javascript basics
Quiz
•
Professional Development
20 questions
Nuevas tecnologías
Quiz
•
6th Grade - Professio...
16 questions
Keyboard Types
Quiz
•
Professional Development
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
