Search Header Logo

Data Structures Quiz

Authored by AVANI (RA2411030010092)

Other

University

30 Questions

Data Structures Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following statements about arrays is true?

Array stores elements in random memory locations

Array stores elements in continuous memory locations

Array elements are linked using pointers

Array elements can have different data types

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What is the time complexity to access an element in an array by index?

O(n)

O(log n)

O(1)

O(n²)

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

In an array of size n, how many elements can be stored?

n

n+1

n–1

Infinite

4.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What is a limitation of arrays?

They are too slow

They cannot be sorted

They have fixed size

They cannot hold integers

5.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which operation in an array is the most time-consuming (on average)?

Accessing an element

Inserting at the end

Deleting from the beginning

Updating a value

6.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following data structures is best suited for dynamic memory usage?

Array

Linked List

Stack

Queue

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

In a singly linked list, each node contains:

Data and one pointer

Only data

Two pointers

Three pointers

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?