Câu 1
Đáp án và lời giải
Đáp án: B
Đề gồm 25 câu trắc nghiệm một lựa chọn môn Ngôn ngữ lập trình C; cả 25 câu đều có đáp án. Chọn Luyện tập để biết đúng sai từng câu, hoặc Thi thử có đồng hồ để lấy điểm thang 10.
Đáp án: B
Đáp án: B
Đáp án: B
Đáp án: B
One can apply pointer arithmetic with reference variables.
Đáp án: B
Đáp án: A
Đáp án: B
Đáp án: A
Đáp án: B
Đáp án: B
Đáp án: B
Đáp án: A
Đáp án: B
Đáp án: A
Đáp án: A
Đáp án: A
Đáp án: B
Đáp án: B
A class object passed to a function template must overload any operators used on the class object by the template.
Đáp án: A
Đáp án: B
It is possible to overload a function template and an ordinary (non-template) function.
Đáp án: A
A class template may not be used as a base class.
Đáp án: B
Đáp án: A
Đáp án: B
What is the output of the following code? #include using namespace std; int main() { int a = 20; int &n = a; n = a++; a = n++; cout << a << "," << n << endl; system("pause"); }
Đáp án: D