Search Header Logo

B24.3-Tin10

Authored by TRUC Ng

Instructional Technology

12th Grade

B24.3-Tin10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1: Cho xâu s1='abc', xâu s2='abc'. Khẳng định nào sau đây đúng

Xâu s2 lớn hơn xâu s1.

Xâu s1 bằng xâu s2.

Xâu s2 nhỏ hơn xâu s1.

Xâu s2 lớn hơn hoặc bằng xâu s1.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 2: Sau khi thực hiện lệnh sau, biến s sẽ có kết quả là

s1 ="3986443"

s2 = "" for ch in s1:

if int(ch) % 2 == 0:

s2 = s2 + ch

print(s2)

3986443.

8644.

39864.

443.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3: Kết quả đoạn chương trình sau là gì?

S = "0123456789" T = "" for i in range(0, len(S), 2): T = T + S [i] print(T)

"".

"02468".

"13579".

"0123456789".

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

"123".

"0123".

"01234".

"1234".

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 5: Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?

len(s).

length(s).

s.len().

s. length().

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6: Chuỗi sau được in ra mấy lần?

s = "abcdefghi"

for i in range(10):

if i % 4 == 0:

print(s)

0.

1.

2.

3.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7: Chương trình sau cho kết quả là bao nhiêu? name = "Codelearn" print(name[0])

"C".

"o".

"c".

Câu lệnh bị lỗi.

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?

Discover more resources for Instructional Technology