String Manipulation and Validation

String Manipulation and Validation

10th Grade

14 Qs

quiz-placeholder

Similar activities

OCR GCSE Computer Science: 2.6 Data Representations (Part 1)

OCR GCSE Computer Science: 2.6 Data Representations (Part 1)

9th - 10th Grade

19 Qs

Quarter 1 PLTW CSE Exam Review

Quarter 1 PLTW CSE Exam Review

10th Grade

14 Qs

Variables

Variables

7th - 10th Grade

16 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Mastering Python String Techniques

Mastering Python String Techniques

9th - 12th Grade

10 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Certification Review 5/19/22

Certification Review 5/19/22

9th - 12th Grade

16 Qs

String Manipulation

String Manipulation

9th - 11th Grade

13 Qs

String Manipulation and Validation

String Manipulation and Validation

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Matthew Green

Used 2+ times

FREE Resource

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

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?