Tin học bài 24

Tin học bài 24

10th Grade

10 Qs

quiz-placeholder

Similar activities

HTML

HTML

9th - 12th Grade

12 Qs

Bai Tap Bai 18 Tin hoc 10

Bai Tap Bai 18 Tin hoc 10

10th Grade

10 Qs

Digital Etiquette

Digital Etiquette

4th Grade - University

15 Qs

Keyboarding Terms

Keyboarding Terms

9th - 12th Grade

10 Qs

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

Komputer dan Jaringan Dasar Semester 2 - Implementasi dan Analisis Jaringan

Komputer dan Jaringan Dasar Semester 2 - Implementasi dan Analisis Jaringan

10th Grade

10 Qs

CIW

CIW

9th - 12th Grade

15 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Tin học bài 24

Tin học bài 24

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Tình Hồng

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

10 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?

A. len(s).

B. length(s).

C. s.len().

D. s. length().

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

print(kq)

True

False

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

Vòng hạn vô hạn

3.

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.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

message = "This is also a string".

A. 'This is a string in Python'

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

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

D. 'It\'s also a valid string'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A.16

B.17

C.18

D.15

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

.

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

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

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

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

7.

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’

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

Already have an account?

Discover more resources for Computers