Bài 24

Bài 24

10th Grade

15 Qs

quiz-placeholder

Similar activities

ISC Week 11

ISC Week 11

12th Grade - University

20 Qs

MongoDB Concepts 1

MongoDB Concepts 1

University

10 Qs

Wireless and Mobile Networks - Session 15 - 16

Wireless and Mobile Networks - Session 15 - 16

University

10 Qs

Grade 12B Midterm Exam: ERDs, EHR, and SQL

Grade 12B Midterm Exam: ERDs, EHR, and SQL

12th Grade

20 Qs

TEST #08

TEST #08

University

10 Qs

The Linux Vault

The Linux Vault

University

15 Qs

Media and Information Literacy

Media and Information Literacy

12th Grade

20 Qs

ITEC 70 - Quiz # 2

ITEC 70 - Quiz # 2

University

15 Qs

Bài 24

Bài 24

Assessment

Quiz

Information Technology (IT)

10th Grade

Medium

Created by

khanh cao

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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().

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Có bao nhiêu xâu kí tự nào hợp lệ?

5.

6.

4.

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?

16.

17.

18.

15.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phát biểu nào sau đây là sai?

Có thể truy cập từng kí tự của xâu thông qua chỉ số.

Chỉ số bắt đầu từ 0.

Có thể thay đổi từng kí tự của một xâu.

Python không có kiểu dữ liệu kí tự.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Biểu thức sau cho kết quả đúng hay sai? S1 = “12345” S2 = “3e4r45” S3 = “45” S3 in S1 S3 in S2

True, False.

True, True.

False, False.

False, True.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau nếu s = "python1221" là gì? s = input("Nhập xâu kí tự bất kì:") kq = False for i in range(len(s)-1): if s[i] == "2" and s[i+1] == "1": kq = True break print(kq)

True.

False.

Chương trình bị lỗi.

Vòng lặp vô hạn.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?