Python String

Python String

Professional Development

6 Qs

quiz-placeholder

Similar activities

gta san adres

gta san adres

KG - Professional Development

10 Qs

Zootopia

Zootopia

3rd Grade - Professional Development

10 Qs

CMPS QUIZ

CMPS QUIZ

Professional Development

10 Qs

Tabligh Akbar 2023

Tabligh Akbar 2023

Professional Development

10 Qs

Pentagon

Pentagon

KG - Professional Development

10 Qs

Pertiwi Menginspirasi

Pertiwi Menginspirasi

Professional Development

10 Qs

Ramadan Facts

Ramadan Facts

Professional Development

10 Qs

Engagements DD

Engagements DD

Professional Development

10 Qs

Python String

Python String

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

Wooihaw Tan

Used 16+ times

FREE Resource

AI

Enhance your content in a minute

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

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

a

l

L

Nothing is printed

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

r

u

a

Nothing is printed

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What output will this Python code produce?

Kuala Lumpur

11

12

x

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What output will this Python code produce?

M

s

Msl

Mly

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider this statement:

print(r'foo\\bar\nbaz')


Which of the following is the correct REPL output?

foo\bar\nbaz

foo\bar

baz

foo\\bar\nbaz

foo\\barnbaz

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following Python codes produce the following output (you can select multiple answers)?

I haven't eaten all day and I don't feel hungry.

print("I haven't eaten all day and I don't feel hungry")

print('I haven't eaten all day and I don't feel hungry')

print('I haven\'t eaten all day and I don\'t feel hungry')

print('I haven"t eaten all day and I don"t feel hungry')

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?