1Cho câu lệnh sau: A:=1; While A<=S do A:=A * 2; cho S=13 thì kết quả A ? A 16 B 13 C 8 D 26 2Cho câu lệnh sau: s:=0; For i:=1 to 5 do if i mod 2 = 0 then s:=s+i; cho biết kết quả s ? A 0 B 6 C 15 D 9 3Lặp có số lần không biết trước sử dụng câu lệnh? 4 oạn lệnh sau đây cho kết quả là gì? S:=1; While s < 10 do Begin writeln(s); s:=s+1; end; In ra các số từ 1 đến 9 In ra các số từ 1 đến 10 In ra các số 1 Không phương án nào đúng 5Cú pháp lệnh lặp WHILE – DO có dạng : WHILE<điều kiện>DO<câu lệnh>; Em hãy chọn phát biểu đúng trong các phát biểu dưới đây A Khi xác định được trước số lần lặp vẫn có thể dùng cấu trúc lặp WHILE – DO B Lệnh sau DO bao giờ cũng được thực hiện ít nhất một lần. C Biểu thức điều kiện được tính và kiểm tra, nếu biểu thức đó sai thìcâu lệnh sau DO được thực hiện. D điều kiện trong cấu trúc lặp WHILE – DO có thể là một biểu thức kiểu nguyên hoặc kiểu kí tự.

1 câu trả lời

1. A 2*2*2*2 = 16 

2 B tổng các số chẵn từ 1-5 

3 while với repeat

4 A

5 A

Câu hỏi trong lớp Xem thêm

II. Choose the word or phrase that best completes each unfinished sentence below. 6. Radioactive pollution is increasing the increased use of radioactivity. A. as B. since C. because of D. because 7. Do you think there would be less conflict in the world if all people the same language? A. spoke B. speak C. had spoken D. will speak 8. Unless you all of my questions, I can’t do anything to help you. A. answered B. answer C. would answer D. are answering 9. Singapore is famous for its …………. streets and green trees. A. cleanliness B. cleanly C. cleaning D. clean 10. If someone into the store, smile and say, “May I help you?” A. comes B. came C. come D. should come 11. It was said that the fish died a powerful toxin in the sea water. A. because of B. because C. since D. as a result 12. “Here’s my phone number”. “Thanks. I’ll give you a call if I some help tomorrow” A. will need B. need C. would need D. needed 13. is the festival celebrated? – Every year. A. When B. How often C. How D. What 14. The death rate would decrease if hygienic conditions improved. A. was B. is C. were D. had been 15. On Christmas Eve, most big cities, especially London are _______ with coloured lights across the streets and enormous Christmas trees. A. decorated B. hang C. put D. made 16. If she him, she would be very happy. A. would meet B. will meet C. met D. should meet 17. Nga is a beautiful girl; ______ , she’s kind - hearted. A. therefore B. however C. moreover D. otherwise 18. If I had enough money, I abroad to improve my English. A. will go B. would go C. went D. should have go to 19. She has read interesting book. A. a B. an C. the D. Ø 20. If it convenient, let’s go out for a drink tonight. A. be B. is C. was D. were

9 lượt xem
1 đáp án
18 giờ trước