
Dynamic Memory Allocation

Quiz
•
Computers
•
Professional Development
•
Hard
Purushotham M
Used 6+ times
FREE Resource
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
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
Similar Resources on Wayground
12 questions
React/Javascript Quizz

Quiz
•
Professional Development
10 questions
PENGENALAN PLC

Quiz
•
1st Grade - Professio...
12 questions
JDK,JRE,JIT & JVM MCQs

Quiz
•
Professional Development
10 questions
Basic of Computer

Quiz
•
University - Professi...
17 questions
Computational Thinking

Quiz
•
Professional Development
7 questions
Procesadores Intel 14a Gen Serie K y KF

Quiz
•
Professional Development
10 questions
FUNDAMENTALS OF COMPUTER

Quiz
•
Professional Development
10 questions
Basic Programming Kotlin

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade