More Mcqs Data Structure and Algorithms (Set 12)
More Mcqs Data Structure and Algorithms (Set 12)
12 of 14 sets
552. If a, b and c are integer variables with the values a=8, b=3 and c=-5. Then
what is the value of the arithmetic expression: 2 * b + 3 * (a-c)
A. 15
o m
B. 6
. c
C. -16
te
D. -1
a
Answer:A
q M
c
M
553. A global variable is a variable
A. declared in the main ( ) function
B. declared in any function other than the main ( ) function
C. declared outside the body of every function.
D. declared any where in the c program.
Answer:C
555. While incrementing a pointer, its value gets increased by the length of the data
type to which it points. This length is called
A. scale factor
B. length factor
C. pointer factor
D. increment factor
Answer:A
560. In selection sort of n elements,how many times is the swap function called in
the complete execution of the algorithm?
563. Each data item in a record may be a group item composed of sub-items; those
items which are indecomposable are called
A. Elementary items
B. Atoms
C. Scalars
D. All of above
Answer:D
566. When new data are to be inserted into a data structure, but there is no
available space; this situation is usually called
A. Housefull
B. Saturated
C. Underflow
D. Overflow
Answer:D
574. The Worst case occur in linear search algo- rithm when
A. Item is not in the array at all
B. Item is the last element in the array
C. Item is the last element in the array or is not there at all
D. None of above