Python 1

Python 1

10th Grade

99 Qs

quiz-placeholder

Similar activities

ÔN TẬP TRẮC NGHIỆM CUỐI HỌC KÌ 1 TIN HỌC 10

ÔN TẬP TRẮC NGHIỆM CUỐI HỌC KÌ 1 TIN HỌC 10

10th Grade

99 Qs

Computer Science Review

Computer Science Review

9th - 10th Grade

100 Qs

IMRTD U2 Infraestructura de red

IMRTD U2 Infraestructura de red

10th Grade

100 Qs

Intro to Software Final

Intro to Software Final

9th - 12th Grade

94 Qs

Review for Python 3 Test - Loops and Strings (CodeCademy)

Review for Python 3 Test - Loops and Strings (CodeCademy)

7th - 12th Grade

100 Qs

UH 3 Simdig semester 2

UH 3 Simdig semester 2

10th Grade

100 Qs

Đề cương ôn tập HK2 Tin 10 ( Made in Nhân Nguyễn )

Đề cương ôn tập HK2 Tin 10 ( Made in Nhân Nguyễn )

10th Grade

96 Qs

qizi tin hoc sieu cap 10a1

qizi tin hoc sieu cap 10a1

10th Grade

97 Qs

Python 1

Python 1

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Tri Dang Cong

Used 5+ times

FREE Resource

99 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, từ khóa nào được sử dụng để khai báo một hàm

class

def

function

declare

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, hàm nào được sử dụng để tính giá trị tuyệt đối của một số

abs()

ceil()

floor()

round()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, đoạn mã nào sẽ in ra giá trị của biến x và y

x = 5

y = 10

print("x is", x, "and y is", y)

x is 10 and y is 5

x = 5 and y = 10

x is 5 and y is 10

x and y are both 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, đoạn mã nào sẽ in ra số lớn nhất trong danh sách sau: [5, 10, 3, 8, 1]

print(max([5, 10, 3, 8, 1]))

print(min([5, 10, 3, 8, 1]))

print(sum([5, 10, 3, 8, 1]))

print(len([5, 10, 3, 8, 1]))

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, đoạn mã nào sẽ in ra tất cả các phần tử trong danh sách sau: ["apple", "banana", "cherry"]?

print(list["apple", "banana", "cherry"])

print([apple, banana, cherry])

print(["apple", "banana", "cherry"])

print("apple, banana, cherry")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, đoạn mã nào sẽ in ra giá trị của biến x sau khi nó được tăng lên 1 đơn vị

x = 5

x += 1

print(x)

5

6

7

Không có câu trả lời đúng

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn mã sau sẽ in ra gì

for i in range(10):

print(i)

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

0, 1, 2, 3, 4, 5, 6, 7, 8

1, 2, 3, 4, 5, 6, 7, 8, 9

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?