Data Structure MCQ

Data Structure MCQ

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Harish gupta

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1. Which of the following data structures uses LIFO (Last In First Out) order?

Queue

Stack

Linked List

Array

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following is a characteristic of a circular queue?

It uses two pointers

It allows insertion and deletion at both ends

It has a fixed size

The front and rear pointers can be equal when the queue is not full

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which of the following operations has a time complexity of O(1) in a hash table?

Insertion

Deletion

Search

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. What is the time complexity of accessing an element in an array by its index?

O(n)

O(log n)

O(1)

O(n^2)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which of the following data structures is used to implement recursion?

Queue

Stack

Tree

Graph

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What is the worst-case time complexity for searching an element in a binary search tree (BST)?

O(log n)

O(n)

O(n log n)

O(1)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which of the following is true about a doubly linked list?

It allows traversal in only one direction

Each node stores only data and a reference to the next node

Each node stores references to both the previous and the next node

It has no advantages over a singly linked list

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?