
Câu hỏi trắc nghiệm bài 19
Presentation
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
Phong Thanh
Used 6+ times
FREE Resource
0 Slides • 10 Questions
1
Multiple Choice
Câu 1 – Nhiều lựa chọn, 1 đáp án đúng
Câu lệnh rẽ nhánh hợp lệ trong Python là:
if x > 5 then: print("Lớn")
if x > 5 print("Lớn")
if x > 5: print("Lớn")
if x > 5: print "Lớn"
2
Fill in the Blanks
Câu 2 – Điền khuyết
Điền từ còn thiếu vào câu lệnh sau để hoàn chỉnh cấu trúc rẽ nhánh:
if x < 0:
print("Âm")
print("Không âm")
3
Multiple Choice
Câu 3 – Nhiều lựa chọn, 1 đáp án đúng
Từ khóa nào KHÔNG dùng trong cấu trúc rẽ nhánh Python?
if
elif
else
then
4
Fill in the Blanks
Câu 4 – Điền khuyết
Điền từ còn thiếu vào đoạn mã sau để kiểm tra giá trị âm:
if x < 0: print("
Type answer...
5
Multiple Choice
Câu 5 – Nhiều lựa chọn, 1 đáp án đúng
Câu nào đúng về thụt dòng trong if...else của Python?
Không cần thụt dòng, chỉ cần :
Các câu lệnh trong nhánh phải thụt dòng đều nhau
else: phải nằm bên trong if:
Có thể dùng ; để ngăn cách lệnh
6
Fill in the Blanks
Câu 6 – Điền khuyết
Kết quả in ra từ đoạn mã sau là gì?
a = 10 if a < 5: print("Nhỏ") else: print("Lớn")
Type answer...
7
Multiple Choice
Câu 7 – Nhiều lựa chọn, 1 đáp án đúng
Điều gì xảy ra nếu không thụt dòng đúng quy tắc trong câu lệnh if?
Chương trình vẫn chạy
Lỗi cú pháp (IndentationError)
Bỏ qua lệnh đó
Chạy lệnh else
8
Fill in the Blanks
Câu 8 – Điền khuyết
Kết quả in ra từ đoạn mã sau:
a = 5 b = 2 if a % b == 1: print("Dư 1") else: print("Không dư 1")
9
Multiple Choice
Câu 9 – Nhiều lựa chọn, 1 đáp án đúng
Cho đoạn mã:
s = 4 if s >= 5: print("Đạt") else: print("Không đạt")
Đạt
Không đạt
Lỗi
Không in gì
10
Fill in the Blanks
Câu 10 – Điền khuyết
Điền từ để hoàn thành điều kiện kiểm tra số 0:
if x ==
Câu 1 – Nhiều lựa chọn, 1 đáp án đúng
Câu lệnh rẽ nhánh hợp lệ trong Python là:
if x > 5 then: print("Lớn")
if x > 5 print("Lớn")
if x > 5: print("Lớn")
if x > 5: print "Lớn"
Show answer
Auto Play
Slide 1 / 10
MULTIPLE CHOICE
Similar Resources on Wayground
8 questions
Water
Presentation
•
10th Grade
7 questions
Verbal and Non Verbal Techniques in Public Speaking
Presentation
•
10th Grade
8 questions
Semicolons
Presentation
•
10th Grade
9 questions
CER-Emission Spectra of Elements
Presentation
•
10th Grade
8 questions
Some British Slang
Presentation
•
9th Grade
10 questions
Информатика 10 сынып
Presentation
•
10th Grade
8 questions
Transformations of Exponentials And logarithms
Presentation
•
10th Grade
7 questions
Unit 3 Westward Expansion
Presentation
•
10th Grade
Popular Resources on Wayground
6 questions
PRIDE Always and Everywhere
Presentation
•
12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
26 questions
KOR Review Kahoot Questions
Quiz
•
8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
10 questions
Would you Rather?
Quiz
•
9th - 12th Grade
20 questions
Characteristics of Life
Quiz
•
9th - 10th Grade
10 questions
Soup, Salad, or Sandwich?
Quiz
•
1st Grade - Professio...
10 questions
Labor Day and Its Historical Significance
Interactive video
•
7th - 12th Grade
20 questions
Scientific Method & Variables
Quiz
•
9th - 12th Grade