Strings and numbers

Strings and numbers

11th Grade

15 Qs

quiz-placeholder

Similar activities

Word 2016 - Lessons 1 & 2

Word 2016 - Lessons 1 & 2

9th - 12th Grade

20 Qs

CodeHS - Intro to Python - Basics and Console Interaction

CodeHS - Intro to Python - Basics and Console Interaction

9th Grade - Professional Development

20 Qs

Lists and Loops in Computer Science

Lists and Loops in Computer Science

7th - 11th Grade

15 Qs

Lists and Loops in Python

Lists and Loops in Python

7th - 11th Grade

15 Qs

Compound Operators in Java

Compound Operators in Java

9th - 12th Grade

12 Qs

For Loops (Java)

For Loops (Java)

9th - 12th Grade

14 Qs

Functions and Parameters Summative preview

Functions and Parameters Summative preview

9th - 12th Grade

10 Qs

Python Basics ;)

Python Basics ;)

11th 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?