1. A programmer writes a program to find an element in the array A[5] with the elements: 8 30 40 45 70. The program is run to find a number “X”, that is found in the first iteration of binary search. What is the value of “X”?
A. 40
B. 8
C. 70
D. 3
Ans. A
2. What is an array?
A. An array is a series of elements of the same type in contiguous memory locations.
B. An array is a series of element
C. An array is a series of elements of the same type placed in non-contiguous memory locations
D. None of the mentioned
Ans. A
3. How many specifiers are present in access specifiers in class?
A. 1
B. 2
C. 3
D. 4
Ans. C
4. How many kinds of classes are there in c++?
A. 1
B. 2
C. 3
D. 4
Ans. C
5. A reserved area of the immediate access memory used to increase the running speed of the computer program.
A. Session memory
B. Bubble memory
C. Cache memory
D. Shared memory
Ans. C
