Object Oriented Programming Using C Plus Plus - Study Mode

[#506] Which of the following will store the letter H in a Character variable named initial?
Correct Answer

(B) initial = 'H'

[#507] The statement float values[]={3.14, -7.86, 36.96, 4.87}
Correct Answer

(A) assigns 36.96 to values[2]

[#508] You have declared an integer pointer called point You have also declared an integer called number. Which statement is the correct format?
Correct Answer

(C) point = &number

[#509] A function that is prototyped as double calculate(int num)
may ______
Correct Answer

(D) neither (a) nor (b)

[#510] Which of the following will increase the value stored in the first element of the fee array by 2?
Correct Answer

(D) fee[0].amount = fee[0].amount + 2