Python Basics: String

Python Basics: String

6th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Python Basics Recap

Python Basics Recap

8th - 11th Grade

23 Qs

Python grade 8

Python grade 8

8th Grade

20 Qs

Y8 Spring Assessment

Y8 Spring Assessment

8th Grade

16 Qs

Python review 1

Python review 1

8th Grade

18 Qs

Python list, if

Python list, if

6th - 12th Grade

20 Qs

PYTHON PRACTICE 1

PYTHON PRACTICE 1

8th Grade

18 Qs

Python #1 Grade #7

Python #1 Grade #7

7th Grade

16 Qs

Python debug & calculations

Python debug & calculations

8th - 9th Grade

15 Qs

Python Basics: String

Python Basics: String

Assessment

Quiz

Computers

6th - 8th Grade

Easy

Created by

Edmund Lee

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a string in Python?
A number
A list of words
A sequence of characters
A data table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a string?
"42"
42
True
[4, 2]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: You can use indexing on a string.
True
False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first character in a string?
1
0
-1
It depends

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does word = "hello"; print(word[1]) output?
h
e
l
o

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does text = "banana"; print(text[2:5]) output?
nan
ban
ana
error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does print("hello"[0:3]) output?
hel
llo
ello
he

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?