Python String

Python String

Professional Development

6 Qs

quiz-placeholder

Similar activities

functions

functions

Professional Development

11 Qs

Python_2

Python_2

Professional Development

6 Qs

Snakes

Snakes

3rd Grade - Professional Development

10 Qs

python

python

University - Professional Development

8 Qs

Sample Quiz

Sample Quiz

8th Grade - Professional Development

5 Qs

FinTech 02-3 Python

FinTech 02-3 Python

Professional Development

10 Qs

EPSON BASICO

EPSON BASICO

Professional Development

10 Qs

Python Workshop

Python Workshop

Professional Development

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