25 câu hỏi
Class members are public by default.
TRUE
FALSE
Friend functions have access only to public members of the class.
TRUE
FALSE
A function designed as public can be accessible by non-members of a class.
TRUE
FALSE
Friendship is commutative.
TRUE
FALSE
New and delete are operators.
TRUE
FALSE
We can implement generic classes using templates
TRUE
FALSE
Using operator overloading we can invent new operators.
TRUE
FALSE
Inheritance helps in making a general class into a more specific class.
TRUE
FALSE
A base class is never used to create objects.
TRUE
FALSE
Classes can be inherited privately.
TRUE
FALSE
It Is legal to return local variables from a function which returns by reference.
TRUE
FALSE
Constructors can be virtual like virtual destructors
TRUE
FALSE
C++ is a pure object oriented programming language.
TRUE
FALSE
In C++ one can define a function within another function.
TRUE
FALSE
A class encapsulates the implementation and interface of a user-defined data type and constitutes an abstract data type.
TRUE
FALSE
In c++ an identifier can begin with a $ sign.
TRUE
FALSE
“My Variable” is a valid identifier in C++.
TRUE
FALSE
In C++ one can get the memory addresses of variables and functions.
TRUE
FALSE
%= is not a operator in C++
TRUE
FALSE
std::cout is a standard input stream.
TRUE
FALSE
Preprocessor #define macro and inline functions use the same mechanism.
TRUE
FALSE
All C++ functions are recursive.
TRUE
FALSE
The ‘break’ keyword is only used in the switch..case statement.
TRUE
FALSE
The new operator returns the address and size of the memory block that it allocates.
TRUE
FALSE
The heap storage is used for local objects.
TRUE
FALSE
