Python 3 Basics

Quiz
•
Computers
•
9th Grade
•
Medium
Vernon Leigh
Used 8+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a variable in Python?
variable_name = value
name = variable_value
value = variable_name
value = name_variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in Python?
^
*
//
**
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 5 + 3 * 2?
16
10
7
11
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of x after the following code: x = 5 + 3 * 2?
10
16
7
11
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the order of operations in Python?
parentheses, exponentiation, multiplication and division, addition and subtraction
multiplication and division, addition and subtraction, parentheses, exponentiation
parentheses, exponentiation, addition and subtraction, multiplication and division
addition and subtraction, multiplication and division, parentheses, exponentiation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if statement in Python?
if (condition)
if [condition]
if condition:
if {condition}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an else statement in Python?
else
otherwise
if not
else:
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python - Chpt 1 - Review

Quiz
•
9th - 12th Grade
10 questions
python variables and commands

Quiz
•
9th Grade
14 questions
Understanding Python Basics

Quiz
•
8th Grade - University
10 questions
Data structures, operators and variables

Quiz
•
9th - 12th Grade
17 questions
Python Input and Arithmetic Quiz

Quiz
•
9th Grade - University
18 questions
Computer Science (Python)

Quiz
•
9th Grade
15 questions
Python Quiz

Quiz
•
9th - 12th Grade
15 questions
Excel Formulas

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade