3.3 Mathematical Expressions

Assessment
•
Anyi Wang
•
Computers
•
9th - 12th Grade
•
1 plays
•
Easy
Student preview

5 questions
Show answers
1.
Multiple Choice
What is the result of the expression (5 + 2) * 3 in Python?
15
21
17
7
2.
Multiple Choice
What will the following code print: num1 = 20; num2 = num1 / 2; num3 = num2 * 10 + 3; print(num3)?
203
100
103
53
3.
Multiple Choice
Which of the following represents modulus in Python?
//
*
%
+
4.
Multiple Choice
Which of the following correctly represents the order of operations (PEMDAS) in mathematical expressions?
Parentheses, Exponents, Multiplication, Division, Addition, Subtraction
Exponents, Multiplication, Addition, Division, Parentheses, Subtraction
Multiplication, Addition, Subtraction, Exponents, Parentheses, Division
Division, Exponents, Parentheses, Addition, Subtraction, Multiplication
5.
Multiple Choice
Which of the following Python functions correctly calculates the value of a linear function y=mx+b for given values of m, b, and x?
def linear_function(m, x, b):
return m + b * x
def linear_function(x, m, b):
return m * x + b
def linear_function(x, b, m):
return x + b + m
def linear_function(b, m, x):
return b * x + m
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
Python Quiz for Grade 10 Students

•
10th Grade
C# Programming Basics Quiz

•
10th Grade
Python 2 Conditionals Quiz

•
12th Grade
G12am_WSheet_Sprint 1.3 Mathematical Expressions

•
12th Grade
Python Basics for Grade 10

•
10th Grade
Local and global variables

•
6th - 12th Grade
pr 15

•
12th Grade
2.1.2 Flowcharts and algorithms

•
10th Grade