
Câu lệnh điều kiện
Quiz
•
Science
•
9th - 12th Grade
•
Hard
Pham Thanh
Used 6+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1:Phát biểu nào sau đây có thể lấy làm biểu thức điều kiện trong cấu trúc rẽ nhánh ?
A:= B
A > B
N mod 100
“A nho hon B”
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2: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
Câu 3: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
Câu 4: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 CHOICE QUESTION
30 sec • 1 pt
Câu 5:Các câu lệnh Pascal nào sau đây được viết đúng:
If x:= 5 then a = b;
If x > 4; then a:= b;
If x > 4 then a:=b else m:=n;
If x > 4 then a:=b; else m:=n;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6:Để 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
Câu 7:Hãy chọn cách dùng sai . Muốn dùng biến X lưu giá trị nhỏ nhất trong các giá trị của hai biến A, B có thể dùng cấu trúc rẽ nhánh như sau :
if A <= B then X := A else X := B;
if A < B then X := A;
X := B; if A < B then X := A;
if A < B then X := A else X := B;
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
10 questions
Lê Hồng Sơn
Quiz
•
12th Grade
10 questions
Vòng loại Rung Chuông Vàng _ 2
Quiz
•
9th - 12th Grade
14 questions
Test
Quiz
•
10th Grade - University
13 questions
Intermolecular Forces
Quiz
•
9th - 12th Grade
10 questions
BT VÀ TH 2
Quiz
•
12th Grade
15 questions
KIỂM TRA 15P HK2 LẦN 1
Quiz
•
10th Grade - University
10 questions
Bài KTTX số 1 - Tin học 11
Quiz
•
11th Grade
10 questions
Python_HW6
Quiz
•
6th Grade - University
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 Science
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes
Interactive video
•
6th - 10th Grade
10 questions
Exploring the States of Matter
Interactive video
•
6th - 10th Grade
10 questions
Exploring the States of Matter and Thermal Energy
Interactive video
•
6th - 10th Grade
10 questions
Exploring Light and Waves Concepts
Interactive video
•
6th - 10th Grade
16 questions
3.4 Biogeochemical Cycles
Quiz
•
9th Grade
21 questions
Cell Organelles
Quiz
•
9th Grade
10 questions
Exploring Weathering, Erosion, and Deposition Processes
Interactive video
•
6th - 10th Grade