TREES

TREES

University

10 Qs

quiz-placeholder

Similar activities

ロジックテスト (Đề kiểm tra năng lực IT)

ロジックテスト (Đề kiểm tra năng lực IT)

University

12 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Vocabulary Quiz - Computer - 01

Vocabulary Quiz - Computer - 01

12th Grade - University

10 Qs

Google Calendar

Google Calendar

University

10 Qs

SCM and Logistics

SCM and Logistics

University

11 Qs

UIT 2221 MALWARE (COPTPA)

UIT 2221 MALWARE (COPTPA)

University

15 Qs

Quiz 10 Susulan  Teori Bahasa dan Otomata 2022-1

Quiz 10 Susulan Teori Bahasa dan Otomata 2022-1

University

10 Qs

PowerPoint 1

PowerPoint 1

12th Grade - University

10 Qs

TREES

TREES

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Gouthami Velakanti

Used 2+ 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

20 sec • 1 pt

Which of the following data structure can provide efficient searching of the elements?

a) unordered lists

b) binary search tree

c) tree

d) 2-3 tree

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node? (GATE CS 2010)

4

3

2

1

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node? (GATE CS 2010)

a) logn (k+1) – 1

b) nk

c) logk (n+1) – 1

d) klogn

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is true?

a) larger the order of B-tree, less frequently the split occurs

b) larger the order of B-tree, more frequently the split occurs

c) smaller the order of B-tree, more frequently the split occurs

d) smaller the order of B-tree, less frequently the split occurs

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the special property of red-black trees and what root should always be?

a) a color which is either red or black and root should always be black color only

b) height of the tree

c) pointer to next node

d) a color which is either green or black

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is an application of Red-black trees and why?

a) used to store strings efficiently

b) used to store integers efficiently

c) can be used in process schedulers, maps, sets

d) for efficient sorting

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the below pseudo code trying to do, where pt is a node pointer and root pointer?

redblack(Node root, Node pt) :

if (root == NULL)

return pt  

if (pt.data < root.data)

{

root.left = redblack(root.left, pt); root.left.parent = root }

else if (pt.data > root.data)

{ root.right = redblackt(root.right, pt)

root.right.parent = root }

return root

a) insert a new node

b) delete a node

c) search a node

d) count the number of nodes

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?