
Trắc nghiệm C tt
Authored by Nguyễn Ngọc Dũng
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau: int i; for(i=0; i0; i--); printf("Done");
Done in sau khi vòng lặp kết thúc
Done in 5 lần
Không in gì
Lỗi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp nào kiểm tra điều kiện trước khi chạy?
for, while
do...while
Cả A và B
Không vòng nào
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
while(0) sẽ:
Không chạy lần nào
Chạy 1 lần
Lặp vô hạn
Báo lỗi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả: int i=0; while(i5) printf("X"); else if(a>2) printf("Y"); else printf("Z");
X
Y
Z
Không in gì
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu if không có {} thì:
Chỉ câu lệnh ngay sau if được thực thi có điều kiện
Tất cả câu lệnh sau if được thực thi
Báo lỗi
Chạy ngẫu nhiên
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
switch chỉ so sánh với:
Giá trị nguyên hoặc ký tự
Chuỗi
float
Con trỏ
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả: int x=2; switch(x){ case 1: printf("One"); case 2: printf("Two"); case 3: printf("Three"); }
TwoThree
Two
Three
OneTwoThree
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?