
Python Training - Basics
Authored by Nathan Swain
Computers
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code is an example of which data type in Python:
x = [ 1, 2, 3]
Array
List
Tuple
Dictionary
Answer explanation
Lists are created using square brackets [].
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code is an example of which Python data type:
x = {"a": 1, "b": 2}
Array
List
Tuple
Dictionary
Answer explanation
The curly braces {} give it away, this is an example of a Dictionary.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Spaces are not important in Python.
True
False
Answer explanation
Spacing is very important in Python. Indenting code indicate blocks of code. The best practice is to indent using 4 spaces.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is used to start a Python comment?
#
/
!
-
Answer explanation
Python was using hashtags before they were cool!
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are valid Python arithmetic operators?
$
**
//
%
Answer explanation
The supported arithmetic operators of Python are: +, -, , /, //, %, and ** .
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are valid Python comparison operators?
>
!=
=
<=
Answer explanation
A single = is the assigment operator. To compare equality, use two == .
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are valid types of loops in Python?
do
while
do while
for
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
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
12 questions
React/Javascript Quizz
Quiz
•
Professional Development
10 questions
Friday Fun
Quiz
•
Professional Development
11 questions
Technology Morning Tea Quiz
Quiz
•
KG - Professional Dev...
10 questions
SQL Commands - SELECT Statements
Quiz
•
Professional Development
10 questions
Day 3 C Programming quiz
Quiz
•
Professional Development
10 questions
Bedrock Immersion Day Quiz
Quiz
•
Professional Development
10 questions
Fun and Interesting Facts about Technology
Quiz
•
University - Professi...
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 Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...