DAY 25 Array & Linked List in Data Structure (12th July 24)

DAY 25 Array & Linked List in Data Structure (12th July 24)

University

15 Qs

quiz-placeholder

Similar activities

Transfer function exercises

Transfer function exercises

University

10 Qs

Needs Vs Wants

Needs Vs Wants

University

10 Qs

My ADA

My ADA

University

15 Qs

ESL Vocabulary: Technology 1

ESL Vocabulary: Technology 1

University - Professional Development

10 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

Term 1 Reflection

Term 1 Reflection

KG - Professional Development

11 Qs

Comprehension

Comprehension

KG - University

10 Qs

Application forms

Application forms

University

18 Qs

DAY 25 Array & Linked List in Data Structure (12th July 24)

DAY 25 Array & Linked List in Data Structure (12th July 24)

Assessment

Quiz

Professional Development

University

Practice Problem

Easy

Created by

KVCH CORPORATE

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...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare an array

in C++?

int array[10];

array int[10];

int[10] array;

array[10] int;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity to access an element in an

array using an index?

O(1)

O(n)

O(log n)

O(n log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you initialize an array of integers with 5 elements

to zero in C++?

int array[5] = {0};

int array[5] = 0;

int array = {0, 0, 0, 0, 0};

int array[5] = {0, 0};

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly describes the way arrays

are stored in memory?

Randomly

Contiguously

Non-contiguously

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given an array int arr[5] = {1, 2, 3, 4, 5};, what will be the

value of arr[2]?

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of a linked list over an array?

Fixed size

Easier access to elements using an index

Dynamic size

Faster access to elements

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a type of linked list?

Singly linked list

Doubly linked list

Circular linked list

Triply linked list

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?