wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSC 105 Data Structures and Algorithms Midterm Exam

Total questions: 50

Worksheet time: 35mins

Name
Class
Date
1.

The study of data structures helps to understand the basic concepts involved in organizing and storing data as well as the relationship among the data sets.

a)

TRUE

b)

FALSE

2.

Data structures helps to determine the way information is stored, retrieved and modified in a computer’s memory.

a)

TRUE

b)

FALSE

3.

(a)   is a branch of computer science.

4.

________________is the structural representation of logical relationship between data elements.

a)

Data structure

b)

Abstract Data structure

c)

Structure

d)

Data

5.

______________are the building blocks of any program or the software.

a)

Data

b)

Data structures

c)

Structures

d)

Data types

6.

can be defined as an elementary value or the collection of values, for example, student's name and its id are the data about the student

a)

Information

b)

Data

c)

Data structures

d)

Smallest Value

7.

Data items which have subordinate data items

a)

Data

b)

Structures

c)

Group Items

d)

Data Structures

8.

can be defined as the collection of various data items

(a)  

9.

is a collection of various records of one type of entity

(a)  

10.

represents the class of certain objects. it contains various attributes

a)

File

b)

data

c)

Record

d)

Attribute and Entity

11.

is a single elementary unit of information representing the attribute of an entity.

(a)  

12.

The following are Need for Data Structure except

a)

It gives different level of organization data

b)

It tells how data can be stored and accessed in its elementary level.

c)

Provide a means to manage huge amount of data efficiently.

d)

Provide slow and inaccurate searching and sorting of data.

13.

Data structure is designed such that it operates correctly for all kinds of input, which is based on the domain of interest.

a)

Correctness

b)

Efficiency

c)

Usability

d)

Robustness

14.

Data structure also needs to be efficient. It should process the data at high speed without utilizing much of the computer resources such as memory space.

a)

Efficiency

b)

Correctness

c)

Usability

d)

Robustness

15.

Robustness is a features needed all computer programmers wish to produce software that generates correct output for every possible input provided to it, as well as execute efficiently on all hardware platforms.

a)

True

b)

False

16.

Developing software projects involves large software systems that work or execute correctly and efficiently for many years.

a)

Adaptability

b)

Reusability

c)

Robustness

17.

It is a known fact that the programmer requires many resources for developing any software, which makes it an expensive enterprise.

a)

Robustness

b)

Adaptability

c)

Reusability

18.

consist of the numbers and the characters which are built in programs

a)

Primitive data structures

b)

Non-primitive data structures

19.

These data structures cannot be operated or manipulated directly by the machine level instructions.

a)

Primitive Data Structure

b)

Non-primitive Data Structure

20.

A data structure that maintains a linear relationship among its elements

a)

Linear Data Structure

b)

Non-linear Data Structure

21.

is a kind of data structure in which data elements are not arranged in a sequential order

a)

Linear Data Structure

b)

Non-linear Data Structure

22.

refers to an orderly arrangement of data elements.

(a)  

23.

It has only one row of elements.

a)

One-dimensional Array

b)

Two-dimensional Array

c)

Multidimensional Array

24.

It consists of multiple rows and columns of data elements.

a)

One-dimensional Array

b)

Two-dimensional Array

c)

Multidimensional Array

25.

can be defined as array of arrays

a)

One-dimensional Array

b)

Two-dimensional Array

c)

Multidimensional Array

26.

is a data structure in which each data element contains a pointer or link to the next element in the list

a)

Link of structures

b)

data list

c)

linked list

27.

is a linear data structure in which insertion and deletion of elements are done at only one end,

a)

stack

b)

link

c)

list

28.

is a first-in, first-out (FIFO) data structure in which the element that is inserted first is the first one to be taken out.

(a)  

29.

is a non-linear data structure in which data is organized in branches

(a)  

30.

A graph is also a non-linear data structure.

a)

True

b)

False

31.

is also a non-linear data structure and is considered as a mathematical structure, which is composed of a set of vertexes and a set of edges.

a)

Trees

b)

Graphs

c)

queue

d)

Stacks

32.

In (a)   data structure the size of the structure is fixed.

33.

In (a)   data structure the size of the structure in not fixed and can be modified during the operations performed on it.

34.

It means to access each data item exactly once so that it can be processed. For example, to print the names of all the students in a class

a)

Traversing

b)

Searching

c)

Inserting

d)

Deleting

35.

It is used to find the location of one or more data items that satisfy the given constraint.

a)

Traversing

b)

Searching

c)

Inserting

d)

Deleting

36.

It is used to add new data items to the given list of data items.

a)

Traversing

b)

Searching

c)

Inserting

d)

Deleting

37.

It means to remove (delete) a particular data item from the given collection of data items.

a)

Traversing

b)

Searching

c)

Inserting

d)

Deleting

38.

Data items can be arranged in some order like ascending order or descending order depending on the type of application.

a)

Inserting

b)

Deleting

c)

Sorting

d)

Merging

39.

Lists of two sorted data items can be combined to form a single list of sorted data items.

a)

Inserting

b)

Deleting

c)

Sorting

d)

Merging

40.

The word (a)   refers to the fact that the data and the basic operations defined on it are being studied independently of how they are implemented.

41.

is a step-by-step procedure

(a)  

42.

Algorithm to search an item in a data structure

(a)  

43.

Algorithm to sort items in a certain order.

(a)  

44.

Algorithm to insert item in a data structure.

(a)  

45.

Algorithm to update an existing item in a data structure.

(a)  

46.

Algorithm to delete an existing item from a data structure.

(a)  

47.

The Algorithm designed must be just plain instructions that can be implemented in any language, and yet the output will be same, as expected. Choose your Answer from the Choices given.

(a)  

48.

The algorithm must be simple, generic and practical, such that it can be executed upon will the available resources. It must not contain some future technology, or anything. Choose your answer from the choices given.

(a)  

49.

The algorithm must clearly define what output will be yielded and it should be well-defined as well. Choose your answer from the given choices.

(a)  

50.

Algorithm should be clear in all aspects and must lead to only one meaning.

(a)