Search Header Logo

Data Structures Quiz

Authored by College 24

Computers

University

Used 2+ 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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a primitive data type in C++?

Array

Integer

Stack

Queue

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An Abstract Data Type (ADT) is:

Implementation of data only

A mathematical model with data and operations

A non-primitive data type only

Same as primitive data type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the base address of an array represent?

The last element's location

The middle element's location

The first element's memory location

The size of the array

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The time complexity of accessing any element in an array using its index is:

O(1)

O(n)

O(log n)

O(n²)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A sparse array is an array in which:

All elements are equal

Most elements are zero or empty

Only one element is present

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an advantage of linked lists over arrays?

Dynamic size

Easy insertion and deletion

Random access of elements

Efficient memory utilization

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Traversal in a linked list means:

Inserting an element

Deleting an element

Visiting each node exactly once

Searching only the last node

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