Data Structures MCQs (Part-14)

Which of the following is the time complexity of a find operation in Disjoint Set Union (DSU) with path compression?

A O(1)
B O(log n)
C O(n)
D O(log log n)

Which of the following is a feature of a doubly linked list?

A One pointer per node
B Fixed size
C Two pointers per node
D No next node

Which data structure is used to efficiently handle range sum queries and updates?

A Segment Tree
B Hash Table
C Binary Search Tree
D Fenwick Tree

In a Bloom Filter, which of the following is true?

A It guarantees no false positives
B It allows false positives
C It guarantees no false negatives
D It does not use any hash functions

Which of the following data structures supports efficient substring searches?

A Trie
B Hash Table
C Linked List
D Stack

What is the main advantage of using a circular linked list?

A Fixed size
B Constant time traversal
C Continuous traversal
D Doubly linked

What is the space complexity of a Segment Tree?

A O(n)
B O(n log n)
C O(log n)
D O(n²)

Which of the following is true about a Skip List?

A It is based on binary search
B It uses a hash table for quick lookups
C It is a layered linked list for faster search
D It is slower than binary search trees

Which data structure is typically used in AI for representing decision trees?

A Trie
B Stack
C Tree
D Graph

What is the main advantage of a Red Black Tree over an AVL Tree?

A Simpler balancing rules
B More efficient searching
C Requires less memory
D More flexible structure

Which of the following operations can a Trie data structure perform efficiently?

A Searching for exact matches
B Sorting elements
C Range queries
D Merging trees

Which of the following is a disadvantage of using a Fenwick Tree?

A High space complexity
B Slow updates
C Cannot handle range queries
D Limited to range sum queries

Which of the following operations is the Disjoint Set Union (DSU) structure optimized for?

A Sorting
B Searching
C Union and Find
D Range queries

Which memory allocation technique divides memory into equal sized blocks?

A Paging
B Segmentation
C Stack allocation
D Linked allocation

Which data structure would you use for implementing an autocomplete feature in a search engine?

A Stack
B Trie
C Queue
D Hash Table