Data Structures and Algorithms-I MCQs

Page No. 8

What is the maximum number of keys that a B+ -tree of order 3 and of height 3 have?


a3

✖


b80

✖


c27

✖


d26

✓


View Answer 26

Efficiency of finding the next record in B+ tree is ____


aO(n)

✖


bO(log n)

✖


cO(nlog n)

✖


dO(1)

✓


View Answer O(1)

Statement 1: When a node is split during insertion, the middle key is promoted to the parent as well as retained in right half-node.
Statement 2: When a key is deleted from the leaf, it is also deleted from the non-leaf nodes of the tree.


aStatement 1 is true but statement 2 is false

✓


bStatement 2 is true but statement 1 is false

✖


cBoth the statements are true

✖


dBoth the statements are false

✖



Which of the following is false?


aA B+ -tree grows downwards

✓


bA B+ -tree is balanced

✖


cIn a B+ -tree, the sibling pointers allow sequential searching

✖


dB+ -tree is shallower than B-tree

✖



A B+ tree can contain a maximum of 7 pointers in a node. What is the minimum number of keys in leaves?


a6

✖


b3

✓


c4

✖


d7

✖


View Answer 3

Which of the following is true?


aB + tree allows only the rapid random access

✖


bB + tree allows only the rapid sequential access

✖


cB + tree allows rapid random access as well as rapid sequential access

✓


dB + tree allows rapid random access and slower sequential access

✖



In a B+ tree, both the internal nodes and the leaves have keys.


aTrue

✖


bFalse

✓


ceither true either false

✖


dNone of the mentioned

✖


View Answer False

Which of the following is false?


a2-3 tree requires less storage than the BST

✓


blookup in 2-3 tree is more efficient than in BST

✖


c2-3 tree is shallower than BST

✖


d2-3 tree is a balanced tree

✖



AVL trees provide better insertion the 2-3 trees.


aTrue

✖


bFalse

✓


ceither true either false

✖


dNone of the mentioned

✖


View Answer False

Which of the following is not true about the 2-3 tree?


aall leaves are at the same level

✖


bit is perfectly balanced

✖


cpostorder traversal yields elements in sorted order

✓


dit is B-tree of order 3

✖



Goto Page No.

Page 8 of 53

Alphabetical MCQs Categories
—

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"
—

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan