Module 2
An assignment statement assigns the variable on the left-side of the ____ with the current value of the right-side expression
=
___________ variables are typically used for values that are _________, like 98.6 degrees, 0.00001 meters, or -666.667 grams.
Floating-point measured
Naming style where words are lowercase and separated by an underscore, as in num_apples or people_on_bus.
Underscore separated:
An ___________ _________ assigns a variable with a value, such as x = 5. That statement means x is assigned with 5, and x keeps that value during subsequent statements, until x is assigned again.
assignment statement
Special operators called ________ operators provide a shorthand way to update a variable
compound
An initialized variable whose value cannot change is called a ______________
constant variable
A variable declared as type _______ stores a floating-point number.
double
A floating-point literal using scientific notation is written using an ___ preceding the power-of-10 exponent
e
An expression ________ to a value, which replaces the expression.
evaluates
An _________ is a combination of items, like variables, literals, operators, and parentheses, that evaluates to a value, like 2 * (x + 1). A common place where they are used is on the _____ side of an assignment statement, as in y = 2 * (x + 1).
expression right
A ________-point number is a real number
floating
An assignment statement's left side must be a ________. The right side can be an ________
variable expression
A __________ _________ is a statement that declares a new variable, specifying the variable's ______ and ______
variable declaration name type
__________ ___________ is the process of writing, compiling, and testing a small amount of code, then writing, compiling, and testing a small amount more
Incremental development
_________ variables are typically used for values that are _______, like 42 cars, 10 pizzas, or -95 days.
Integer counted
naming style that abuts multiple words, capitalizing each word except the first, as in numApples or peopleOnBus.
Lower camel case
Floating-point variables are also used when dealing with _______ of countable items, such as the average number of cars per household.
fractions
A ______ is a list of statements executed by invoking the (vocab words)'s name, such invoking known as a _______ _______
function function call
A name created by a programmer for an item like a variable or function is called an _______.
identifier
Increasing a variable's value by 1, as in x = x + 1, is common, and known as ________ the variable.
incrementing
An identifier must: - be a sequence of ______ (a-z, A-Z), ________ (_), and ______(0-9) - start with a _____ or _______
letters underscores digits; letter underscore
scanf and printf use %____ to specify a double type in the string literal
lf
A ______ is a specific value in code like 2.
literal
A floating-point _______ is a number with a fractional part
literal
An _________ is a symbol that performs a built-in calculation, like +, which performs addition.
operator
An expression is evaluated using the order of standard mathematics, such order known in programming as _______________
precedence rules
A good practice is to include a single ______ around operators for readability
space
In a program, a _______ is a named item, such as x or numPeople, used to hold a value.
variable