Chọn các câu lệnh viết đúng.

ÔN TẬP CÂU LỆNH ĐIỀU KIỆN VÀ CÂU LỆNH LẶP XÁC ĐỊNH

Quiz
•
Instructional Technology
•
12th Grade
•
Hard
Quynh Luong
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
if x:=a+b then x:=x+1;
if a>b then max=a;
if a<b then max:=a; else max:=b;
if a>b then max:=a else max:=b;
if 5=6 then x:=100;
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Sau các câu lệnh X:=5; if X mod 3 = 2 then X:=X+1; giá trị của biến X sẽ là bao nhiêu?
5
6
7
8
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Sau các câu lệnh X:=5; if (X mod 3 = 0) or (X>=5) then X:=X*2; giá trị của biến X sẽ là bao nhiêu?
5
10
15
20
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Trong các câu lệnh bên dưới câu lệnh nào viết đúng cú pháp?
1. for i:=1 to 10; do x:=x+1;
2. for i:=10 to 1 do x:=x+1;
3. for i:=10 to 1 do x:=x+1;
4. for i:=1 to 10 for j:=1 to 10 do x:=x+1;
5. for i:=1 to 10 do for i:=1 to 10 do x:=x+1;
1, 3, 4
2, 4
2, 5
3, 5
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Trong câu lệnh lặp
for i:=1 to 10 do begin s:=s+i end;
câu lệnh ghép được thực hiện bao nhiêu lần?
Không lần nào.
1 lần.
2 lần.
10 lần.
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Sau khi thực hiện đoạn chương trình dưới đây, giá trị của biến i là bao nhiêu?
for i:=1 to 10 do
begin
s:=s+1;
end;
0
10
11
Không xác định
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho a:=2; b:=3; Kết quả sau khi thực hiện câu lệnh if a>b then writeln('a>b') else writeln('a<b');
a>b
a=b
a<b
a<>b
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
KT CN 10

Quiz
•
9th - 12th Grade
20 questions
[TIN 8] ÔN ĐỀ CƯƠNG (KT 15P TIẾT 1)

Quiz
•
12th Grade
15 questions
quizi 12

Quiz
•
12th Grade
12 questions
Công nghệ 4.0 K7 tinkercad

Quiz
•
1st - 12th Grade
16 questions
Ôn Tập Tin Học Khối 4

Quiz
•
4th Grade - University
10 questions
Câu hỏi về Lập trình Scratch

Quiz
•
4th Grade - University
10 questions
tin 12 bài 3: gth microsoft access

Quiz
•
12th Grade
10 questions
Câu hỏi trắc nghiệm Word

Quiz
•
10th Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade