
DMA and Stacks

Quiz
•
Computers
•
University
•
Hard
RAVIKANTH K
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to delete the allocated memory space?
Malloc()
free()
Calloc()
None
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
void main() {
int ptr = (int )malloc(sizeof(int));
*ptr = 10;
free(ptr);
p = 5;
printf("%d", ptr);
}
Compilation error
5
0
Garbage value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function should be used to free the memory allocated by calloc() ?
dealloc();
malloc(variable_name, 0)
free();
memalloc(variable_name, 0)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How to increase the size of dynamically allocated array?
realloc(variable_name, value);
malloc(variable_name, value);
calloc(variable_name, value);
I dont know
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is correct about calloc() function?
Allocates the space for elements of an array.
Initializes the elements to zero.
If space is insufficient returns a NULL pointer.
All of these
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the functionality of realloc()?
Change the location of memory allocated by malloc() or calloc().
Reallocates memory deleted by free() function.
It is used to modify the size of the previously allocated memory space.
None of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Process of inserting an element in stack is called ____________
Create
Push
Evaluation
Pop
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
BCSC0006 - Quiz 1 - Arrays

Quiz
•
University
13 questions
Revision 2 MCA

Quiz
•
University
10 questions
Computer Architecture

Quiz
•
University
9 questions
Scratch Vocabulary

Quiz
•
3rd Grade - University
10 questions
IT Quiz Round 3

Quiz
•
University
8 questions
Operating Systems - Processes

Quiz
•
University
15 questions
Club Excel - Core Member Recruitment 2024

Quiz
•
University
10 questions
DS UNIT 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University