Difference Between array and calloc()

Dynamic Memory Allocation

Quiz
•
Computers
•
Professional Development
•
Hard
Purushotham M
Used 5+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 Quizizz
10 questions
แบบทดสอบก่อนเรียน อุปกรณ์คอมพิวเตอร์ หรือฮาร์ดแวร์

Quiz
•
Professional Development
10 questions
MEGASYSTEM - TECH

Quiz
•
Professional Development
15 questions
Foundations II. Challenge I

Quiz
•
Professional Development
15 questions
SDA UTS

Quiz
•
Professional Development
12 questions
Understanding of RAM

Quiz
•
Professional Development
17 questions
Java Basics

Quiz
•
Professional Development
12 questions
ITF - Quiz 3.3 - Memory and Disk Management

Quiz
•
Professional Development
9 questions
PreTrainingCollectionsArrays

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade