Python Print and String Manipulation

Python Print and String Manipulation

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

ครูจรัสเดช ชัชวาลย์

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does the command `print("APW school".lower()[0:3])` output?

Back

apw

2.

FLASHCARD QUESTION

Front

What does the command `print("APW school".lower())` output?

Back

apw school

3.

FLASHCARD QUESTION

Front

What does the command `print("APW School"[:3])` output?

Back

APW

4.

FLASHCARD QUESTION

Front

What is the result of the expression `20%5`?

Back

0

5.

FLASHCARD QUESTION

Front

What error is shown in the command `print("APW School)`?

Back

EOL Error.

6.

FLASHCARD QUESTION

Front

What is the output of the expression `15 // 4`?

Back

3

7.

FLASHCARD QUESTION

Front

What does the command `print("Hello World"[6:])` output?

Back

World

8.

FLASHCARD QUESTION

Front

What does the command `print("Python Programming".upper())` output?

Back

PYTHON PROGRAMMING