Hình vuông có cạnh a là 30(cm). Ta có thể dùng Python để viết chương trình tính diện tích hình vuông là:

Python Programming Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
mai trần
Used 1+ times
FREE Resource
28 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Kết quả của đoạn chương trình sau: i = 1 while i <= 0: if i % 2 == 0: print(i) i = i + 1
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Hãy cho biết giá trị của biến y sau khi thực hiện 2 lệnh sau: x = 'Hello World' y = x[3:8]
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào để tìm kiếm một xâu kí tự trong một xâu kí tự khác trong Python?
Sử dụng hàm find()
Sử dụng hàm index()
Sử dụng hàm search()
Sử dụng hàm locate()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào để lấy độ dài của một xâu kí tự trong Python?
Sử dụng hàm len()
Sử dụng hàm size()
Sử dụng hàm length()
Sử dụng hàm count()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào sau đây là cách hợp lệ để bắt đầu định nghĩa hàm trong Python?
def tên_hàm()
function tên_hàm():
def tên_hàm():
function tên_hàm()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm print(a[2]) có ý nghĩa
Xuất vị trí đầu tiên trong danh sách
Xuất vị trí thứ 2 trong danh sách
Xuất vị trí thứ 3 trong danh sách
Xuất vị trí thứ 4 trong danh sách
Create a free account and access millions of resources
Similar Resources on Quizizz
24 questions
Python - Kiểu dữ liệu và lệnh gán

Quiz
•
10th Grade
24 questions
tin học

Quiz
•
10th Grade - University
25 questions
BÀI KTTX SỐ 2 TIN 7

Quiz
•
9th Grade - University
23 questions
C++_VongLap_Ham

Quiz
•
2nd Grade - University
26 questions
Ôn tập HK2

Quiz
•
10th Grade
28 questions
IC3 SPARK GS6 Lv1_Chủ đề 1

Quiz
•
3rd Grade - University
25 questions
Đề Cương Tin Học 8 HKI

Quiz
•
1st Grade - University
27 questions
ĐỀ CƯƠNG ÔN TẬP HK1 - K5 (24-25)

Quiz
•
5th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade