Strings and numbers

Strings and numbers

11th Grade

15 Qs

quiz-placeholder

Similar activities

Python Basics ;)

Python Basics ;)

11th Grade

20 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

Python - Flow control

Python - Flow control

11th Grade

10 Qs

string

string

11th Grade

12 Qs

Functions and Parameters Summative preview

Functions and Parameters Summative preview

9th - 12th Grade

10 Qs

Quarter 3 Final Exam: Functions and Parameters

Quarter 3 Final Exam: Functions and Parameters

9th - 12th Grade

20 Qs

Ch 07_Publishing Awesome

Ch 07_Publishing Awesome

9th - 12th Grade

20 Qs

Strings and numbers

Strings and numbers

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Craig Ellis

Used 9+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For strings, the + operator represents 
Concatenation
Addition
Appending
Recantation 

2.

MULTIPLE CHOICE QUESTION

1 min • 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

1 min • 1 pt

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

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statements?
cheer = "Go Eagles!"
print cheer[5:8]
gle
agle
gles
agles

5.

MULTIPLE CHOICE QUESTION

1 min • 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

1 min • 1 pt

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

7.

MULTIPLE CHOICE QUESTION

1 min • 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?