Variables and Numerical Operators
13
Output: _______
celsius = (fahrenheit - 32) / 1.8
The formula to convert Fahrenheit (F) temperature to Celsius (C) is (EQUATION) Which line of code will accomplish this conversion?
Assignment statement variable
A(n) ________ is a statement that assigns a value to a variable. A(n) _______ is an identifier used to store a value.
3.0
The value of moneyDue is _______.
18
What is the value of the variable result after these lines of code are executed? >>> a = 10 >>> b = 2 >>> c = 5 >>> result = a * b - a / c
20
What is the value of the variable result after these lines of code are executed? >>> a = 2 >>> b = -3 >>> c = 4 >>> result = (a - b) * c
6
What is the value of the variable result after these lines of code are executed? >>> a = 3 >>> b = 2 >>> c = 0 >>> result = a * b - c * b
10
What is the value of the variable result after these lines of code are executed? >>> a = 6 >>> b = 2 >>> c = 3 >>> result = a * b - a / c
result = ab + bc result = a * b - b / c
Which lines of code below generate errors? Select 2 options.
player_score num1 playerScore
Which of the following are valid variable names? Select 3 options.