
Dynamic Memory Allocation
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Purushotham M
Used 7+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
8 questions
Convolutional neural network
Quiz
•
Professional Development
10 questions
C Programming
Quiz
•
Professional Development
15 questions
C Language Quiz-1
Quiz
•
University - Professi...
10 questions
BASIC OF COMPUTER
Quiz
•
Professional Development
10 questions
ไมโครคอนโทรลเลอร์ arduino เบื้องต้น
Quiz
•
Professional Development
10 questions
Moringa JavaScript Arrays
Quiz
•
5th Grade - Professio...
17 questions
pengenalan dasar cara mengetik
Quiz
•
Professional Development
8 questions
Class 4 Cycle 4
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
