Font size
WorksheetsDS QUIZ
Total questions: 10
Worksheet time: 7mins
Which of the following is a non linear data structure?
Array
Graph
Linked List
Stack
Card Sorter uses insertion sort technique for sorting?
True
False
int a, p1, *p2;
a=65;
p1=&a;
p2=&p1;
What is stored in p1?
(a)
What is the return type of calloc()?
void *
Pointer of allocated memory type
void **
int *
Match the following
b, c, a, e, d
e, d, a, c, b
c, d, e, a, b
c, e, c, a, b
ptr = (cast-type*) ? (n, element-size); Fill in the blank.
(a)
Can I increase the size of dynamically allocated array?
Yes
No
Why is calloc() function used for?
Allocates the specified number of bytes
Allocates the specified number of bytes and initializes them to zero
Increases or decreases the size of the specified block of memory and reallocates it if needed
Calls the specified block of memory for execution.
Dynamic Memory Allocation functions are defined in (a) header file?
The size of array need not be mentioned during declaration of array.
True
False
