bài 24.xâu kí tự

bài 24.xâu kí tự

Professional Development

22 Qs

quiz-placeholder

Similar activities

Topic 1 Question 201 to 220

Topic 1 Question 201 to 220

Professional Development

20 Qs

Software Testing Fundamentals

Software Testing Fundamentals

Professional Development

20 Qs

React Redux

React Redux

Professional Development

20 Qs

Quiz on Lambda Expressions and Functional Interfaces

Quiz on Lambda Expressions and Functional Interfaces

Professional Development

19 Qs

Holiday Quiz

Holiday Quiz

Professional Development

17 Qs

Amazon Trivia

Amazon Trivia

Professional Development

27 Qs

HyQuizz_Mùa 3_Day 2

HyQuizz_Mùa 3_Day 2

Professional Development

20 Qs

bài 8

bài 8

Professional Development

19 Qs

bài 24.xâu kí tự

bài 24.xâu kí tự

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

Vũ Hân

Used 2+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1: Xâu kí tự được đặt trong cặp dấu:

Nháy đơn ('') hoặc nháy kép ('')

Ngoặc đơn ()

Ngoặc vuông []

Ngoặc nhọn {}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 2: Xâu rỗng là xâu có độ dài bằng bao nhiêu?

1.

2.

0.

3.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3: 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.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 4: Để biết độ dài của xâu s ta dùng hàm gì?

str(s).

len(s).

length(s).

s.len().

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 5: Có bao nhiêu xâu kí tự nào hợp lệ? 1) "123_@##" 2) "hoa hau" 3) "346h7g84jd" 4) python 5) "01028475" 6) 123456

5.

6.

4.

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6: Trong Python, xâu nào chương trình sẽ báo lỗi

'This is a string in Python' message = "This is also a string".

"Beautiful is better than ugly.". Said Tim Peters.

Không có xâu bị lỗi.

'It\'s also a valid string'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7: Cho xâu s1='ha noi', xâu s2='ha noi cua toi'. Khẳng định nào sau đây là đú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.

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?