
Củng cố câu lệnh IF...THEN

Quiz
•
Computers
•
1st - 12th Grade
•
Hard
nguyen Bich
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Pascal, câu lệnh điều kiện nào sau đây được viết sai?
if a := 1 then a := a + 1;
if a > b else write(a);
if (a mod 2) = 0 then write('So khong hop le');
if x = y; then writeln(y);
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh điều kiện dạng đầy đủ là:
If < Điều kiện> then < Câu lệnh 1 >; Else < Câu lệnh 2 >;
If < Điều kiện> then < Câu lệnh >;
If < Điều kiện> then < Câu lệnh 1 >, < Câu lệnh 2 >;
If < Điều kiện > then < Câu lệnh 1 > Else < Câu lệnh 2 >;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Hãy cho biết giá trị của biến X bằng bao nhiêu sau khi thực hiện câu lệnh:
if (45 mod 3) = 0 then X:=X+2;
( Biết rằng trước đó giá trị của biến X = 5)
5
7
9
11
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Ta có 2 lệnh sau:
x:= 8;
if x>5 then x:= x +1;
Giá trị của x là bao nhiêu?
5
8
9
6
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Các câu lệnh Pascal nào sau đây viết đúng?
if x:= 5 then a = b;
if x > 4 then a:= b;
If x > 4 then a:=b; m:=n;
If x > 4 then a:=b;else m:=n;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để tìm giá trị lớn nhất của 2 số a, b thì ta viết:
Max:=a; If b>Max then Max:=b;
Max:=b; If a>Max then Max:=a;
If (a>b) then Max:=a else Max:=b;
Cả 3 câu đều đúng.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
IF a>8 THEN b:=3 ELSE b:=5;
Khi a nhận giá trị là 0 thì b nhận giá trị nào?
0
5
8
3
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Ôn tập HKII Tin 4

Quiz
•
4th Grade
10 questions
Bài 26-Hàm trong Python

Quiz
•
10th Grade
10 questions
Hoạt động khởi động

Quiz
•
1st - 5th Grade
10 questions
CỦNG CỐ BÀI 21 CÂU LỆNH LẶP WHILE

Quiz
•
10th Grade
10 questions
11 - IF ELSE

Quiz
•
11th Grade
10 questions
Tin 8 HKII - Luyện tập While do (tiết 1)

Quiz
•
8th Grade
15 questions
Củng Cố - Biến và lệnh gán trong Python

Quiz
•
10th Grade
10 questions
Tự đánh giá Bài 3 Tin 8

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
25 questions
Exploring POV and Unreliable Narrators

Quiz
•
7th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)

Quiz
•
9th Grade
15 questions
MLA Formatting

Quiz
•
9th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
16 questions
4.2 Private & Personal Information

Lesson
•
4th Grade