
Trie - Data Structure Quiz
Authored by Purushotham M
Professional Development
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements are true about Trie Data structure?
P1: There is one root node in each Trie.
P2: Each path from the root to any node represents a word or string.
P3: We can not do prefix search (or auto-complete) with Trie.
P4: There is no use of Hash functions in a Trie data structure
P1 & P3 Only
P2 & P3 Only
P1 Only
P1, P2 and P4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A program to search a contact from phone directory can be implemented efficiently using a ______
BST
Trie
Balanced BST
Binary tree
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What can be the maximum depth of the Trie with n strings and m as the maximum string length?
log2n
log2m
n
m
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about the Trie?
Root is letter a
Path from root to the leaf yields the string
Children of nodes are randomly ordered
Each node stores the associated keys
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given the following C++ code snippet for inserting a string into a Trie, find the missing line:
Which of the following lines should replace ________________________ to correctly insert the string into the Trie?
node = node->children[index];
node = node->children[str[i + 1]];
node = node->children[index++];
node = node->children[index + 1];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the efficient data structure for searching words in dictionaries?
BST
Linked List
Balanced BST
Trie
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trie is also known as _________
Digital Tree
Treap
Binomial Tree
2-3 Tree
Answer explanation
It stores characters digitally (like bits) from the root to the leaf, hence the name Digital Tree.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Managing Projects
Quiz
•
Professional Development
13 questions
Objetivos generales de etapa
Quiz
•
Professional Development
12 questions
Te Rito - Cyber Security
Quiz
•
Professional Development
10 questions
LEARNER AND THE LEARNING ENVIRONMENT
Quiz
•
Professional Development
10 questions
ICWLS 2023 Quiz
Quiz
•
Professional Development
15 questions
Competency Based Education
Quiz
•
Professional Development
15 questions
FOL. UF1 AEA2. COWORKING.
Quiz
•
Professional Development
15 questions
2PM Pub Quiz Sample Questions
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development