Skip to main content

Advanced Trees _Avl_ Redblack_ Btrees — Part 2 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Advanced Trees _Avl_ Redblack_ Btrees — Part 2 with worked academic solutions for PPSC, FPSC, CSS, PMS, NTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
PPSC, FPSC, CSS...
Estimated Time
48 mins
Exam-Level PPSC FPSC CSS PMS NTS
Verified for Commission Syllabus • Oct 14, 2026
40

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/40 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 40
★ PPSC ★ FPSC

What is a key advantage of using a Red-Black tree over a standard Binary Search Tree?

Question 2 of 40
★ PPSC ★ FPSC

In an AVL tree, what happens when a node has a balance factor of 0?

Question 3 of 40
★ PPSC ★ FPSC

How is a B-Tree node typically structured?

Question 4 of 40
★ PPSC ★ FPSC

Which of the following is true for Red-Black trees?

Question 5 of 40
★ PPSC ★ FPSC

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

Question 6 of 40
★ PPSC ★ FPSC

Can suffix tree be used in bioinformatics problems and solutions.

Question 7 of 40
★ PPSC ★ FPSC

Which one of the following data structures are preferred in database-system implementation?

Question 8 of 40
★ PPSC ★ FPSC

What is a time complexity for x pattern occurrence of length n?

Question 9 of 40
★ PPSC ★ FPSC

How much time does construction of suffix tree take?

Question 10 of 40
★ PPSC ★ FPSC

Which statement is correct of suffix tree with a string of length n?

Question 11 of 40
★ PPSC ★ FPSC

Who among the following provided the first suffix tree contribution for all alphabet?

Question 12 of 40
★ PPSC ★ FPSC

Which tree allows fast implementation of string operation?

Question 13 of 40
★ PPSC ★ FPSC

Trie is also known as . . . . . . . .

Question 14 of 40
★ PPSC ★ FPSC

What is a time complexity for finding the longest prefix that is common between suffix in a string?

Question 15 of 40
★ PPSC ★ FPSC

Which of the following is true about the trie?

Question 16 of 40
★ PPSC ★ FPSC

Which of the following is the efficient data structure for searching words in dictionaries?

Question 17 of 40
★ PPSC ★ FPSC

A B-tree of order 4 and of height 3 will have a maximum of . . . . . . . . keys.

Question 18 of 40
★ PPSC ★ FPSC

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

Question 19 of 40
★ PPSC ★ FPSC

A program to search a contact from phone directory can be implemented efficiently using . . . . . . . .

Question 20 of 40
★ PPSC ★ FPSC

What traversal over trie gives the lexicographical sorting of the set of the strings?

Question 21 of 40
★ PPSC ★ FPSC

What is a time complexity for inserting an alphabet in the tree using hash maps?

Question 22 of 40
★ PPSC ★ FPSC

What is the time complexity of Uttkonen's algorithm?

Question 23 of 40
★ PPSC ★ FPSC

Which tree allows fast implementation of a set of string operation?

Question 24 of 40
★ PPSC ★ FPSC

What is a time complexity for finding the total length of all string on all edges of a tree?

Question 25 of 40
★ PPSC ★ FPSC

Who among the following algorithm is used in external memory and compression of the suffix tree?

Question 26 of 40
★ PPSC ★ FPSC

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

Question 27 of 40
★ PPSC ★ FPSC

Which of the following special type of trie is used for fast searching of the full texts?

Question 28 of 40
★ PPSC ★ FPSC

For what size of nodes, the worst case of usage of space in suffix tree seen?

Question 29 of 40
★ PPSC ★ FPSC

Following code snippet is the function to insert a string in a trie. Find the missing line. private void insert(String str) { TrieNode node = root; for (int i = 0; i < length; i++) { int index = key.charAt(i) - 'a'; if (node.children[index] == null) node.children[index] = new TrieNode(); ________________________ } node.isEndOfWord = true; }

Question 30 of 40
★ PPSC ★ FPSC

What is a time complexity for finding the longest substring that is repeated in a string?

Question 31 of 40
★ PPSC ★ FPSC

What is a time complexity for finding the longest substring that is common in string S1 and S2 (n1 and n2 are the string lengths of strings s1, s2 respectively)?

Question 32 of 40
★ PPSC ★ FPSC

What is a time complexity for finding the longest palindromic substring in a string by using the generalized suffix tree?

Question 33 of 40
★ PPSC ★ FPSC

What is the other name for Suffix Tree?

Question 34 of 40
★ PPSC ★ FPSC

AVL trees provide better insertion the 2-3 trees.

Question 35 of 40
★ PPSC ★ FPSC

Who proposed the concept of Suffix Tree?

Question 36 of 40
★ PPSC ★ FPSC

The height of 2-3 tree with n elements is . . . . . . . .

Question 37 of 40
★ PPSC ★ FPSC

Who among the following provided the first online contribution of Suffix Tree?

Question 38 of 40
★ PPSC ★ FPSC

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.

Question 39 of 40
★ PPSC ★ FPSC

Five node splitting operations occurred when an entry is inserted into a B-tree. Then how many nodes are written?

Question 40 of 40
★ PPSC ★ FPSC

2-3-4 trees are B-trees of order 4. They are an isometric of . . . . . . . . trees.

✓ Link copied to clipboard
Continue Your Practice

Advanced Mapreduce Concepts — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Computer Science & IT

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Computer Science & IT

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →