NEW
Font size
WorksheetsComments in Python
Total questions: 10
Worksheet time: 5mins
A line of text that Python won't try to run as code
comment
modulo
variable
boolean
Which is used to make single line comments?
#
%
**
()
___________ represents multi-line comments
**
"""
#
%
Which of the following is correct?
Comments are for programmers for better understanding of the program.
Python Interpreter ignores comment.
You can write multi-line comments in Python using triple quotes, either ''' or """.
All of the above
The spelling and grammar rules of a programming language is called
GSP
syntax
code
comments
How to insert comments in Python ?
/* this is a comment */
// this is a comment
# this is a comment
''' this is a comment """
What is the correct extension for python files ?
.py
.pyth
.python
What will the output be from the following code?
# print("This Program")
print("Hello world!")
Hello world!
SyntaxError
This Program
Hello world
print(Hello world!)
Comments are used to
Describe what is going to happen in a sequence of code.
Document who wrote the code
Turn off a line of code
All of the above
