Final Quiz

Final Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

Nivelamento - Lógica (python)

Nivelamento - Lógica (python)

Professional Development

20 Qs

Pre Test Fundamental Kotlin

Pre Test Fundamental Kotlin

Professional Development

20 Qs

ANIMALES

ANIMALES

Professional Development

24 Qs

Volume 2

Volume 2

Professional Development

17 Qs

6

6

Professional Development

20 Qs

wu3retofinal

wu3retofinal

Professional Development

18 Qs

Réseau

Réseau

Professional Development

19 Qs

GIT

GIT

Professional Development

15 Qs

Final Quiz

Final Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

PRADHEEBA U

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?