Trắc nghiệm xâu ký tự trong Python

Trắc nghiệm xâu ký tự trong Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

trắc nghiệm

trắc nghiệm

10th - 12th Grade

6 Qs

2.5 Translators & Facilities - OCR GCSE Computer Science

2.5 Translators & Facilities - OCR GCSE Computer Science

7th - 12th Grade

13 Qs

Game Quizizz

Game Quizizz

KG - Professional Development

8 Qs

Scratch_beginner_lesson4

Scratch_beginner_lesson4

1st - 10th Grade

13 Qs

DigiPro 7 Unit 1 Review

DigiPro 7 Unit 1 Review

9th - 12th Grade

11 Qs

Bài kiểm tra 15 phút

Bài kiểm tra 15 phút

7th Grade - University

10 Qs

bài 24 xâu kí tự

bài 24 xâu kí tự

10th Grade

11 Qs

Kiểu xâu

Kiểu xâu

10th Grade

10 Qs

Trắc nghiệm xâu ký tự trong Python

Trắc nghiệm xâu ký tự trong Python

Assessment

Quiz

Instructional Technology

10th Grade

Medium

Created by

Đặng 2

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, kiểu dữ liệu nào dùng để lưu trữ xâu ký tự?

int

float

str

list

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào để in ra màn hình xâu "Hello, Python"?

echo("Hello, Python")

print("Hello, Python")

printf("Hello, Python")

output("Hello, Python")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì? s = "Python" print(s[1])

P

y

t

h

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, chỉ số âm trong xâu ký tự bắt đầu đếm từ ký tự cuối cùng về trước.

Đúng

Sai

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào trả về độ dài của xâu `s`?

length(s)

len(s)

size(s)

count(s)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì? s = " Hello World " print(s.strip())

" Hello World "

"Hello World"

"hello world"

"HelloWorld"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn code nào trả về phần xâu "thon" từ biến `s = "Python"`?

s[2:6]

s[3:7]

s[1:5]

s[-3:]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?