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
15 questions
SCRIPTING PROGRAMMING WITH PYTHON

Quiz
•
University
10 questions
Session 2

Quiz
•
University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
10 questions
python test 1_23_24

Quiz
•
University
9 questions
Python Basics Quiz for KS3

Quiz
•
11th Grade - University
10 questions
Python Basics

Quiz
•
University
15 questions
Python2

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