
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
14 questions
Data Structure

Quiz
•
University
10 questions
C programozás - String és file kezelés

Quiz
•
University
10 questions
DS assgnmnet - 1

Quiz
•
University
12 questions
Array

Quiz
•
University
10 questions
Talent Next Java MCQ-1

Quiz
•
University
15 questions
C Programming Output Quiz

Quiz
•
University
10 questions
Programming for Problem Solving

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade