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 Quizizz
10 questions
Instrucțiuni repetitive

Quiz
•
9th - 12th Grade
10 questions
Bài 13: Thực hành định dạng văn bản

Quiz
•
5th Grade - University
20 questions
KT15p bài 9,13,14_CN12-HKI

Quiz
•
12th Grade
14 questions
Câu hỏi về hóa học

Quiz
•
3rd Grade - University
10 questions
Hoạt động luyện tập

Quiz
•
12th Grade
17 questions
Nhiếp ảnh 12

Quiz
•
12th Grade
20 questions
Tin học 4- Ôn tập HK2 (24-25)

Quiz
•
5th Grade - University
16 questions
Bài 7: TRÌNH BÀY VÀ IN TRANG TÍNH

Quiz
•
10th Grade - University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Instructional Technology
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade