DATA STRUCTURE QUIZ

DATA STRUCTURE QUIZ

University

30 Qs

quiz-placeholder

Similar activities

English Olympic

English Olympic

University

25 Qs

QUIZ #2

QUIZ #2

University

25 Qs

Revision Sheet for Grade 1 A+H

Revision Sheet for Grade 1 A+H

1st Grade - University

25 Qs

Identify Adjective and Adverb Usage

Identify Adjective and Adverb Usage

5th Grade - University

25 Qs

English Quiz - Unit 3: "All we need" - 5th Grade

English Quiz - Unit 3: "All we need" - 5th Grade

5th Grade - University

25 Qs

Vocabulary set 1

Vocabulary set 1

University

25 Qs

Bahasa Inggris Mid-Test (1EA39)

Bahasa Inggris Mid-Test (1EA39)

University

25 Qs

B1 Listening Natural Disasters

B1 Listening Natural Disasters

University

25 Qs

DATA STRUCTURE QUIZ

DATA STRUCTURE QUIZ

Assessment

Quiz

English

University

Practice Problem

Hard

Created by

Mr Abhi

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data structure is used in recursion?

Queue

Stack

Heap

Tree

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data structure supports efficient dynamic memory allocation?

Array

Queue

Linked List

 Stack

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following operations is NOT efficient for arrays?

Accessing an element by index

Inserting an element at the end.

Deleting an element from the middle.

Traversing all elements.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the primary disadvantage of using arrays?

They require more memory than linked lists.

They do not allow random access.

Their size is fixed after creation.

They cannot store multiple data types.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If an array is declared as " int arr[10]; " how many elements can it hold?

5

9

11

10

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

int arr[5] = {1, 2, 3, 4, 5};

int *p = arr;

printf("%d", *(p + 2));

2

3

4

5

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

int arr[5] = {1, 2, 3, 4, 5};

for (int i = 0; i < 5; i++) {

arr[i] *= 2;

}

printf("%d", arr[2]);

2

4

6

3

Create a free account and access millions of resources

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?