R4RIN
Articles
Java 8
MCQS
Data structure MCQ Quiz Hub
Data Structure and Algorithms (DSA) set 1
Choose a topic to test your knowledge and improve your Data structure skills
1. It exports a set of operations
true, false
false, true
true, true
false, false
2. A graph is said to be complete if there is no edge between every pair of vertices.
true, false, true
true, true, false
true, true, true
false, true, true
3. Space Complexity iii) Is the strategy guaranteed to find the solution when there in one.
A. a-iii, b-ii, c-i
a-i, b-ii, c-iii
a-iii, b-i, c-ii
a-i, b-iii, c-ii
4. The time complexity of binary search is O(logn).
true, false
false, true
false, false
true, true
5. A graph is said to be complete if there is an edge between every pair of vertices.
A. true, true
false, true
false, false
true, false
6. Nodes that are not root and not leaf are called as internal nodes.
true, true
true, false
false, true
false, false
7. A node is child node if out degree is one.
true, true
true, false
false, true
false false
8. Insertion b) Deletion c) Retrieval d) Traversal
only a,b and c
only a and b
all of the above
None of the above
9. In strictly binary tree, the out-degree of every node is either o or 2.
true, false
false, true
true, true
false, false
10. The complexity of the average case of an algorithm is
much more complicated to analyze than that of worst case
much more simpler to analyze than that of worst case
sometimes more complicated and some other times simpler than that of worst case
None of the above
11. The Average case occur in linear search algorithm
when item is somewhere in the middle of the array
when item is not in the array at all
when item is the last element in the array
when item is the last element in the array or is not there at all
12. Which of the following case does not exist in complexity theory
best case
worst case
average case
null case
13. The space factor when determining the efficiency of algorithm is measured by
counting the maximum memory needed by the algorithm
counting the minimum memory needed by the algorithm
counting the average memory needed by the algorithm
counting the maximum disk space needed by the algorithm
14. The time factor when determining the efficiency of algorithm is measured by
counting microseconds
counting the number of key operations
counting the number of statements
counting the kilobytes of algorithm
15. Computers are used for processing numerical data called _______ data.
float
local
character
non-local
16. Each programming language contains a ______ set that is used to communicate with the computer.
character
integer
float
numeric
17. Finite sequence S of zero or more characters is called _______.
array
list
string
block
18. String with zero characters is called ________ string.
null
binary
totalled
list
19. A computer which can access an individual byte is called a ________ machine.
memory addressable
byte addressable
bit
byte
20. Groups of consecutive elements in a string, such as words, phrases and sentences are called ________.
main strings
substring
index
block
21. The number of characters in a string is called its ______.
length
breath
width
none
22. ______ operation of word processing involves replacing one string in the text by another.
insertion
deletion
searching
replacement
23. _______ is the problem of deciding whether or not a given String pattern P appears in a text T.
pattern matching
searching
sorting
deletion
24. _____ is a linearly ordered sequence of memory cells.
node
link
variable
null
25. Each node in a linear list contains an item called _______ which points to the next node in the list.
node
link
variable
null
26. ____ is a variable whose length may vary during the execution, but the length cannot exceed a maximum values defined before the program is executed.
dynamic
static
semi static
global
27. In _______ storage, each cell is divided into two parts---- the path stores a single character, while the second part contains the address of the cell containing the next character.
. fixed length
linked list
variable length
sequential
28. If string 1 = John, and string 2 = Rivers are merged, the process is called ----
insertion
deletion
concatenation
replacement
29. _____ is a variable whose length may vary during the execution of a program.
dynamic
static
semi static
global
30. _____ is a structure used to represent the linear relationship between elements by means of sequential memory locations.
linked list
array
pointer
stack
31. A ______ is a list of a finite number of homogeneous data elements.
linear array
pointer
linked list
tree
32. The number of elements n is called the length or _____ of the array.
upper bound
lower bound
size
variable
33. The number K in A[K] is called the subscript or the ________.
size
index
variable
constant
34. Which of the following items are not part of the array declaration?
name of the array
data type of the array
index set of the array
length of the array
35. Programming languages like FORTRAN and PASCAL allocate memory space for arrays ______
dynamically
statically
successively
alternatively
36. The process of accessing and processing each element of an array A, exactly once is called _______.
deleting
inserting
traversing
searching
37. ______ refers to the operations of rearranging the elements of an array A so that they are in increasing order.
searching
sorting
traversing
inserting
38. Two dimensional arrays are sometimes called _______ arrays.
integer
boolean
matrix
real
39. ______ is a list in which the order of the items is significant, and the items are not necessarily sorted.
_ordered list
indexed list
sequential list
unordered list
40. Representation of a two dimensional as one single column of rows and mapping it sequentially is called _______ representation.
row-major
row
column-major
column
41. Matrices with relatively high proportion of zero entries are called ______ matrices.
triangular
diagonal
sparse
adjacency
42. _____ arrays are where the elements in the different arrays with the same subscript belongs to the same record.
one dimensional
parallel
two dimensional
static
43. ____ arrays are where the elements in the different arrays with the same subscript belongs to the same record.
one dimensional
two dimensional
two dimensional
static
44. Records can be stored in an area of memory called _______ memory.
dynamic
static
simple
parallel
45. Records can be stored in an area of memory called _______ memory.
dynamic
static
simple
parallel
46. A matrix in which non-zero entries can only occur on the diagonal or on elements immediately above or below the diagonal, is called ______ matrix.
triangular
tridiagonal
sparse
simple
47. Elements of of an arrays are accessed by
accessing fuction in built in data structure
mathematical fuction
index
none of the above
48. Array is a
index data structure
non liturenear data structure
complx data structure
None of the above
49. Row -major order in two -dimentional array refers to an arrangement where
all elements of a row are stored in memory in sequence followed by next row in sequence,and so on
all elements of row are stored in memory in sequence followed by next column in sequence ,and so on
all elements of row are stored in memory in sequence followed by next column in sequence
50. Array is
data in physical order
data in logical order
both a& b
None of the above
Submit