Object Oriented Programming Using C++ – Section 4

41. _____ variables are declared outside of any statement block

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

Correct Answer: B. Global
Advertisement

42. The end of string is recognized by

A. the null character
B. the newline character
C. the $ sign
D. the / sign
E. None of the above

Correct Answer: A. the null character
Advertisement

43. Variable names known only to the procedure in which they are declared are ________

A. local
B. global
C. recent
D. internal

Correct Answer: A. local
Advertisement

44. Whis is true?

A. A derived class may have more than one base class
B. A base class may have more than one derived class
C. both (a) and (b)
D. neither (a) nor (b)

Correct Answer: C. both (a) and (b)
Advertisement

45. The keyword used to define a structure is

A. stru
B. stt
C. struct
D. unlimited

Correct Answer: C. struct
Advertisement

Leave A Comment?