wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data structure test1

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

Data structure can be of two types namely___________

a)

Simple and Nested

b)

Simple and Compound

c)

Sequential and random

d)

All of the above

2.

_________ is an example of non linear data structure

a)

Sorting

b)

Stack

c)

Tree

d)

Queue

3.

Compound Data structure can be ______ & _______

a)

Simple and Nested

b)

Linear and Non Linear

c)

Sequential and random

4.

Array or linear list comes under the category of______

a)

Compound Data Structure

b)

Simple Data Structure

c)

Random Data Structure

d)

None of these

5.

Python built-in data structures are

a)

integer,float,string

b)

list,tuple,dictionary,sets

c)

Tree, graph

6.

Arranging elements of a data structure in increasing or decreasing order is known as_________

a)

Searching

b)

Arrangement

c)

Sorting

d)

Indexing

7.

The examples of Linear Data Structures are

a)

Stacks,Queues,Linked list

b)

int,float,complex

c)

Operators,tokens,punctuators

d)

Tree, graph

8.

In Stack Insertion and deletion of an element is done at single end called ________

a)

Bottom

b)

Top

c)

Start

d)

Last

9.

Stacks follows____________ order

a)

FIFO (First In First Out )

b)

LIFO (Last In First Out)

c)

Random

d)

FILO(First In Last Out)

10.

Main Operations in Stacks are Called

a)

Insertion and deletion

b)

Push and Pop

c)

append and insertion

d)

append and pop

11.

In stack we can not insert an element in between the elements that are already inserted.

a)

True

b)

False

12.

Queue follows____________ order

a)

FIFO (First In First Out )

b)

LIFO (Last In First Out)

c)

Random

d)

FILO(First In Last Out)

13.

Insertion in Queue is done at_____ end , and deletion is at _______ end

a)

start, last

b)

front, rear

c)

rear, front

d)

begin, stop

14.

In Queue we can not insert an element in between the elements that are already inserted but we can delete it.

a)

True

b)

False

15.

While implementing Stack using list when we want to delete element we must use pop function as__________

a)

list.pop(0)

b)

list.pop(pos)

c)

list.pop()

d)

list.pop(1)

16.

While implementing Queue using list when we want to delete element we must use pop function as__________

a)

list.pop(pos)

b)

list.pop(0)

c)

list.pop()

d)

list.pop(1)

17.

The process of Visiting each element in any Data structure is termed as ____________

a)

Traversing

b)

Searching

c)

Movement

d)

Visiting

18.

Searching of any element in a data structure can be done in 2 ways _________ and ________

a)

Sequential and random

b)

linear and non linear

c)

linear and binary

d)

linear and random

19.

Main Operations in Queue are Called

a)

Enqueue and Dequeue

b)

Append and Insertion

c)

Push and Pop

d)

append and traverse

20.

___________________ is a way to represent data in memory.

a)

Data Handling

b)

Data Structure

c)

Data Dumping

d)

Data Collection