Search Header Logo

Data Structure MCQ

Authored by Harish gupta

Information Technology (IT)

University

Used 2+ times

 Data Structure MCQ
AI

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

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?