Computer Science - Object Oriented Programming Using C++

36. 

Which of the following is(are) invalid string constant(s)?

A. '7.15 pm'
B. "i like e"
C. "7.3el2"
D. "1234el2"
E. None of the above

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

37. 

You define a structure type globally because _____

A. you save many lines of code by not rewriting an identical structure definition in each function that uses it
B. you will never change its definition
C. it is required in C++
D. All of the above

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

38. 

Overloaded functions are required to

A. have the same return type
B. have the same number of parameters
C. perform the same basic functions
D. None of the above

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

39. 

Redirection redirects

A. a stream from a file to the screen
B. a file from a device to a stream
C. a device from the screen to a file
D. the screen from a device to a stream

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

40. 

You mark the beginning of a function's block of code with the _____

A. /
B. *
C. {
D. }
E. either (c) or (d) can be used

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.