
DMA and Stacks
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
RAVIKANTH K
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Java Arrays
Quiz
•
University
11 questions
DSA Diaries 2.0
Quiz
•
University
10 questions
Intro-Computação_3.3
Quiz
•
University
10 questions
แบบทดสอบหุ่นยนต์ระดับกลางเบื้องต้น
Quiz
•
6th Grade - University
10 questions
Funciones y Procedimientos Almacenados SQL
Quiz
•
University
11 questions
C Language
Quiz
•
10th Grade - University
12 questions
Quiz 2 - Stack
Quiz
•
University
10 questions
Java Quiz 1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
