
python quiz 1
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
KEERTHI BADUGU
Used 15+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print(2 ** 3);
a) 5
b) 6
c) 8
d) 9
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
a) .pyth
b) .pt
c) .py
d) .pyt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to define a function in Python?
a) func
b) define
c) def
d) function.def
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print("Hello" + "World");
a) Hello World
b) HelloWorld
c) Hello+World
d) Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a core data type in Python?
a) List
b) Dictionary
c) Tuples
d) Class
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert comments in Python code?
a) //
b) #
c) /* */
d) --
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
HTML
Quiz
•
5th Grade - Professio...
25 questions
PAT ROBOTIC Elektronika Dasar 2019-2020
Quiz
•
KG - Professional Dev...
25 questions
PROGRAMACIÓN DE SOFTWARE
Quiz
•
Professional Development
30 questions
Excel Certification Practice test
Quiz
•
Professional Development
26 questions
TI - Curso Introductorio
Quiz
•
Professional Development
30 questions
QUIZZ AIJ XI TKJ - ROUTING STATIS
Quiz
•
KG - Professional Dev...
25 questions
Java Basics
Quiz
•
Professional Development
32 questions
HISTORY OF COMPUTERS AND COMPUTER BASICS
Quiz
•
3rd Grade - Professio...
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
