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

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

Professional Development

22 Qs

quiz-placeholder

Similar activities

Câu Hỏi Quiz Về Công Cụ GenAI

Câu Hỏi Quiz Về Công Cụ GenAI

Professional Development

17 Qs

Java Collections Framework Quiz 1

Java Collections Framework Quiz 1

Professional Development

19 Qs

Chuyên đề. Cấu trúc điều khiển

Chuyên đề. Cấu trúc điều khiển

Professional Development

25 Qs

Automation test

Automation test

Professional Development

20 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

AI

Enhance your content

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

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

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?