ADSQUIZ

ADSQUIZ

University

10 Qs

quiz-placeholder

Similar activities

uas-siber

uas-siber

University

10 Qs

Bioinformática II: Teórico 2

Bioinformática II: Teórico 2

University

12 Qs

MS Word Review

MS Word Review

9th Grade - Professional Development

10 Qs

Arboles

Arboles

University

10 Qs

Web Designing Quiz-2

Web Designing Quiz-2

University

10 Qs

BFS and DFS - Data Structures

BFS and DFS - Data Structures

University

15 Qs

pointers and structures

pointers and structures

University

10 Qs

Computer Science: CPU performance

Computer Science: CPU performance

University

13 Qs

ADSQUIZ

ADSQUIZ

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Gouthami Velakanti

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the maximum height of an AVL tree with p nodes?

a) p

b) log(p)

c) log(p)/2

d) p/2

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Why we need to a binary tree which is height balanced?

a) to avoid formation of skew trees

b) to save memory

c) to attain faster memory access

d) to simplify storing

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the balance factor of node 8?

2

-1

+1

-2

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

For the tree below, write the in-order traversal.

a) 6, 2, 5, 7, 11, 2, 5, 9, 4

b) 6, 5, 2, 11, 7, 4, 9, 5, 2

c) 2, 7, 2, 6, 5, 11, 5, 9, 4

d) 2, 7, 6, 5, 11, 2, 9, 5, 4

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Select the code snippet which performs in-order traversal.

public void inorder(Tree root) { System.out.println(root.data); inorder(root.left); inorder(root.right); }

public void inorder(Tree root) { inorder(root.left); System.out.println(root.data); inorder(root.right); }

public void inorder(Tree root) { System.out.println(root.data); inorder(root.right); inorder(root.left); }

public void inorder(Tree root) { inorder(root.right); inorder(root.left); System.out.println(root.data); }

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a binary search tree, which of the following traversals would print the numbers in the ascending order?

Level order

Preorder

Inorder

Level order

Spiral order

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In postorder traversal of binary tree right subtree is traversed before visiting root.

True

False

Can't say

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?