Home › MCQs › C Programming › Module 10: Dynamic Memory Allocation - Final Quiz
Back to Topics
PRACTICE • LEARN • GROW

Module 10: Dynamic Memory Allocation - Final Quiz MCQs

Solve topic-wise placement questions and improve your skills.

Module 10: Dynamic Memory Allocation - Final Quiz Progress
0 of 11 completed
0% Topic Track
You are viewing MCQs in preview mode. Log in to select options, submit answers, and track your progress.
Log In to Answer
1
What is the critical behavioral difference between malloc() and calloc()?
A. malloc allocates on the stack; calloc allocates on the heap
B. malloc leaves allocated memory uninitialized (containing random garbage); calloc initializes every allocated byte to zero
C. malloc cannot be freed; calloc can be freed
D. calloc takes one argument; malloc takes two

Question Palette

Answered
Current
Not Attempted
Wrong

Quick Actions

Yukti Mascot