How to insert comments in Python ?
Introduction To Python

Quiz
•
Computers
•
University
•
Hard
Rishabh Gupta
Used 25+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
# this is a comment
// this is a comment
/* this is a comment */
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to create a numeric variable age with a value of 10
age = 10
int age = 10
age = "10"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct extension for python files ?
.py
.pyth
.python
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below operators can be used to compare two numbers
==
/
=
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a block of code defined in Python ?
with indentation
with paranthesis
with curly braces
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following is true about comments
Comments are used by programmers to document the code
# is used to create a comment in python
''' can be used to create a comment in python
/* */ can be used to crate a comment in python
Python ignores comments.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
age = '5'
In the code above, age is a
string
integer
floating point
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
25 questions
Python Module 1

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

Quiz
•
10th Grade - University
20 questions
Basics of programming - Quiz - 01

Quiz
•
University - Professi...
16 questions
Python Basics

Quiz
•
KG - University
20 questions
Python Recap

Quiz
•
7th Grade - University
20 questions
Python Strings

Quiz
•
University
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - 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