String Manipulation and Validation

String Manipulation and Validation

10th Grade

14 Qs

quiz-placeholder

Similar activities

Programming

Programming

10th Grade

15 Qs

Unit 2 Quiz - Bootstrap: Algebra

Unit 2 Quiz - Bootstrap: Algebra

6th - 12th Grade

11 Qs

Latihan ICT Part 1

Latihan ICT Part 1

10th Grade

10 Qs

Python Data Types

Python Data Types

9th - 12th Grade

10 Qs

LEFT_RIGHT_MID Excel Functions Quiz

LEFT_RIGHT_MID Excel Functions Quiz

9th Grade - University

10 Qs

Python Quiz 1

Python Quiz 1

1st - 12th Grade

18 Qs

String Method

String Method

10th Grade

10 Qs

Computer Science

Computer Science

9th - 12th Grade

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