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
12 questions
Bài 14 - THTH1
Quiz
•
1st Grade
10 questions
Ôn tập GHKII
Quiz
•
1st Grade - Professio...
15 questions
BÀI TẬP LỚP 3 TIN HOC ICDL
Quiz
•
1st - 5th Grade
10 questions
Bài 4 - THTH1
Quiz
•
1st Grade
10 questions
THTH1 - Bài 12: 전화
Quiz
•
1st Grade
12 questions
BÀI TẬP VỀ TRẠNG NGỮ
Quiz
•
1st - 5th Grade
15 questions
Hán ngữ 1 - Bài 11
Quiz
•
1st - 2nd Grade
10 questions
Bài 10 - THTH1
Quiz
•
1st 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 Education
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
5 questions
Sense and Response
Quiz
•
1st Grade