Dynamic Memory Allocation

Dynamic Memory Allocation

Professional Development

12 Qs

quiz-placeholder

Similar activities

Think it through

Think it through

University - Professional Development

16 Qs

Chapter 8 Communications & Networks

Chapter 8 Communications & Networks

University - Professional Development

15 Qs

KidSS Drone Quiz

KidSS Drone Quiz

Professional Development

11 Qs

MATLAB variables. Types. Declaration. Operations.

MATLAB variables. Types. Declaration. Operations.

Professional Development

10 Qs

DECI - Week 2 - round

DECI - Week 2 - round

Professional Development

10 Qs

Computer Networking Fundamentals

Computer Networking Fundamentals

Professional Development

12 Qs

GSuite Quiz

GSuite Quiz

Professional Development

10 Qs

ทดสอบก่อนเรียนบทที่ 7 สำรองและป้องกันความเสียหายของข้อมูล

ทดสอบก่อนเรียนบทที่ 7 สำรองและป้องกันความเสียหายของข้อมูล

Professional Development

10 Qs

Dynamic Memory Allocation

Dynamic Memory Allocation

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Purushotham M

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Difference Between array and calloc()

array: Size is fixed

calloc () : fixed size

array: Size is fixed & static

calloc () : fixed size & dynamic

array: Size is fixed & dynamic

calloc () : fixed size & dynamic

array: Size is fixed & static

calloc () : fixed size can be altered & dynamic

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can the wastage of memory be handled in dynamic memory allocation?

malloc()

free()

realloc()

delete()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we change the size of memory during run-time?

malloc()

calloc()

realloc()

sizeof()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Interpret (5*sizeof(float))

20 bytes

10 bytes

4 bytes

2 bytes

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Predict the output?

0

1

Undefined Behavior

Compilation Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dynamic memory in C++ is allocated from which type of memory?

Static

Heap

Stack

Program Code

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Functions and variables use _____ memory when created/accessed in C++.

Heap

Stack

Static

Program code

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?