DSA Day 2

DSA Day 2

University

13 Qs

quiz-placeholder

Similar activities

BCSC0006 - Quiz 4 - Linked List & Stacks

BCSC0006 - Quiz 4 - Linked List & Stacks

University

10 Qs

Pointer Basic in C/C++

Pointer Basic in C/C++

University

10 Qs

KofiNketiaAckaahGyasi_CSCI2380_03Pre2

KofiNketiaAckaahGyasi_CSCI2380_03Pre2

University

10 Qs

DS UNIT-2 TEST-2

DS UNIT-2 TEST-2

University

13 Qs

Linked List

Linked List

University

14 Qs

C++ linked list

C++ linked list

University

10 Qs

DS Module 3 Linked List

DS Module 3 Linked List

University

15 Qs

AS Computing: Data Structures

AS Computing: Data Structures

10th Grade - University

15 Qs

DSA Day 2

DSA Day 2

Assessment

Quiz

Computers

University

Medium

Created by

Skill Chaze

Used 2+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a pointer?

A data type

A variable that stores the address of another variable

A function that returns a value

An operator

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is dynamic memory allocation?

Allocating memory at compile time

Allocating memory at run time

Allocating memory on the stack

Allocating memory on the heap

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Which header file is needed for dynamic memory allocation in

<stdlib.h>

<stdio.h>

<string.h>

<stdbool.h>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a linked list?

A linear data structure

A non-linear data structure

 A tree data structure

A graph data structure

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Random access to elements

Efficient memory usage

Fixed size

Faster traversal of elements

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a node in a linked list?

An element of the list

A pointer to an element of the list

A data type

A function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a head pointer in a linked list?

A pointer to the first element of the list

A pointer to the last element of the list

A pointer to an intermediate element of the list

A pointer to a NULL value

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?