Object Oriented Programming Using C++ – Section 8

36. You can use the C++ _____ function to assign a value to a String variable

A. assign
B. copy
C. string
D. strcopy
E. strcpy

Correct Answer:  E. strcpy

37. A measure of the strength of the connection between two functions is

A. cohesion
B. coupling
C. dependence
D. subjection

Correct Answer:  B. coupling

38. The following statement where T is true and F is false T&&T||F&&T

A. is true
B. is false
C. is wrong
D. not applicable in C language
E. None of the above

Correct Answer:  A. is true

39. Which of the following statements declares a variable that can contain a decimal number?

A. dec payRate;
B. dec hourlyPay
C. float payRate
D. float hourlyPay;
E. None of the above

Correct Answer:  D. float hourlyPay;

40. The statement int num[2][3]={ {1,2}, {3,4}, {5, 6} };

A. assigns a value 2 to num[1][2] B. assigns a value 4 to num[1][2] C. gives an error message
D. assigns a value 3 to num[1][2]

Correct Answer:  C. gives an error message

Leave A Comment?

eighteen + fifteen =