Computer Science - Object Oriented Programming Using C++

6. 

You have assigned the address of Value to the pointer P, Which statement will display the value stored in Value?

A. cout<<P;
B. cout<<*Value;
C. cout<<&P;
D. cout<<*P;

Answer: Option D

Explanation:

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

7. 

A constructor initialization list is preceded by

A. a. semicolon
B. a colon
C. two colons
D. a space

Answer: Option B

Explanation:

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

8. 

In C++, a function contained within a class is called

A. a member function
B. an operator
C. a class function
D. a method

Answer: Option A

Explanation:

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

9. 

Which of the following statements will create and initialize a feelnfo array named fee?

A. fee feeInfo = {{0}, {0}};
B. fee as feeInfo = 0, 0;
C. feeInfo fee = 0, 0;
D. feeInfo fee = [{0}, {0}];
E. feeInfo fee = {0,0};

Answer: Option E

Explanation:

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

10. 

Which of the following is the scope resolution operator?

A. ->>
B. ::
C. *
D. &

Answer: Option B

Explanation:

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