Which of the following adds a line comment in Python?
Python :: String review

Quiz
•
Computers
•
University
•
Medium
ALBERTO HILARIO
Used 15+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
// comment here
# comment here
"" comment here
/* comment here */
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following concatenates strings in Python?
'hello' & 'world'
'hello' -> 'world'
'hello' += 'world'
'hello' + 'world'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will produce "ppp"?
'p' *= 3
'p' = 'p'*3
'p' * 3
'p' x 3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print('python'[0:2])?
py
yt
pyt
on
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print('python'[1:4])?
pyth
yth
ytho
pyt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print('HELLO WORLD'.lower())?
hello world
Hello world
HELLO WORLD
Hello World
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you capitalize 'hello world'?
'hello world'.uppercase()
'hello world'.upper()
'hello world'.toUpper()
'hello world'.go_upper()
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
COMP177 Mod 8 - Lists & Dictionaries

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
18 questions
Kiểu dữ liệu xâu kí tự trong Python

Quiz
•
10th Grade - University
20 questions
Python Lists

Quiz
•
University
25 questions
Introduction to Python

Quiz
•
KG - University
20 questions
Introduction to Python

Quiz
•
University
20 questions
quiz dasar python

Quiz
•
1st Grade - University
15 questions
Python introduction

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade