BSNL TTA Computer Data Structure And Algorithms

BSNL TTA Computer Data Structure And Algorithms

BSNL TTA Computer Data Structure And Algorithms

Category –BSNL Online Test

Telegram-Join Us On Telegram

Attempt Free BSNL TTA Computer Data Structure And Algorithms Here. Read The Important BSNL MCQ From Below.

1) The Average case occur in linear search algorithm when

a. When item is somewhere in the middle of the array
b. When item is not in the array at all
c. When items is the last element in the array
d. When item is the last element in the array or is not there at all
Ans. a

2) Two main measures for the efficiency of an algorithm are

a. Processor and memory
b. Complexity and capacity
c. Time and space
d. Data and space
Ans. c

3) The memory address of the first element of an array is called

a. floor address
b. foundation address
c. First address
d. Base address
Ans. d

BSNL TTA Computer Data Structure And Algorithms

4) The complexity of Binary search algorithm is

a. O(n)
b. O(log n)
c. O(n2)
d. O(n log n)
Ans. b

5) The worst case occur in linear search algorithm when

a. Item is some where in the middle of the array
b. Item is not in the array at all
c. Item is the last element in the array
d. Item is the last element in the array or is not there at all
Ans. d

6) Finding the location of the element with a given value is:

a. Traversal
b. Search
c. Sort
d. None of the above
Ans. b

7) Which of the following case does not exist in complexity theory

a. Best case
b. Worst case
c. Average case
d. Null case
Ans. d

BSNL TTA Computer Data Structure And Algorithms

8) Which of the following data structures are indexed structure?

a. linear arrays
b. linked lists
c. Both
d. None
Ans. a

9) The space factor when determining the efficiency of algorithm is measured by

a. Counting the maximum memory needed by the algorithm
b. Counting the minimum memory needed by the algorithm
c. Counting the average memory needed by the algorithm
d. Counting the maximum disk space needed by the algorithm
Ans. a

10) The operation of processing each element in the list is known as

a. Sorting
b. Merging
c. Inserting
d. Traversal
Ans. d

BSNL TTA Computer Data Structure And Algorithms

11) Each array declaration need not give, implicitly or explicitly, the information about

a. the name of array
b. the data type of array
c. the first data from the set to be stored
d. the index set of the array
Ans. c

12) Which of the following data structure is not linear data structure?

a. Arrays
b. Linked lists
c. Both of these
d. None of these
Ans. d

13) Which of the following is not a limitation of binary search algorithm?

a. Must use a sorted array
b. requirement of sorted array is expensive when a lot of insertion and deletions are needed
c. there must be a mechanism to access middle element directly
d. binary search algorithm is not efficient when the data elements are more than 1000.
Ans. d

14) Which of the following is not the required condition for binary search algorithm?

a. The list must be sorted
b. there should be the direct access to the middle element in any sublist
c. There must be mechanism to delete and/or insert elements in list
d. None of these
Ans. c

BSNL TTA Computer Data Structure And Algorithms

15) The time factor when determining the efficiency of algorithm is measured by

a. Counting micro seconds
b. Counting the number of Key operations
c. Counting the number of statements
d. Counting the kilobytes of algorithm
Ans. b

16) The complexity of merge sort algorithm is

a. O(n)
b. O(log n)
c. O(n2)
d. O(n log n)
Ans. d

17) Which of the following data structure is linear data structure?

a. Trees
b. Graphs
c. Arrays
d. None of these
Ans. c

18) The indirect change of the values of a variable in one module by another module is called

a. internal change
b. inter-module change
c. side effect
d. Side-module update
Ans. c

BSNL TTA Computer Data Structure And Algorithms

19) The elements of an array are stored successively in memory cells because

a. By this way computer can keep track only the address of the first element and the addresses of other
b. the architecture of computer memory does not allow arrays to store other than serially
c. Both of these
d. Non of these
Ans. a

20) Linked lists are best suited

a. for relatively permanent collections of data
b. For the size of the structure and the data in the structure are constantly changing
c. for both of these situation
d. None of these situation
Ans. b

BSNL TTA Computer Data Structure And Algorithms

21) The complexity of the average case of an algorithm is

a. Much more complicated to analyze than that of worst case
b. Much more simpler to analyze than that of worst case
c. Sometimes more complicated and some other times simpler than that of worst case
d. None of these
Ans. a

22) Arrays are best data structures

a. for relatively permanent collections of data
b. For the size of the structure and the data in the structure are constantly changing
c. both of these situation
d. None these situation
Ans. a

BSNL TTA Computer Data Structure And Algorithms

23) The complexity of linear search algorithm is

a. O(n)
b. O(log n)
c. O(n2)
d. O(n log n)
Ans. a

24) Two dimensional arrays are also called

a. tables arrays
b. matrix arrays
c. Both
d. None
Ans. c

25) The complexity of Bubble sort algorithm is

a. O(n)
b. O(log n)
c. O(n2)
d. O(n log n)
Ans. c

BSNL TTA Computer Data Structure And Algorithms