String Manipulation and Validation

String Manipulation and Validation

10th Grade

14 Qs

quiz-placeholder

Similar activities

String Manipulation 2

String Manipulation 2

10th Grade

17 Qs

String Manipulation (Python)

String Manipulation (Python)

9th - 12th Grade

17 Qs

String manipulation

String manipulation

10th Grade

16 Qs

Mastering Python String Techniques

Mastering Python String Techniques

9th - 12th Grade

10 Qs

Certification Review 5/19/22

Certification Review 5/19/22

9th - 12th Grade

16 Qs

8525 AQA  GCSE Computer Science 3.7.1 Relational databases

8525 AQA GCSE Computer Science 3.7.1 Relational databases

7th - 12th Grade

16 Qs

J277 - 10QQ - Basic Python 1

J277 - 10QQ - Basic Python 1

8th - 10th Grade

10 Qs

Quarter 1 PLTW CSE Exam Review

Quarter 1 PLTW CSE Exam Review

10th Grade

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