Program Development - Python: Strings

Program Development - Python: Strings

9th - 10th Grade

25 Qs

quiz-placeholder

Similar activities

CSS Box Model

CSS Box Model

10th Grade

20 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Practice Quiz for Term 1

Practice Quiz for Term 1

10th Grade

20 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

Terminos ITGS x

Terminos ITGS x

8th Grade - University

20 Qs

Week 11 Quiz 2

Week 11 Quiz 2

10th Grade - University

20 Qs

Standard Linux Commands

Standard Linux Commands

1st - 10th Grade

20 Qs

Icon challenge

Icon challenge

4th - 9th Grade

26 Qs

Program Development - Python: Strings

Program Development - Python: Strings

Assessment

Quiz

Computers

9th - 10th Grade

Practice Problem

Hard

Used 70+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

For strings, the + operator represents 

Concatenation
Addition
Appending
Recantation 

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed by the following statements?
s = "programming rocks"
print(len(s))

12
17
16
nothing - there is an error

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is printed by the following statements?
cheer = "Go Eagles!"
print(cheer[0:1])

G
"Go"
Go
o

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is printed by the following statements?
cheer = "Go Eagles!"
print(cheer[5:8])

gle
agle
gles
agles

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is printed by the following statements?
ss = "Hola, friend"
print(ss.upper())

hola, friend
Hola, Friend
HOLA, FRIEND
Hola, friend

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed by the following statements?
s = "python rocks"
print(s[-3])

c
k
s
Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed by the following statements?
s = "python rocks"
print(s[1] * s.index("n"))

Error
55555
n
yyyyy

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?