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
DP DAY TRIAL QUIZ

Quiz
•
Professional Development
6 questions
Pyweek Day 0

Quiz
•
Professional Development
10 questions
Quiz - Python Programming - Rajendra

Quiz
•
Professional Development
10 questions
Profesi IT bagian 1

Quiz
•
Professional Development
10 questions
Evaluasi Data Integrity

Quiz
•
Professional Development
10 questions
DIGITAL TRANSFORMATION USING AI

Quiz
•
Professional Development
9 questions
Python

Quiz
•
Professional Development
10 questions
7 razred- Računalno razmišljanje i programiranje

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