Final Quiz
Quiz
•
Computers
•
Professional Development
•
Hard
PRADHEEBA U
Used 7+ times
FREE Resource
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Sec+ CH.2 Review Test
Quiz
•
Professional Development
20 questions
QUIZZ KJD - BIOS
Quiz
•
KG - Professional Dev...
15 questions
Unit 1 lesson 1
Quiz
•
University - Professi...
20 questions
Mobile and Operating Systems
Quiz
•
Professional Development
20 questions
TUGAS 2 PROTOCOL DAN IP ADDRESS
Quiz
•
Professional Development
15 questions
Computer basics for beginners
Quiz
•
Professional Development
20 questions
Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik
Quiz
•
1st Grade - Professio...
15 questions
Basic CSS
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
21 questions
October 25
Quiz
•
Professional Development
10 questions
October Monthly Quiz
Quiz
•
Professional Development
20 questions
There is There are
Quiz
•
Professional Development
5 questions
SSUSH13
Interactive video
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
