Lệnh làm việc với xâu kí tự

Lệnh làm việc với xâu kí tự

1st Grade

51 Qs

quiz-placeholder

Similar activities

Informatyka Internet, siec

Informatyka Internet, siec

1st Grade

47 Qs

soal tik kelas 4 23012024

soal tik kelas 4 23012024

1st - 5th Grade

55 Qs

Python Knowledge Check

Python Knowledge Check

1st - 5th Grade

55 Qs

Ôn tập ic3 spark sau mùa covid-19

Ôn tập ic3 spark sau mùa covid-19

1st - 2nd Grade

49 Qs

Quiz kl8 html

Quiz kl8 html

1st - 6th Grade

51 Qs

Parts of Computers and Their Uses

Parts of Computers and Their Uses

1st - 3rd Grade

50 Qs

TIK SD/MI

TIK SD/MI

1st - 5th Grade

50 Qs

Құрбан Аружан

Құрбан Аружан

KG - 1st Grade

50 Qs

Lệnh làm việc với xâu kí tự

Lệnh làm việc với xâu kí tự

Assessment

Quiz

Computers

1st Grade

Practice Problem

Hard

Created by

Vũ Thị Lành

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

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to find the position of a substring in another string?

test()

in()

find()

split()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is inaccurate regarding the 'in' operator?

The expression checks if string 1 is in string 2: in

The 'in' operator returns True if string 1 is in string 2.

The 'in' operator returns False if string 1 is not in string 2.

The 'in' operator is the only operator that can solve the problem of checking if a string is contained in another string.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following commands? s = "12 34 56 ab cd de " print(s.find(" ")) print(s.find("12")) print(s.find("34"))

2, 0, 3.

2, 1, 3.

3, 5, 2.

1, 4, 5.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is correct regarding methods in Python?

Python has a special command dedicated to strings.

The syntax of the find command is: .find().

The find command will find the first position of the substring in the parent string.

The find command has a unique syntax.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What value does the following command return? >> "abcdabcd".find("cd") >> "abcdabcd".find("cd", 4)

2, 6.

3, 3.

2, 2.

2, 7.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to split a string?

split()

join()

remove()

copy()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to split a string?

split()

join()

remove()

copy()

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?