Final Quiz

Final Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

Algoritmo e Lógica de Programação

Algoritmo e Lógica de Programação

Professional Development

15 Qs

Queues

Queues

11th Grade - Professional Development

15 Qs

Mobile Apps PayKu

Mobile Apps PayKu

1st Grade - Professional Development

20 Qs

Fellowship program 2021

Fellowship program 2021

University - Professional Development

15 Qs

6INFOMAN (Recitation)

6INFOMAN (Recitation)

University - Professional Development

20 Qs

FS_Prelim Quiz

FS_Prelim Quiz

Professional Development

20 Qs

MS OUTLOOK QUIZ - JIT

MS OUTLOOK QUIZ - JIT

Professional Development

20 Qs

Pretest DDTK-2024

Pretest DDTK-2024

Professional Development

16 Qs

Final Quiz

Final Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

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

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?