Floating Point Issues - Find Output of Program Multiple Questions and Answers.




1.What will be the output of the program?
A. C++
B. C
C. Compiler error
D. None of above

2.What will be the output of the program?
A. 2 in 16bit compiler, 4 in 32bit compiler
B. 4 in 16bit compiler, 2 in 32bit compiler
C. 4 in 16bit compiler, 4 in 32bit compiler
D. 2 in 16bit compiler, 2 in 32bit compiler

3.What will be the output of the program?
A. 0
B. 0.0
C. 7.0
D. 7

4.What will be the output of the program?
A. 6.0
B. 6
C. 6.000000
D. Error: Prototype sqrt() not found.

5.What will be the output of the program?
A. 4, 4, 4
B. 4, 8, 8
C. 4, 8, 10
D. 4, 8, 12

»



Quick Links

GAT Subject



   Computer Science    English    Agriculture    Botany    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC    PPSC    NTS