Thứ sáu, 26/04/2024
IMG-LOGO
Trang chủ Trắc nghiệm bằng lái IT Test 400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án

400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án

400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 1)

  • 3481 lượt thi

  • 50 câu hỏi

  • 60 phút

Danh sách câu hỏi

Câu 1:

Trong cấu trúc chương trình C++, lệnh #include dùng để làm gì?

Câu 3:

Lệnh cout trong C++ có tác dụng gì?

Câu 4:

Lệnh cin trong C++ có tác dụng gì?

Câu 9:

Chú thích nào sau đây là chính xác?

Câu 10:

Cách khai báo biến nào sau đây là đúng?

Câu 12:

What is the only function all C programs must contain?

Câu 15:

Which of the following is a correct comment?

Câu 18:

Which of the following is true?

Câu 20:

Evaluate !(1 && !(0 || 1))

Câu 21:

Which of the following shows the correct syntax for an if statement?

Câu 23:

When does the code block following while(x<100) execute?

Câu 24:

Which is not a loop structure?

Câu 26:

Which is not a proper prototype?

Câu 29:

Which of the following is a complete function?

Câu 31:

What keyword covers unhandled possibilities?

Câu 32:

What is the result of the following code?
Media VietJack

Câu 41:

Which of the following is a properly defined struct?

Câu 42:

Which properly declares a variable of struct foo?

Câu 43:

Which of the following correctly declares an array?

Câu 45:

Which of the following is a two-dimensional array?

Câu 48:

Which of the following is a string literal?

Câu 49:

What character ends all strings?

Câu 50:

Which of the following reads in a string named x with one hundred characters?

Bắt đầu thi ngay

Bài thi liên quan


Có thể bạn quan tâm


Các bài thi hot trong chương