
Ôn tập câu lệnh điều kiện if trong Python- Teky

Quiz
•
Information Technology (IT)
•
7th Grade
•
Easy
Đạt Tạ
Used 2+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 1. Câu lệnh if được sử dụng khi nào trong lập trình Python?
Khi muốn lặp đi lặp lại một đoạn mã
Khi cần kiểm tra điều kiện và chỉ thực hiện mã khi điều kiện đúng
Khi muốn tạo hàm mới
Khi khai báo biến
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 2. Cú pháp đúng của một câu lệnh if trong Python là gì?
if (x >> 10)
if x > 10:
if x : 10:
if x > 10
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 3. Điều gì xảy ra nếu quên dấu : sau điều kiện trong câu lệnh if?
Không ảnh hưởng gì
Chương trình chạy sai kết quả
Gây lỗi cú pháp (SyntaxError)
Không in ra gì
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Điều kiện trong câu lệnh if sẽ được kiểm tra bao nhiêu lần?
0 lần
1 lần
Nhiều lần
3 lần
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho đoạn mã sau:
Chương trình sẽ in ra gì?
Xuất sắc
Không in gì cả
Lỗi chương trình
8
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers

Quiz
•
7th Grade
30 questions
Math Fluency: Multiply and Divide

Quiz
•
7th Grade
20 questions
Perfect Squares and Square Roots

Quiz
•
7th Grade
13 questions
Parts of Speech

Quiz
•
7th Grade