Câu lệnh rẽ nhánh

Quiz
•
Computers
•
10th Grade
•
Medium
Dương DN)
Used 46+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để hiển thị nội dung lên màn hình, chúng ta sử dụng câu lệnh nào ?
print()
write()
screen()
display()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong câu lệnh
if <điều kiện> :
câu lệnh
Câu lệnh được thực hiện khi?
Điều kiện cho giá trị đúng
Điều kiện cho giá trị sai
Không cần kiểm tra điều kiện
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điền vào dấu … để khi nhập a=2, b=3 thì chương trình sẽ in ra 6.
a = … (input(‘a=’))
b = … (input(‘b=’))
print(a*b)
không cần điền gì thêm
float
int
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Biểu thức [(x+y)*z]-(x2-y2) chuyển sang Python là:
((x+y)*z)-(x2-y2)
((x+y)*z)-(x*x-y*y)
((x+y)*z)-(x2-y2)
(x+y)*z-x*x-y*y
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong ngôn ngữ lập trình Python, câu lệnh nào sau đây là gán giá trị cho biến?
n = 50
n==50
n>50
n!=50
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Em hãy chọn tên biến hợp lệ trong Python:
10tin
tin10@
_tin10
tin 10
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
a=20
b=10
print(a/b)
Đoạn chương trình Python trên in ra kết quả là bao nhiêu?
2
2010
a/b
2.0
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Ôn tập Thi HK1

Quiz
•
10th Grade
10 questions
Ôn tập: Câu lệnh IF

Quiz
•
10th Grade
10 questions
Bài 20-Câu lệnh lặp For

Quiz
•
10th Grade
10 questions
Đề 1

Quiz
•
9th - 12th Grade
10 questions
Kiểm tra 15 phút - Lập trình python

Quiz
•
10th Grade
10 questions
Kiểm tra thường xuyên lần 2

Quiz
•
10th Grade
10 questions
Tin 10: Bài 1 Làm quen với NNLT bậc cao

Quiz
•
10th Grade
15 questions
Kiểm tra thường xuyên 3 HK1

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade