Which of the following is the correct extension of the Python file?

Python Quiz

Quiz
•
Computers
•
University
•
Medium
Aditya Bakshi
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
.python
b) .pl
c) .py
d) .p
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following character is used to give single-line comments in Python?
a) //
b) #
c) !
d) /*
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
a) 1 2 3
b) error
c) 1 2
d) none of the mentioned
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code snippet if x=1?
x<<2
a) 4
b) 2
c) 1
d) 8
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is true for variable names in Python?
a) underscore and ampersand are the only two special characters allowed
b) unlimited length
c) all private members must have leading and trailing underscores
d) none of the mentioned
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
a) error
b) 1 2 3 4
c) a b c d
d) 0 1 2 3
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python program?
a) error
b) 0 1 2 0
c) 0 1 2
d) none of the mentioned
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Python Basics

Quiz
•
University
9 questions
Python

Quiz
•
University
15 questions
SCRIPTING PROGRAMMING WITH PYTHON

Quiz
•
University
12 questions
CSSE Quiz Day2

Quiz
•
University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
9 questions
Python Basics Quiz for KS3

Quiz
•
11th Grade - University
15 questions
Python Programming Intermediate-1

Quiz
•
University
15 questions
CSE 102 Exam 2 Practice

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