Object Oriented Programming Using C++ – Section 7

36. Which of the following stream manipulators advances the cursor to the next line on the computer screen?

A. adin
B. advin
C. edlin
D. endl
E. lineadv

Correct Answer:  D. endl

37. 6.5 is a _____ constant

A. character literal
B. named literal
C. numeric literal
D. string literal

Correct Answer:  C. numeric literal

38. The time and memory involved in calling a function represent the function’s _____

A. prototype
B. overhead
C. cost
D. burden

Correct Answer:  B. overhead

39. Which function is most likely to have procedural cohesion?

A. main()
B. findSquareRoot()
C. getSaleSubtractDiscountAddTax()
D. openFiles()

Correct Answer:  A. main()

40. A pointer is

A. the address of a variable
B. an indication of the variable to be accessed next
C. a variable for storing addresses
D. the data type of an address variable

Correct Answer:  C. a variable for storing addresses

Leave A Comment?

twenty + four =