Bài 24: Xâu kí tự

Bài 24: Xâu kí tự

10th Grade

26 Qs

quiz-placeholder

Similar activities

Weathering, Erosion, & Deposition

Weathering, Erosion, & Deposition

9th - 12th Grade

25 Qs

Nuclear Fusion Practice

Nuclear Fusion Practice

9th - 11th Grade

21 Qs

Continental Drift and Seafloor Formation

Continental Drift and Seafloor Formation

9th - 12th Grade

22 Qs

Star Spectroscopy and Composition

Star Spectroscopy and Composition

9th - 12th Grade

22 Qs

Unit 2 Radioactivity

Unit 2 Radioactivity

9th - 12th Grade

25 Qs

Đề ôn Chương 1: Cấu tạo nguyên tử - Đề 1

Đề ôn Chương 1: Cấu tạo nguyên tử - Đề 1

10th Grade

30 Qs

RUNG CHUÔNG VÀNG

RUNG CHUÔNG VÀNG

9th - 12th Grade

23 Qs

Bài 24: Xâu kí tự

Bài 24: Xâu kí tự

Assessment

Quiz

Science

10th Grade

Practice Problem

Easy

Created by

dong bui

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

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

16

17

18

15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sau khi thực hiện lệnh sau, biến s2 sẽ có kết quả là: s1 ="3986443" s2 = "" for ch in s1: if int(ch) % 2 == 0: s2 = s2 + ch print(s2)

A. 3986443.

B. 8644.

C. 39864.

D. 443.

3.

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)

A. True.

B. False.

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

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A. “C”.

B. “o”.

C. “c”.

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau là bao nhiêu? >>> s = "0123145" >>> s[0] = '8' >>> print(s[0])

A. ‘8’.

B. ‘0’.

C. ‘1’.

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau là bao nhiêu? >>> s = "abcdefg" >>> print(s[2])

A. ‘c’.

B. ‘b’.

C. ‘a’.

D. ‘d’

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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)

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

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

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

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

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?