Python String

Python String

Professional Development

6 Qs

quiz-placeholder

Similar activities

K11_CẤU TRÚC RẼ NHÁNH

K11_CẤU TRÚC RẼ NHÁNH

Professional Development

10 Qs

#Sg_Spaic Last season Quiz (ML and Python)

#Sg_Spaic Last season Quiz (ML and Python)

KG - Professional Development

10 Qs

Miro Quiz

Miro Quiz

6th Grade - Professional Development

10 Qs

Pyweek Day 0

Pyweek Day 0

Professional Development

6 Qs

Python Loop Statements

Python Loop Statements

Professional Development

10 Qs

Codeing

Codeing

Professional Development

10 Qs

ESL

ESL

Professional Development

10 Qs

TEST PAPER-TUPLE

TEST PAPER-TUPLE

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