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


Correct Answer:  A. ‘7.15 pm’

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


Correct Answer:  A. you save many lines of code by not rewriting an identical structure definition in each function that uses it

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


Correct Answer:  D. None of the above

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


Correct Answer:  A. a stream from a file to the screen

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


Correct Answer:  C. {

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × 5 =