Cho chương trình def tinh(n): t = n + 6 return t=4 tinh(16) print("t =", t) Kết quả hiển thị ở màn hình là:

KIỂM TRA TX HK2 LỚP 10A1

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Minh Trần
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
t = 22
t = 10
t = 16
t = 4
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Biến đã khai báo bên ngoài sẽ không có tác dụng bên trong hàm như một biến. Nếu muốn có tác dụng thì cần khai báo lại biến này trong hàm với từ khóa nào?
Global
return
def
global
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Trong python, lệnh tìm vị trí xuất hiện đầu tiên của xâu s2 trong xâu s1 là gì?
Kí tự nối.join(s2)
s1.split()
s1.find(s2)
len(s1)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng cú pháp:
b = [0, 1, 2, 3, 4]
b = (1, 2, 3, 4, 5)
b = [1 2 3 4 5]
b = [1, 2, 3, 4, 5]
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Sau khi thực hiện các câu lệnh sau:
A = [1, 4, 3, 4, 5]
A. remove(4)
print(A)
danh sách A là:
[1, 4, 3, 5]
[1, 3, 5]
[1, 3, 4, 5]
[1, 4, 3, 4]
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho chương trình:
B = [2, 4, 6, 8, 9]
print(B[5])
Kết quả trên màn hình là:
2
9
Chương trình báo lỗi
6
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho 2 xâu s1= "abc", s2 = "7ab8ab9ab". Lệnh s2.find(s1) cho kết quả là:
2
-1
1
3
Create a free account and access millions of resources
Similar Resources on Quizizz
24 questions
ÔN TẬP TIN HỌC 5 HK2

Quiz
•
5th Grade - University
15 questions
BÀI 26: HÀM TRONG PYTHON

Quiz
•
10th Grade
15 questions
Đề đánh giá thường xuyên 1 - Tin 10

Quiz
•
10th Grade
15 questions
Bài 25

Quiz
•
10th Grade - University
15 questions
Bài 26

Quiz
•
10th Grade - University
16 questions
ĐỀ CƯƠNG ÔN TẬP KTCK II - TIN 10 (KNTT) - ĐỀ CƯƠNG SỐ 1

Quiz
•
10th Grade
15 questions
Bài 28

Quiz
•
10th Grade - University
15 questions
Bài 27

Quiz
•
10th Grade - University
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 Information Technology (IT)
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th 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
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade