
Kiến thức lập trình Python cơ bản
Quiz
•
Information Technology (IT)
•
7th Grade
•
Practice Problem
•
Hard
Dũng Nguyễn Quốc
Used 1+ times
FREE Resource
Enhance your content in a minute
42 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biến trong Python được sử dụng để làm gì?
Chia sẻ dữ liệu.
Tạo biến mới.
Lưu trữ dữ liệu.
Xóa dữ liệu.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khai báo biến trong Python như thế nào?
Khai báo biến bằng cách định nghĩa kiểu dữ liệu trước, ví dụ: int x = 10.
Khai báo biến bằng cách nhập giá trị từ người dùng, ví dụ: x = input().
Khai báo biến bằng cách gán giá trị cho tên biến, ví dụ: x = 10.
Khai báo biến bằng cách sử dụng từ khóa var, ví dụ: var x = 10.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kiểu dữ liệu nào sau đây là kiểu dữ liệu số trong Python?
int, float, complex
byte, double, set
char, decimal, tuple
string, boolean, list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách kiểm tra kiểu dữ liệu của một biến trong Python là gì?
Sử dụng hàm check() để xác định kiểu dữ liệu.
Sử dụng hàm type() để kiểm tra kiểu dữ liệu.
Dùng lệnh print() để in ra kiểu dữ liệu.
Áp dụng hàm data_type() để kiểm tra kiểu dữ liệu.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biến nào sau đây là hợp lệ trong Python?
valid-variable-name
_validVariableName123
123_invalidVariableName
validVariableName!
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh if trong Python được sử dụng để làm gì?
Tạo một hàm mới trong Python.
Kiểm tra điều kiện và thực thi khối lệnh nếu điều kiện đúng.
Thực hiện vòng lặp qua các phần tử trong danh sách.
Kết thúc chương trình khi gặp lỗi.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp của câu lệnh if-elif-else trong Python như thế nào?
if condition2: # code block 2
if condition1: # code block 1
if condition1: # code block 1 elif condition2: # code block 2 else: # code block 3
if condition1: # code block 1 elif condition3: # code block 3
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
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Information Technology (IT)
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Informational Text Structures
Quiz
•
6th - 8th Grade
10 questions
Understanding Earth's Movements and Seasons
Interactive video
•
4th - 8th Grade
20 questions
Convection, Conduction, and Radiation
Quiz
•
6th - 8th Grade
20 questions
genetics vocabulary
Quiz
•
7th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
20 questions
One-Step Inequalities
Quiz
•
7th Grade
