400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 6)
-
4800 lượt thi
-
50 câu hỏi
-
60 phút
Danh sách câu hỏi
Câu 18:
A ____ is a special member function used to initialize the data members of a class.
Xem đáp án
Chọn A
Câu 20:
Member functions of a class are normally made ___ and data members of a class are normally made ___ .
Xem đáp án
Chọn C
Câu 21:
Inheritance enables ___ which saves time in development , and encourages using previously proven and high quality software.
Xem đáp án
Chọn A
Câu 23:
A “has a” relationship between classes represents ___ and an “is a” relationship between classes represent ___ .
Xem đáp án
Chọn A
Câu 24:
A pure virtual function is specified by placing ___ at the end of its prototype in the class definition.
Xem đáp án
Chọn A
Câu 26:
The size of a class with no data members and member functions is ___ bytes
Xem đáp án
Chọn B
Câu 28:
Run-time or dynamic allocation of memory may be done using the C++ operator ___ .
Xem đáp án
Chọn A
Câu 29:
Operator overloading permits to extend the applicability of existing C++ operators so that they work with new ___ or ___.
Xem đáp án
Chọn A
Câu 34:
A program can use the address of any variable in an expression, except variables declared with the ___ storage class.
Xem đáp án
Chọn B
Câu 39:
Two or more functions may have the same name, as long as their ___ are different.
Xem đáp án
Chọn B
Câu 40:
A constructor with default arguments for all its parameters is called a ___ constructor.
Xem đáp án
Chọn C
Câu 46:
With private inheritance, public and protected members of the base class become ___ members of the derived class.
Xem đáp án
Chọn A
Câu 48:
The ___ block contains code that directly or indirectly might cause an exception to be thrown.
Xem đáp án
Chọn B