wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Structures Quiz

Total questions: 44

Worksheet time: 33mins

Name
Class
Date
1.
It refers to collection of variables, possibly of several different data types connected in various ways.
a)
Data Structures
b)
Database
c)
Arrays
d)
Abstraction
2.
Which of the following is NOT a Type of Data Structures?
a)
Arrays
b)
Tables
c)
Stacks
d)
Trees
3.
Data that a variable can hold in a programming language, all programming language has a set of it.
a)
Data Types
b)
Algorithms
c)
Programming
d)
Variables
4.
Storage for data defined in terms of set of operations to be performed on the data 
a)
Arrays
b)
Variables
c)
Abstract Data Types
d)
Algorithms
5.
Finite set of instructions that specify a sequence of operations to be carried out 
a)
Algorithms
b)
Procedure
c)
Flowcharting
d)
Pseudocodes
6.
Are the data items presented to the algorithm. An algorithm has either no input or a predetermined number of them.
a)
Input
b)
Output
c)
Procedure
d)
Data
7.
Are the data items presented to the outside world as the result of the execution of a program based on the algorithm.
a)
Input
b)
Output
c)
Procedure
d)
Raw Data
8.
It can be used to encapsulate parts of an algorithm by localizing in one section of a program all the statements relevant to a certain aspect of a program.
a)
Algorithms
b)
Pseudocodes
c)
Flowcharting
d)
Procedures
9.
Ordered collection of data items of the same type referred to collectively by a single name 
a)
List
b)
Array
c)
Variables
d)
Constants
10.
It is used to access each location of arrays from 0 ranging up to the instantiated array 
a)
Indices
b)
Array
c)
Integer
d)
Square Bracket
11.
It is a mathematical object which arises in many physical problems, consists of m rows and n columns
a)
Matrix
b)
Array
c)
Excel
d)
Table
12.
Transpose - another operation that can be performed on matrices that computes for the transpose of matrix 
a)
TRUE
b)
FALSE
c)
MAYBE
d)
None of the Choices
13.
Linear Search checks every element of a list one at a time in sequence, also called as sequential search.
a)
TRUE
b)
FALSE
c)
MAYBE
d)
None of the Choices
14.

What do you call a collection of items stored at contiguous memory locations?

a)

Linked List

b)

Linear List

c)

Array

d)

Data Structure

15.

Which of the following are examples of Data Structures?

a)

Linear List

b)

Linked List

c)

Stacks

d)

Trees

e)

Pseudocodes

16.

A (a)   is a linear data structure, in which elements are not stored at contiguous memory locations.

17.

What does LIFO stand for?

a)

Last In First Out

b)

Least In Flow Out

c)

Last In Flow Out

d)

Last In First Object

18.

What do you this data structure classification in which the elements are stored/accessed on a non-linear order such as trees and graphs.

a)

trees

b)

linear

c)

non-linear

d)

graphs

19.

How do you call this special function that is used to map a given value with a particular key for faster access of elements?

a)

merge

b)

sorted array

c)

hash

d)

bubble

20.

(a)   are used to represent networks. The networks may include paths in a city or telephone network or circuit network.

21.

In linked list, the elements are using (a)   to linked the data item to the next address in memory location.

22.

Queue is using the order called FIFO while stack follows the order of LIFO or (a)   .

23.

The data type keyword NOT supported in C Language is:

a)

double

b)

pointer

c)

union

d)

enum

24.

What is the range of floating point number in C ?

a)

1.7 e -38 to 1.7 e +38

b)

3.4 e -38 to 3.4 e +38

c)

1.7 e -308 to 1.7 e +308

d)

3.4 e -308 to 3.4 e +308

25.

Under which data structure category does the Stack fall?

a)

Homogeneous

b)

Built-in

c)

Non linear

d)

Linear

26.

Which of these in NOT a linear data structure?

a)

Tree

b)

Stack

c)

Array

d)

Queue

27.

The data structure which expands and shrinks as per demand is called:

a)

Array

b)

Dynamic

c)

Linked list

d)

Non-linear

28.

The operation to arrange all elements in required order is called:

a)

Search

b)

Insertion

c)

Sorting

d)

Merging

29.

The two major factors of data structure complexity are:

a)

time and location

b)

type and size

c)

time and memory

d)

type and space

30.

Identify the correct statement:

a)

Stack is FIFO and Queue is LIFO

b)

Stack is LIFO and Queue is FIFO

c)

Stack and Queue are both LIFO

d)

Stack and Queue are both FIFO

31.

State the meaning of "void" keyword:

a)

No statement

b)

No function

c)

No program

d)

No value

32.

Example of linear data structure except

a)

array

b)

tree

c)

queue

d)

stack

33.
_________________ is a collection of elements used to store the same type of data.
a)
Array
b)
Switch
c)
Case
d)
Loop
34.

Which of these data structures is LIFO?

a)

Stack

b)

Queue

c)

Binary Tree

d)

Double linked list

35.

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)

36.
Which of the following is NOT a Type of Data Structures?
a)
Arrays
b)
Tables
c)
Stacks
d)
Trees
37.
Storage for data defined in terms of set of operations to be performed on the data 
a)
Arrays
b)
Variables
c)
Abstract Data Types
d)
Algorithms
38.

It use pointer to link nodes.

a)

Variable

b)

Link List

c)

Pointer

d)

Trees

39.

Act of adding values into a stack is called

a)

Popping

b)

Polling

c)

Pushing

d)

None

40.

The worst case occurs in linear search algorithm when ______________________

a)

Item is not in the array at all

b)

Item is somewhere in the middle of the array

c)

Item is the last element in the array or item is not there at all

d)

Item is the last element in the array

41.

Recognize the algorithm that does not divide the list.

a)

Merge sort

b)

Binary Search

c)

Linear Search

d)

Quick sort

42.

How do we arrange data?

a)

Sorting

b)

Seach

c)

Toggle

d)

None

43.

What is the complexity of Binary Search?

(a)  

44.

How do you search in O(1)?

(a)