Biến trong Python có thể được khai báo như thế nào?

Week 4: Revision

Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Hard
K61 VI
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var x
int x
x = 5
x := 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kiểu dữ liệu nào sau đây không tồn tại trong Python?
int
float
string
character
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để khai báo một chuỗi (string), ta sử dụng cặp dấu nào?
( )
{ }
" "
' '
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, biến kiểu boolean chỉ có thể có giá trị là gì?
0 và 1
True và False
"true" và "false"
Yes và No
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là cách sử dụng đúng của cấu trúc điều kiện if-else trong Python?
if x = 5: print("x is 5") else: print("x is not 5")
if x == 5: print("x is 5") else: print("x is not 5")
if x equals 5: print("x is 5") otherwise: print("x is not 5")
if x => 5: print("x is 5") else: print("x is not 5")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, cách nào sau đây đúng để sử dụng toán tử so sánh lớn hơn hoặc bằng? a) b) c) d) =<
=>
=
>=
=<
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc điều kiện elif trong Python được sử dụng khi nào?
Để kiểm tra một điều kiện mới nếu điều kiện trước đó sai
Để kết thúc một câu lệnh if
Để thay thế cho câu lệnh else if
Để thêm một điều kiện khác vào sau câu lệnh else
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
PTS INFORMATIKA X SEM GENAP

Quiz
•
10th Grade
10 questions
LARP

Quiz
•
9th Grade
9 questions
01 - Aula de Introdução à Python

Quiz
•
10th Grade - University
10 questions
Trò chơi: Trả lời nhanh

Quiz
•
11th - 12th Grade
10 questions
Trắc nghiệm bài 8 CN12

Quiz
•
12th Grade
10 questions
Câu hỏi bài tập bài 11 Tệp và quản lý tệp

Quiz
•
12th Grade
10 questions
Cơ sở dữ liệu Access tin 12

Quiz
•
12th Grade
8 questions
KIỂM TRA TIN 9 GHK-II

Quiz
•
9th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Instructional Technology
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade