Python String

Python String

Professional Development

6 Qs

quiz-placeholder

Similar activities

K10_LÀM QUEN VỚI NGÔN NGỮ LẬP TRÌNH BẬC CAO

K10_LÀM QUEN VỚI NGÔN NGỮ LẬP TRÌNH BẬC CAO

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

Rust - Codeshow - 2020 - 1

Rust - Codeshow - 2020 - 1

Professional Development

10 Qs

Python Basics

Python Basics

Professional Development

10 Qs

Python Flow Control

Python Flow Control

Professional Development

8 Qs

Kuis Morning Activity 12/7

Kuis Morning Activity 12/7

Professional Development

10 Qs

Django Basic

Django Basic

Professional Development

10 Qs

CONNECTING WITH THE CUSTOMER

CONNECTING WITH THE CUSTOMER

Professional Development

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