You are here : Home >> All Company Study Materials >> Capgemini Archive >> Capgemini Programming Questions
Q56. A for-loop is used for which of the following purposes?
A. Decision-Making
B. Iteration
C. Recursion
D. None of these
Ans. B
Q57. There are two loops which are nested. This implies which one of the following?
A. Two loop, one after the other
B. Two loops, one inside the others
C. One loop with two different iteration counts
D. Two loops with the same iteration count
Ans. B
Q58. How will 47 be stored as an unsigned 8-bit binary number?
A. 10111101
B. 00101111
C. 10111000
D. 00101101
Ans. B
Q59. An integer X is saved as an unsigned 8-bit number, 00001011. What is X?
A. 22
B. 11
C. 10
D. None of these
Ans. B
Q60. What will be the output of the following pseudo-code statements:
integer a = 984, b=10
//float is a data-type to store real numbers.
float c
c = a / b
print c
A. 984
B. 98.4
C. 98
D. Error
Ans. C