Welcome To C++

Test your knowledge in C++amentals

1. Which of the following statements is incorrect?

A. None
B.Variables having visibility may not have any scope.
C.Variables having scope may not be visible.
D.Variable has scope & visibility.

2.Which of the following is a pointer passed implicitly as the first argument to all non-static member functions?

A.std::auto_ptr pointer
B.function pointer
C. None
D.this pointer

3. Which of the following keywords can’t appear inside a class definition??

A. static
B.virtual
C.friend
D.template

4. Which of the following parameter passing mechanism is/are supported by C++ but not in C?

A.All
B.Pass by address
C.Pass by reference
D.Pass by value

5.Which of the following operators doesn’t allow overloading?

A.Assignment operator.
B. Comparison operator
C.Dereference operator.
D.Scope resolution operator.


Back To Home