Memory Allocation on C related Questions and Answers - Page 3

Question 21 : Which of the following header files must necessarily be included to use dynamic memory allocation functions?
1. stdlib.h
2. stdio.h
3. memory.h
4. dos.h
View Answer   Discuss with Members

Question 22 : Local variables are stored in an area called ___________
1. Heap
2. Permanent storage area
3. Free memory
4. Stack
View Answer   Discuss with Members

Question 23 : A condition where in memory is reserved dynamically but not accessible to any of the programs is called _____________
1. Memory leak
2. Dangling pointer
3. Frozen memory
4. Pointer leak
View Answer   Discuss with Members

Question 24 : Garbage collector frees the programmer from worrying about ___________
1. Dangling pointers
2. Creating new objects
3. Memory leak
4. Segmentation errors
View Answer   Discuss with Members

Question 25 : In the function realloc(), if the new size of the memory block is larger than the old size, then the added memory ___________
1. is initialized to junk values
2. is initialized to zero
3. results in an error
4. is not initialized
View Answer   Discuss with Members

Question 26 : The number of arguments taken as input which allocating memory dynamically using malloc() is ___________
1. 0
2. 1
3. 2
4. 3
View Answer   Discuss with Members

Question 27 : Which of the following is an example for non linear data type?
1. Tree
2. Array
3. Linked list
4. Queue
View Answer   Discuss with Members

Question 29 : The type of linked list in which the node does not contain any pointer or reference to the previous node:
1. Circularly singly linked list
2. Singly linked list
3. Circular doubly linked list
4. Doubly linked list
View Answer   Discuss with Members

Question 30 : When the pointer is NULL, then the function realloc is equivalent to the function ___________
1. malloc
2. calloc
3. free
4. alloc
View Answer   Discuss with Members


View 21 - 30 of 33 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter