
Python Basics Quiz
Quiz
•
Other
•
9th Grade
•
Practice Problem
•
Medium
Hamza Motiyar
Used 2+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
.py
.python
.pt
.exe
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name?
2name
my-name
name_2
my name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the print() function do?
Takes input
Loops through values
Outputs text to the screen
Defines a variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a comment in Python?
/* This is a comment */
// This is a comment
# This is a comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take input from the user in Python?
scan()
get()
input()
read()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print("5" + "3")?
8
53
Error
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to assign a value to a variable?
let x = 5
x
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
20 questions
seni budaya kls 8 (Rosdiah)
Quiz
•
9th Grade
13 questions
rubiks cube quiz
Quiz
•
KG - Professional Dev...
20 questions
Area 4 July 3rd week quiz
Quiz
•
1st - 12th Grade
19 questions
Intervalos
Quiz
•
1st - 10th Grade
20 questions
Conjunciones Noveno
Quiz
•
9th Grade
15 questions
Test Anxiety Review Practice
Quiz
•
9th - 12th Grade
15 questions
Once Upon a Time Season 1
Quiz
•
9th Grade - University
16 questions
Fortnite
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Exponent Rules Review
Quiz
•
8th - 9th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
