Académique Documents
Professionnel Documents
Culture Documents
1. C. 0
2. C. main()
3. A. { }
4. B. ;
5. C. /* Comment */
6. B. real
7. D. ==
9. B. &&
10. A. True
ANS
11. a. True
13. b. False
15. a. Any modifications to the variables x & y from inside the function will not have any
effect outside the function
17. b. The location of variable in memory is passed to the function so that it can use the same
memory area for its processing
20. d. 10 2.5
Answers
21. c. Equals to operator mistake
23. In while structure condition is tested before executing statements inside loop whereas in do
structure condition is tested before repeating the statements inside loop
24. b. Until
25. d. Switch
26. d. Switch
28. a. Both of the above code fragments have the same behaviour
Answers
31. a. True
34. d. <sstream>
35. c. <sstring>
37. b. The program worked as expected without any errors during its execution
38. c. readable
40 b. Local variables are declared inside a function and accessible within the
function on
Answers
42. c. <<
43. b. Both are similar but endl additionally performs flushing of buffer
44. c. Cout
45. a. Cin
46. b. Monitor
47. a. Keyboard
49. d. >>