Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Which of the following is the scope resolution operator?
A:
->>
B:
::
C:
*
D:
&
Answer: B
No answer description is available. Let's discuss.
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}];
Answer: E
No answer description is available. Let's discuss.
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: A
No answer description is available. Let's discuss.
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: D
No answer description is available. Let's discuss.
The 'break' statement is used to exist from
A:
a do loop
B:
a for loop
C:
a switch statement
D:
All of the above
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz