Python String

Quiz
•
Other
•
Professional Development
•
Hard
Wooihaw Tan
Used 16+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
What output will this Python code produce?
Kuala Lumpur
11
12
x
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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')
Similar Resources on Wayground
10 questions
About Me

Quiz
•
Professional Development
10 questions
Команда разработки

Quiz
•
Professional Development
10 questions
GFG Quiz

Quiz
•
11th Grade - Professi...
10 questions
Python Variables Quiz

Quiz
•
Professional Development
7 questions
Partner Gathering 2024-QUIZ 1

Quiz
•
Professional Development
10 questions
AI-Driven Workplace Transformation -W1

Quiz
•
Professional Development
5 questions
My School, My Home

Quiz
•
Professional Development
10 questions
Web development 1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade