400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 8)
-
4799 lượt thi
-
50 câu hỏi
-
60 phút
Danh sách câu hỏi
Câu 3:
The design of classes in a way that hides the details of implementation from the user is known as:
Xem đáp án
Chọn D
Câu 4:
Which of the following keywords do you think can be used when declaring static members in a class?
(i) Public
(ii) Private
(iii) Protected
(i) Public
(ii) Private
(iii) Protected
Xem đáp án
Chọn A
Câu 5:
I want a nonmember function to have access to the private members of a class. The class must declare that function:
Xem đáp án
Chọn A
Câu 6:
The ability to reuse objects already defined, perhaps for a different purpose, with modification appropriate to the new purpose, is referred to as
Xem đáp án
Chọn B
Câu 7:
What do you think is the outcome of calling a redefined non-virtual function using a base-class pointer?
Xem đáp án
Chọn B
Câu 20:
In the following program, how many times Base’s constructor will be called?
Xem đáp án
Chọn B
Câu 22:
In the following code, which of the following variables can be accessed in “Friend”?
Xem đáp án
Chọn D