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 Basics

Quiz
•
KG - University
15 questions
Python Introduction

Quiz
•
9th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
10 questions
Python Arithmetic

Quiz
•
9th Grade - University
16 questions
Python Basics

Quiz
•
KG - University
15 questions
Python Conditionals and If Statements

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade