Cấu trúc rẽ nhánh if-elif-else
Quiz
•
Instructional Technology
•
11th Grade
•
Practice Problem
•
Medium
vinh phan
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh If sẽ thực hiện khi:
<Điều kiện> sai.
<Điều kiện> đúng.
<Điều kiện> bằng 0.
<Điều kiện> khác 0.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh nào sau đây viết đúng:
if a>b:
print(a)
else:
print(b)
if a>b
print(a)
else:
print(b)
if a>b
print(a)
else
print(b)
if a>b:
print(a)
else
print(b)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh rẽ nhánh if-else trong chương trình Python có dạng:
if <điều kiện>:
<câu lệnh>
if <điều kiện>:
<câu lệnh 1>
else
<câu lệnh 2>
if <điều kiện>:
<câu lệnh 1>
else:
<câu lệnh 2>
if <điều kiện>
<câu lệnh 1>
else:
<câu lệnh 2>
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho đoạn chương trình sau:
a=2; b=3
if a>b:
a=a*2
else:
b=b*2
Sau khi thực hiện đoạn chương trình trên giá trị của b là:
4
2
6
Không xác định
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh rẽ nhánh if-elif-else trong chương trình Python có dạng:
if <điều kiện>:
<câu lệnh 1>
elif <điều kiện 2>
<câu lệnh 1>
else
<câu lệnh 3>
if <điều kiện>:
<câu lệnh 1>
elif <điều kiện 2>:
<câu lệnh 2>
else
<câu lệnh 3>
if <điều kiện>:
<câu lệnh 1>
elif <điều kiện 2>:
<câu lệnh 2>
else:
<câu lệnh 3>
if <điều kiện>
<câu lệnh 1>
elif <điều kiện 2>
<câu lệnh 2>
else
<câu lệnh 3>
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
"Điều kiện else" - Được sử dụng nếu bạn cần in ra câu lệnh khi một ...
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Chọn đáp án đúng cho chỗ trống lần lượt là:
if:
elif:
elif:
elif:
else:
if:
elif
elif
elif
else
if:
elif:
elif:
else:
elif:
if
elif:
elif:
elif:
else:
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
Already have an account?
Similar Resources on Wayground
10 questions
Языки программирования
Quiz
•
9th Grade - University
13 questions
phần mềm logo Lớp 5
Quiz
•
1st Grade - Professio...
15 questions
CIE Computer Science syllabus 0478
Quiz
•
9th - 11th Grade
15 questions
Revisão Programação Web - 2
Quiz
•
10th Grade - Professi...
14 questions
Python Functions and Returns
Quiz
•
9th - 12th Grade
12 questions
Análisis de objetos
Quiz
•
5th - 12th Grade
15 questions
แบบทดสอบก่อนเรียน วิทยาการคำนวณ ม.5
Quiz
•
11th Grade
12 questions
Excel-Drive
Quiz
•
7th Grade - Professio...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Instructional Technology
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Thanksgiving Trivia
Quiz
•
11th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
