Search Header Logo

KIEMTRA-HK1-PYTHON

Authored by Phạm Huu Tam

Computers

11th Grade

Used 7+ times

KIEMTRA-HK1-PYTHON
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm pow(a,b,c) nhận kết quả là gì?

(a**b)**c

(a**b) / c

(a**b) % c

(a**b)*c

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là quy tắc đúng khi đặt tên cho biến trong Python?

Tên biến có thể bắt đầu bằng dấu gạch dưới ” _ “.

Có thể sử dụng keyword làm tên biến.

Tên biến có thể bắt đầu bằng một chữ số.

Tên biến có thể có các ký hiệu như !, @, #, $, %,…

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

n trong đoạn sau là kiểu dữ liệu nào? n = ‘10’

integer

string

tuple

operator

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output của lệnh sau là: print(1, 2, 3, 4, sep=’*’)

1 2 3 4

1234

1*2*3*4

24

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dùng để lấy dữ liệu đầu vào từ người dùng?

cin

scanf()

input()

<>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh sử dụng toán tử and trả về kết quả TRUE khi nào?

Cả hai toán hạng đều là TRUE.

Cả hai toán hàng đều là FALSE.

Một trong hai toán hạng là TRUE.

Toán hạng đầu tiên là TRUE.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả nào là output của đoạn code dưới đây?

x = True;  y = False;  z = False

if not x or y:print(1)

elif not x or not y and z:  print(2)

elif not x or y or not y and x:  print(3)

else :  print(4)

1

2

3

None

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?