Python String

Python String

Professional Development

6 Qs

quiz-placeholder

Similar activities

My School, My Home

My School, My Home

Professional Development

5 Qs

ESL

ESL

Professional Development

10 Qs

Web development 1

Web development 1

Professional Development

10 Qs

NCT U

NCT U

KG - Professional Development

10 Qs

About Me

About Me

Professional Development

10 Qs

Miro Quiz

Miro Quiz

6th Grade - Professional Development

10 Qs

FinTech 05-1 APIs

FinTech 05-1 APIs

Professional Development

11 Qs

Online quizz

Online quizz

Professional Development

4 Qs

Python String

Python String

Assessment

Quiz

Other

Professional Development

Hard

Created by

Wooihaw Tan

Used 16+ times

FREE Resource

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