Strings in python - Test

Strings in python - Test

11th Grade

50 Qs

quiz-placeholder

Similar activities

GCSE Python Legends

GCSE Python Legends

1st - 12th Grade

45 Qs

#2 CIW Data Analyst - Certification Prep

#2 CIW Data Analyst - Certification Prep

9th Grade - University

54 Qs

iMedia R093 Mix Up#2

iMedia R093 Mix Up#2

9th - 12th Grade

45 Qs

Grade 4-Sistem Komputer

Grade 4-Sistem Komputer

4th Grade - University

50 Qs

AQA 8525 GCSE CS 3.2.10 Subroutines & 3.2.11 Robust & Secure

AQA 8525 GCSE CS 3.2.10 Subroutines & 3.2.11 Robust & Secure

10th - 11th Grade

50 Qs

Computer Basics

Computer Basics

9th - 12th Grade

52 Qs

Journalistsic Integrity and Ethics

Journalistsic Integrity and Ethics

9th - 12th Grade

50 Qs

XIRPL2_PASQUIZZ

XIRPL2_PASQUIZZ

1st Grade - Professional Development

50 Qs

Strings in python - Test

Strings in python - Test

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Sangeetha John

Used 94+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What letter will be printed on the screen after running this code:

e

x

t

Nothing prints

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the operator can be used in Strings?

+

*

Both of the above

None of the above

3.

MULTIPLE CHOICE QUESTION

45 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'"")

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed by the following statement?

print("A" in "APCSP")

True

False

Error

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

7

9

8

6

Create a free account and access millions of resources

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?