Object Oriented Programming Using C++ – Section 4

31. To send output to a file, you need to include the _____ header file in your program A.file.h

B. fstream.h
C. iomanip.h
D. iostream.h
E. of stream.h

Correct Answer: B. fstream.h
Advertisement

32. A C++ _____ is a program that runs in a DOS window

A. algorithm
B. cast application
C. console application
D. source application

Correct Answer: C. console application
Advertisement

33. A difference, between reference variables and pointers is that

A. reference variables are easier to use
B. pointers are easier to use
C. reference variables are more flexible
D. no difference exists between reference variables and pointers

Correct Answer: A. reference variables are easier to use
Advertisement

34. A ‘C function does not contain

A. a function header
B. argument declarations
C. other ‘C’ functions
D. function body
E. None of the above

Correct Answer: C. other ‘C’ functions
Advertisement

35. _____ variables remain in memory until the program ends

A. Area
B. Global
C. Local
D. Reference
E. Value

Correct Answer: B. Global
Advertisement

Leave A Comment?