Strings and numbers

Strings and numbers

11th Grade

15 Qs

quiz-placeholder

Similar activities

CE4 - Health and Green IT

CE4 - Health and Green IT

7th - 11th Grade

12 Qs

EmTech Q1 Pre-Test 4

EmTech Q1 Pre-Test 4

11th Grade

10 Qs

Review Quiz #2- Productivity Tools

Review Quiz #2- Productivity Tools

11th - 12th Grade

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

การเขียนโปรแกรม

การเขียนโปรแกรม

10th - 11th Grade

20 Qs

Aplikom

Aplikom

1st Grade - University

20 Qs

PERFORMANCE TASK 3 |EMP Tech LC2

PERFORMANCE TASK 3 |EMP Tech LC2

11th Grade

10 Qs

JSPS Competition Hackathon - Scratch Language - Grade 1

JSPS Competition Hackathon - Scratch Language - Grade 1

2nd Grade - University

10 Qs

Strings and numbers

Strings and numbers

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Craig Ellis

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?