Variables and Numerical Operators

¡Supera tus tareas y exámenes ahora con Quizwiz!

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.


Conjuntos de estudio relacionados

fin 240 kaplowitz worksheet 20.1: the uniform commercial code and the scope of articles 2 and 2a

View Set

SAUNDERS infectious and communicable diseases

View Set

Ch. 8 and Ch.9 Lifespan Review Exam 2

View Set

CHAPTER 49: DRUGS USED TO TREAT ANEMIAS

View Set

Access MOD4: Creating Advanced Queries

View Set

AP Psychology: Unit 14 Test Review

View Set

Human Relations Chapter 4 Multiple Choice Study Questions

View Set

MSM6610: Theories of Organizational Behavior - Quiz 3

View Set