Python Training - Basics
Quiz
•
Computers
•
Professional Development
•
Hard
Nathan Swain
Used 4+ times
FREE Resource
Enhance your content
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
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
15 questions
Fellowship program 2021
Quiz
•
University - Professi...
10 questions
EAE_DataScience_S2
Quiz
•
Professional Development
10 questions
MS Excel Basics Quiz
Quiz
•
Professional Development
10 questions
HERData
Quiz
•
Professional Development
12 questions
Cycle 4: Session 8 Review.
Quiz
•
Professional Development
10 questions
Introduction to Computer
Quiz
•
Professional Development
10 questions
Blockchain Day 2 Final Quiz
Quiz
•
Professional Development
15 questions
Queues
Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
