
Củng cố câu lệnh IF...THEN
Authored by nguyen Bich
Computers
1st - 12th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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?
Similar Resources on Wayground
10 questions
Tin học 3: Soạn thảo văn bản
Quiz
•
4th Grade
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th Grade
13 questions
Nhập môn HTML
Quiz
•
6th - 9th Grade
15 questions
11° Evaluación bimestral de informática
Quiz
•
11th Grade
10 questions
10 класс повторение CSS and Внедрение мультимедиа
Quiz
•
10th Grade
10 questions
ÔN THI HKI KHỐI 4
Quiz
•
5th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade