
python quiz 1
Quiz
•
Computers
•
Professional Development
•
Easy
KEERTHI BADUGU
Used 15+ times
FREE Resource
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) --
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
26 questions
RL Tema 18. Cuestionario
Quiz
•
Professional Development
25 questions
The Best Minecraft Quiz Ever!!!!!
Quiz
•
1st Grade - Professio...
25 questions
Ubuntu sistema d'arxius
Quiz
•
Professional Development
26 questions
основы алгоритмизации и программирования
Quiz
•
Professional Development
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
25 questions
excel / elektronik hesaplama
Quiz
•
Professional Development
25 questions
AC Tema 8. Cuestionario
Quiz
•
Professional Development
25 questions
WEBZEN MCQ
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
