String Formats Quiz

String Formats Quiz

9th Grade

7 Qs

quiz-placeholder

Similar activities

ICT SKILLS

ICT SKILLS

9th - 10th Grade

10 Qs

Navy General Orders (HARD)

Navy General Orders (HARD)

9th - 12th Grade

11 Qs

Arduino 1 - Sekolah Robot Indonesia

Arduino 1 - Sekolah Robot Indonesia

5th Grade - University

10 Qs

Unity 1 - Урок 2

Unity 1 - Урок 2

KG - 10th Grade

10 Qs

Fundamentals of law

Fundamentals of law

1st - 12th Grade

12 Qs

February Lessons

February Lessons

7th - 9th Grade

12 Qs

August 25th PD

August 25th PD

6th - 12th Grade

10 Qs

Spanish

Spanish

KG - University

10 Qs

String Formats Quiz

String Formats Quiz

Assessment

Quiz

Other

9th Grade

Medium

Created by

Teetreeo Pittman

Used 4+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is string concatenation?

Splitting a string into multiple smaller strings.

Combining two or more strings together to create a new string.

Converting a string into a number.

Removing all spaces from a string.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used for string concatenation in Python?

*

+

-

/

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of 'Hello' + 'World' in Python?

WorldHello

HW

HelloWorld

Hello World

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is string formatting?

String formatting is the process of converting a string to uppercase.

String formatting is the process of creating a formatted string by substituting placeholders with values.

String formatting is the process of removing all whitespace from a string.

String formatting is the process of reversing the characters in a string.

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Complete the following code to make the string lowercase:

name = "Billy Bob"

print(____.lower())

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Complete the following code to format the input statement to uppercase:

points = int(input("How many points did you score?")._____())

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Complete the following code to format the input statement to convert all upper case to lower case, and lower case to upper case :

myvar = input("Who's your favorite artist?").________()