Python Strings

Python Strings

7th - 9th Grade

10 Qs

quiz-placeholder

Similar activities

AI and Python: Ch.1 Revision

AI and Python: Ch.1 Revision

9th Grade

10 Qs

Administrasi Sistem Jaringan

Administrasi Sistem Jaringan

1st - 10th Grade

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

HTML

HTML

9th - 12th Grade

12 Qs

Do you know alot about Roblox?

Do you know alot about Roblox?

2nd Grade - University

10 Qs

Основные понятия языка программирования PYTHON

Основные понятия языка программирования PYTHON

7th Grade

12 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

Python Strings

Python Strings

Assessment

Quiz

Computers

7th - 9th Grade

Practice Problem

Hard

Created by

Ben Redmond

Used 19+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will this line of code display in the shell window if name holds the value "Fred"?

print(name[2])

F

r

e

d

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will this line of code display in the shell window if name holds the value "Fred"?

print(name[1:3])

Fre

re

red

Fr

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will this line of code display in the shell window if name holds the value "Fred"?

print(name[1:])

Fre

re

red

Fr

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will this line of code display in the shell window if name holds the value "Fred"?

print(name[:3])

Fre

re

red

Fr

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will this line of code display in the shell window if name holds the value "Fred"?

print(name.upper())

Fred

fred

FRED

fRED

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will this line of code display in the shell window if name holds the value "Fred"?

print(name.lower())

Fred

fred

FRED

fRED

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will this line of code display in the shell window if name holds the value "Fred"?

print(name[0].lower())

f

F

fred

fRED

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?