Python Strings

Python Strings

8th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Computer Security

Computer Security

8th - 10th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Ethical Issues of I.T.

Ethical Issues of I.T.

7th - 8th Grade

11 Qs

Python. Функції

Python. Функції

9th Grade

17 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

JAVA IDENTIFIERS

JAVA IDENTIFIERS

6th - 8th Grade

14 Qs

PITD Assessment

PITD Assessment

8th Grade

10 Qs

Python Strings

Python Strings

Assessment

Quiz

Computers

8th - 12th Grade

Practice Problem

Medium

Created by

Suman Joshi

Used 1K+ times

FREE Resource

AI

Enhance your content in a minute

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

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 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'"")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed by the following statement?

print("A" in "APCSP")

True

False

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following expression:

"dog" < "Dog"

They are the same word

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

data = "No Way!" The expression len(data) evaluates to:

7

9

8

6

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator returns True if target string is somewhere in the search string; otherwise it returns False.

==

!=

in

is

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?