String Manipulation Quiz

String Manipulation Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

MYSQL Functions

MYSQL Functions

12th Grade

8 Qs

String Methods

String Methods

12th Grade - University

9 Qs

Mastering Python String Techniques

Mastering Python String Techniques

9th - 12th Grade

10 Qs

Progamming - Java Syntax

Progamming - Java Syntax

11th - 12th Grade

15 Qs

Computer Science Principles

Computer Science Principles

9th - 12th Grade

8 Qs

Code.org CSA

Code.org CSA

9th - 12th Grade

8 Qs

Python Intro 1

Python Intro 1

7th - 12th Grade

11 Qs

3.4 Strings

3.4 Strings

10th - 12th Grade

5 Qs

String Manipulation Quiz

String Manipulation Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Mark Halfyard

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of string manipulation?

To extract characters from a string

To create a new string

To change the font of a string

To add colors to a string

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to get the length of a string?

len(string)

string.len()

length(string)

string.length()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to convert a string to uppercase?

string.uppercase()

toUpperCase(string)

string.upper()

string.toUpper()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the substring command do?

Returns the entire string

Returns part of the string

Reverses the string

Counts the number of characters in the string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is concatenation of strings achieved?

Using the join command

Using the merge command

Using the append command

Using the addition or plus operator

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the ASC command?

Returns the character from the ASCII number

Counts the number of characters in a string

Converts a string to lowercase

Returns the ASCII value of a character

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what is the equivalent of string.length()?

len(string)

string.len()

string.length

length(string)

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?