Search Header Logo

Tinhoc

Authored by Như Hoài

History

9th - 12th Grade

Used 1+ times

Tinhoc
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Với s="Tin học phổ thông" thì lệnh nào sau đây báo lỗi?

del s

print(s[2])

C. s="A"

s[2]="A"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

- Hãy cho biết giá trị của m sau khi thực hiện chương trình sau đây?

m, n = 9, 12

while m! = n

if m>n : m = m - n

else : n=n-m

1

3

6

9

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp tạo kiểu dữ liệu danh sách trong Python là?

<tên list>= (<vl>,<v2>,...,<vn>)

<tên list>= [<vl>,<v2>,...,<vn>]

<tên list>= [<vl>;<v2>;...;<vn>]

<tên list> [<vl>,<v2>,...,<vn>]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Danh sách X trước và sau lệnh insert() là [1,4,10,0] và [1,4,10,5,0]. Lệnh đã dùng là gì?

X.insert(5)

X.insert(3,5)

X.insert(4,5)

X.insert(2,5)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hãy biểu diễn dãy số 1, 2, 3 bằng lệnh range()?

range(1,3+1)

range(1,3)

range(3)

range(4)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Danh sách X trước và sau lệnh remove() là [1,4,10,5,0] và [1,4,10,0]. Lệnh đã dùng là gi?

X.remove(5)

X.remove(3,5)

X.remove(4,5)

X.remove(2,5)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bao nhiêu lần lệnh print("a") sẽ được thực hiện bởi lệnh lặp sau?

x=5

while x>0

print("a")

Vô số lần.

5.

Không lần nào vì điều kiện lặp có giá trị False.

Thực hiện đến khi xuất hiện lệnh break sẽ dừng.

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?