Computer Science - Object Oriented Programming Using C++

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

Answer: Option E

Explanation:

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

37. 

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

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

Answer: Option B

Explanation:

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

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

Answer: Option A

Explanation:

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

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

Answer: Option D

Explanation:

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

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]

Answer: Option C

Explanation:

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