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








