
Python Programming Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Skrt Hurt
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of comments in a Python program?
To break up the code into smaller functions
To describe sections of code and document what functions do
To store values in memory
To perform mathematical operations on variables and values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main function used for in a Python program?
To store values in memory
To perform mathematical operations
To control the flow of the program by calling other functions
To import external modules
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a basic data type in Python?
String
Integer
Float
Array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of type casting '10.5' using int('10.5') in Python?
10
10.5
An error
'10'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the operator '//' perform in Python?
Addition
Subtraction
Integer Division
Exponentiation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the operation "%" do?
Returns the remainder then assign result.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are conditionals?
Tests that allow you to make decisions in your code, return as True or False.
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
Quiz on Excel
Quiz
•
12th Grade
20 questions
TEST1.PY
Quiz
•
10th Grade - University
21 questions
CITY & GUILDS PROOF CORRECTION SIGNS
Quiz
•
10th - 12th Grade
20 questions
EDPM Paper 01 General Profiency F. Gumbs
Quiz
•
7th - 12th Grade
16 questions
LA3.C3: Variables
Quiz
•
9th Grade - University
20 questions
Data structure test1
Quiz
•
12th Grade
18 questions
School Mangement System ICT 0417 IGCSE
Quiz
•
10th - 12th Grade
17 questions
Music, Politics, Poetry, Tech 2021
Quiz
•
3rd Grade - University
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
