STRINGS

STRINGS

11th Grade

25 Qs

quiz-placeholder

Similar activities

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python output based questions

Python output based questions

10th - 11th Grade

20 Qs

Python Basics (CodeHS)

Python Basics (CodeHS)

7th - 12th Grade

20 Qs

Basics of C Programming

Basics of C Programming

8th - 12th Grade

20 Qs

Grade 7 Python Programming Quiz

Grade 7 Python Programming Quiz

7th Grade - University

20 Qs

ความรู้พื้นฐาน Python

ความรู้พื้นฐาน Python

10th Grade - University

20 Qs

Python String

Python String

11th Grade

21 Qs

Dasar Pemrograman 3

Dasar Pemrograman 3

10th - 11th Grade

20 Qs

STRINGS

STRINGS

Assessment

Quiz

Computers

11th Grade

Medium

CCSS
L.2.2C

Standards-aligned

Created by

Sunita Dash

Used 4+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Each item in a list has an "address" or index. The first index in a Python list is what?
0
1
a
A

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What output will this code produce?
Exeter
4
6
city

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python accepts single ('), double (") and triple ("""or ''') quotes to denote strings. Which of the following is NOT acceptable Python syntax?

print('Hello World')

print("Hello World")

print('Hello World")

print(""'Hello World'"")

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statement?

print("A" in "APCSP")

True

False

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Evaluate the following expression:

"dog" < "Dog"

They are the same word

True

False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

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?