Dynamic Allocation

Quiz
•
Computers
•
University
•
Medium
Abhishek Pandey
Used 17+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which header file is mandatory for DYNAMIC MEMORY ALLOCATION
stdio.h
math.h
stdlib.h
dos.h
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is correct about calloc() function?
Allocates the space for elements of an ARRAY
initialize the elements to 0
If the space is insufficient then return NULL pointer
ALL of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
calloc and malloc function is used for
dynamic memory allocation
static memory allocation
Both static memory allocation and dynamic memory allocation
ALL
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
void * malloc(size_t n) returns
Pointer to n bytes of uninitialized storage
NULL if the request can be satisfied
Nothing
All
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is static memory allocation
Array
stack
linked list
ALL
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In function free(p), p is a
int
Pointer returned by malloc()
Pointer returned by calloc()
Pointer returned by malloc() & calloc()
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Memory allocation using malloc() is done in?
Static area
Heap area
Stack area
Both Stack & Heap area
8.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which one is used during memory deallocation in C?
free(p);
terminate(p);
delete(p);
remove(p);
Similar Resources on Wayground
10 questions
Operating System and Software -2 grc

Quiz
•
University
10 questions
OS - Assessment 06

Quiz
•
University
10 questions
Memory Management

Quiz
•
University
9 questions
Data structures

Quiz
•
University
10 questions
C++ Programming Quiz

Quiz
•
University
13 questions
DS_CSE1_QUIZ_on_18_april_2023

Quiz
•
University
10 questions
Recap - Computer Memory

Quiz
•
University
8 questions
Chapter 3: Storage devices and media

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University