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 Lập trình C/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
Which of the following is a valid function call (assuming the function exists)?
Đáp án: C
Which of the following is a complete function?
Đáp án: B
Đáp án: B
Đáp án: C
void main()
{
int x = 0;
switch(x)
{
case 1: printf( "One" );
case 0: printf( "Zero" );
case 2: printf( "Hello World" );
}
}
What is the result of the following code?
Đáp án: D
Đáp án: D
Đáp án: C
Đáp án: A
Đáp án: C
Đáp án: B
Đáp án: B
Đáp án: B
Đáp án: A
Đáp án: D
Đáp án: B
Đáp án: A
Đáp án: B
Which of the following is a two-dimensional array?
Đáp án: B
Đáp án: A
Which of the following gives the memory address of the first element in array arr, an array with 100 elements?
Đáp án: B
Đáp án: B
Đáp án: C
Đáp án: B