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
20 questions
Python Recap

Quiz
•
7th Grade - University
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
15 questions
Python introduction

Quiz
•
University
20 questions
Python Programming Quiz

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

Quiz
•
University
20 questions
Python Strings

Quiz
•
University
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
25 questions
Introduction to Python

Quiz
•
KG - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade