Search Header Logo

Data Structures Quiz

Authored by Shubhangi Divekar

Computers

University

Used 1+ times

Data Structures Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key disadvantage of using an array?

Fast access

Fixed size

Random access

Sequential access

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure follows LastInFirstOut (LIFO)?

Stack

Queue

Array

Linked List

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which follows FirstInFirstOut (FIFO)?

Stack

Queue

Linked List

Tree

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of accessing an element in an array?

O(n)

O(1)

O(log n)

O(n log n)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a singly linked list, insertion at the head takes how much time?

O(1)

O(n)

O(log n)

O(n²)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Finding an element in a linked list requires what time complexity?

O(1)

O(n)

O(log n)

O(n²)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure allows insertion/deletion at both ends?

Stack

Queue

Deque

Array

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?

Discover more resources for Computers