Python Strings

Python Strings

7th - 9th Grade

10 Qs

quiz-placeholder

Similar activities

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Review Komputer Mid SMP (1)

Review Komputer Mid SMP (1)

8th Grade

15 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

UH MENGENAL MS.WORD

UH MENGENAL MS.WORD

7th Grade

10 Qs

WW2 : TLE QUIZ

WW2 : TLE QUIZ

9th Grade

11 Qs

Informatika

Informatika

6th - 8th 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

Access all questions and much more by creating a free account

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?