Data Structures MCQs (Part-12)

Which of the following data structures is most commonly used in implementing a graph?

A Linked List
B Stack
C Queue
D Adjacency List

Which memory allocation technique allows memory to be allocated in fixed sized blocks?

A Paging
B Segmentation
C Dynamic Memory Allocation
D Heap Memory

Which data structure is used in AI for representing hierarchical structures?

A Linked List
B Tree
C Queue
D Stack

Which of the following is a key application of a stack in real world systems?

A Task scheduling
B Undo operations
C Database indexing
D Sorting

What is the primary use of a hash table in applications?

A Storing large datasets
B Efficient searching
C Sorting elements
D Representing graphs

Which of the following data structures is used for fast text search in natural language processing (NLP)?

A Queue
B Trie
C Binary Search Tree
D Stack

In memory management, what is the main advantage of segmentation?

A It allows contiguous allocation
B It simplifies memory allocation
C It supports dynamic memory allocation
D It eliminates fragmentation

Which data structure is used to implement the depth first search (DFS) algorithm?

A Stack
B Queue
C Array
D Linked List

Which technique is often used to reduce memory usage in large datasets in AI?

A Sparse matrices
B Hash tables
C Linked lists
D Arrays

Which of the following data structures is most suitable for implementing a priority queue?

A Stack
B Queue
C Binary Heap
D Array

In artificial intelligence, which data structure is commonly used in decision making algorithms?

A Queue
B Graph
C Tree
D Stack

Which of the following algorithms uses dynamic programming for optimization?

A Quick Sort
B Merge Sort
C Dijkstraโ€™s Algorithm
D Fibonacci Sequence

What is the time complexity of inserting an element in a balanced binary search tree (BST)?

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

Which memory allocation technique requires breaking the memory into fixed sized blocks?

A Paging
B Segmentation
C Stack allocation
D Dynamic allocation

Which data structure is used in the implementation of a union find algorithm for network connectivity?

A Linked List
B Array
C Disjoint Set Union (DSU)
D Stack