
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
12 questions
Cycle 4: Session 8 Review.
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
14 questions
Web Basic
Quiz
•
Professional Development
15 questions
Sec+ Quiz - 3
Quiz
•
Professional Development
10 questions
ChatGPT for Work
Quiz
•
Professional Development
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
10 questions
Outsolu Quiz
Quiz
•
Professional Development
10 questions
HERData
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development