wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DS QUIZ

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Which of the following is a non linear data structure?

a)

Array

b)

Graph

c)

Linked List

d)

Stack

2.

Card Sorter uses insertion sort technique for sorting?

a)

True

b)

False

3.

 int a, p1, *p2;

    a=65;

    p1=&a;

    p2=&p1;

What is stored in p1?

(a)  

4.

What is the return type of calloc()?

a)

void *

b)

Pointer of allocated memory type

c)

void **

d)

int *

5.

Match the following

a)

b, c, a, e, d

b)

e, d, a, c, b

c)

c, d, e, a, b

d)

c, e, c, a, b

6.

ptr = (cast-type*)     ?     (n, element-size); Fill in the blank.

(a)  

7.

Can I increase the size of dynamically allocated array?

a)

Yes

b)

No

8.

Why is calloc() function used for?

a)

Allocates the specified number of bytes

b)

Allocates the specified number of bytes and initializes them to zero

c)

Increases or decreases the size of the specified block of memory and reallocates it if needed

d)

Calls the specified block of memory for execution.

9.

Dynamic Memory Allocation functions are defined in (a)   header file?

10.

The size of array need not be mentioned during declaration of array.

a)

True

b)

False