Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DATA STRUCTURE USING C

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

The stack uses which policy out of the following

a)

LIFO

b)

FIFO

c)

FILO

d)

NONE

2.

Example of linear data structure except

a)

array

b)

tree

c)

queue

d)

stack

3.
_________________ is a collection of elements used to store the same type of data.
a)
Array
b)
Switch
c)
Case
d)
Loop
4.
Which of the following is NOT a Type of Data Structures?
a)
Arrays
b)
Tables
c)
Stacks
d)
Trees
5.

LIFO stands for

a)

List of Outputs

b)

Last in First Out

c)

First in Last Out

d)

None of them

6.

An array elements are always stored in ________ memory locations.

a)

sequential

b)

Random

c)

Sequential and Random

d)

None of the above

7.

_____________ specifies how we enter data into our programs and what type of data we enter.

a)

data type

b)

data

c)

datum

d)

all of above

8.

Array is ___________ data type.

a)

user defined

b)

primary

c)

derived

d)

all of above

9.

Pointer is __________ data type

a)

derived

b)

primary

c)

user defined

d)

none of above

10.
What is returned by values[5]?
a)
9
b)
12
c)
6
d)
8
11.
For the array:
float stats[3];
What is the range of the index?
a)
0 to 3
b)
0 to 2
c)
1 to 3
d)
0 to 4
12.
This is a:
a)
Linked list
b)
Stack
c)
2D array
d)
an array
13.

int nums[ ] =

{2, 3, 5, 8, 9, 11};

How would you access the fourth element in nums

a)

nums[8]

b)

nums[3]

c)

nums(4)

d)

nums(3)

14.

The format identifier ‘%i’ is also used for _____ data type.

a)

char

b)

int

c)

float

d)

double

15.

Eight Bits make up a

a)

byte

b)

megabyte

c)

kilobyte

d)

none