String Handling Flashcard

String Handling Flashcard

Assessment

Flashcard

Computers

11th Grade

Hard

Created by

shaf cangil

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

A string is a sequence of: Numbers, Characters, Variables, Functions

Back

Characters

2.

FLASHCARD QUESTION

Front

The len() function in Python is used to:

Back

Find the length of a string

3.

FLASHCARD QUESTION

Front

The upper() method in Python is used to:

Back

Convert a string to uppercase

4.

FLASHCARD QUESTION

Front

The __________ method can be used to remove leading and trailing whitespace from a string.

Back

strip

5.

FLASHCARD QUESTION

Front

The replace() method in Python is used to:

Back

Replace a substring with another substring

6.

FLASHCARD QUESTION

Front

The find() method in Python returns:

Back

The index of the first occurrence of a substring

7.

FLASHCARD QUESTION

Front

The first character in a string has an index of 0.

Back

true

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?