Bài tập trắc nghiệm Tin học 8 Bài 6 về Câu lệnh điều kiện
Quiz
•
Education, Other
•
1st Grade
•
Hard
Đình Duy
Used 28+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Pascal, câu lệnh điều kiện nào sau đây được viết đúng?
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
30 sec • 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
30 sec • 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
9
7
11
4.
MULTIPLE CHOICE QUESTION
30 sec • 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
9
8
6
5.
MULTIPLE SELECT QUESTION
30 sec • 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
30 sec • 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;
If (a>b) then Max:=a else Max:=b;
Max:=b; If a>Max then Max:=a;
Cả 3 câu đều đúng.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If ... Then ... Else là:
Vòng lặp xác định
Vòng lặp không xác định
Câu lệnh điều kiện
Một khai báo
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Focus 2 SE U4.5 future
Quiz
•
1st Grade
12 questions
FHC Community Quiz
Quiz
•
1st - 5th Grade
11 questions
Python. Умови та цикли
Quiz
•
1st - 3rd Grade
13 questions
Powtórka C++
Quiz
•
1st - 6th Grade
15 questions
TEST PK BULAN OKTOBER 2020
Quiz
•
1st Grade
15 questions
Telephone Communication
Quiz
•
1st Grade
10 questions
Economic Globalization
Quiz
•
1st - 5th Grade
14 questions
Bài 13 - THTH1
Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
