Search Header Logo

Đề Cương Cuối Kỳ 2 - Tin 10

Authored by Son Mups

Information Technology (IT)

10th Grade

Used 3+ times

Đề Cương Cuối Kỳ 2 - Tin 10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1. Cho danh sách A như sau: A = [1,2,3,4,5,6,7] Để in giá trị phần tử thứ 2 của danh sách A ra màn hình ta viết:

print(A[2]).

print(A[1]).

print(A[3]).

print(A[0]).

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 2: Để khai báo một danh sách rỗng ta dùng cú pháp sau

< tên danh sách > ==[].

< tên danh sách > = 0.

< tên danh sách > = [].

< tên danh sách > = [0].

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3: Để xóa 2 phần tử ở vị trí 1 và 2 trong danh sách a hiện tại ta dùng lệnh nào?

del a[1:2].

del a[0:2].

del a[0:3].

del a[1:3].

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 4. Danh sách A sẽ như thế nào sau các lệnh sau? >>> A = [2, 3, 5, 6] >>> A. append(4) >>> del (A[2])

2, 3, 4, 5, 6, 4.

2, 3, 4, 5, 6.

2, 4, 5, 6.

2, 3, 6, 4.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 5: Nếu S = "1234567890" thì S[0:4] là gì?

"123".

"0123".

"01234".

"1234".

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6: Chương trình trên giải quyết bài toán gì? s = "" for i in range(10): s = s + str(i) print(s)

In một chuỗi kí tự từ 0 tới 10.

In một chuỗi kí tự từ 0 tới 9.

In một chuỗi kí tự từ 1 tới 10.

In một chuỗi kí tự từ 1 đến 9.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7. Sử dụng câu lệnh nào sau đây để duyệt từng kí tự theo phần tử của xâu S:

for i in S: print(i, end =" ")

for i in range(len(S)) : print(S[i], end =" ")

for i in S: print(S[i], end =" ")

for i in range(len(S)): print(i, end =" ")

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?

Similar Resources on Wayground