Search Header Logo

String Manipulation and Validation

Authored by Matthew Green

Computers

10th Grade

Used 3+ times

String Manipulation and Validation
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is concatenation?

Counting the characters in a string
Reversing a string
Separating two or more strings
Combining two or more strings together

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does .upper() do?

Converts all characters in a string to uppercase
Removes all whitespace from a string
Reverses the order of characters in a string
Converts all characters in a string to lowercase

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does .lower() do?

Reverses the order of characters in a string
Capitalizes the first letter of each word in a string
Converts all the characters in a string to lowercase
Counts the number of characters in a string

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these lines of code in Python would output the concatenated string:

John Smith

print('John' . 'Smith')
print('John' + 'Smith')
print('John' + ' ' + 'Smith')

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is Validation?

Checking if something meets certain criteria or standards
Asking someone else to validate it
Guessing if something is correct
Ignoring all criteria and standards

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does .isalpha() do?

It checks if all the characters in a string are numeric.
It checks if all the characters in a string are alphabetic.
It counts the number of vowels in a string.
It converts all characters in a string to uppercase.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does .isdigit() do?

Counts the number of digits in a string
Converts all characters in a string to digits
Checks if the string contains at least one digit
Checks if all the characters in a string are digits

Access all questions and much more by creating a free account

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?