Define a variable, in a program.
It is a names item, such as x or numPeople, used to hold a value.
Define an assignment statement.
This assigns a variable with a value, such as x=5. This means x is assigned with 5, and x keeps that value during subsequent statements, until x is assigned again. *The assignment’s left side must be a variable. The right side an expression.
What is a variable declaration?
This declares a new variable, specifying the variable’s name and type.
Define integer
This is a type of variable, that can hold whole number values, like 1, 999, 0, or -25 (not 3.5)
What is an assignment statement?
This assigns the variable on the left-side of the ‘=’ with the current value of the right side expression. Ex: numApples = 8
Define expression.
This may be a number like 80, a variable name like numApples, or a simple calculation like numApples + 1.
Define identifiers, in programming.
This is a name created by a programmer for an item like a variable or function. *these are case sensitive, meaning upper and lower case letters differ.
Define naming conventions.
A set of style guidelines defined by a company, team, teacher, etc. for naming variables.
What are the two common conventions for distinguishing words in an identifier?
Camel case and underscore separated
What is a literal, in arithmetic expressions?
It is a specific value in code, like 2.
What is an operator?
It is a symbol that performs a built-in calculation, like ‘+’ which performs addition
What is the division operator?
/
What is a unary minus?
It is a minus used as a negative.
What is incremental development?
It is the process of writing, compiling, and testing a small amount of code, then writing, compiling, and testing a small amount more, and so on.
What is a floating-point number?
It is a real number like, 98.6, 0.0001, or -666.667. *This term refers to the decimal point being able to appear anywhere in the number “float”.
What is the meaning of variable “float”?
This is a variable declared as type float, which stores a floating-point number.
What is a floating-point literal?
This is a number with a fractional part, even if that fraction is 0, as in 1.0, 0.0, 99.573.
What is a function?
This is a list of statements executed by invoking the function’s name, with such invoking known as a function call.
What is “RandomNumber()”?
A function is built-in Coral function that takes two arguments, lowValue and highValue and returns a random integer in the range lowValue to highValue.
Define “seed”.
For the first call to RandomNumber(), no previous random integer exists, so the function uses a built-in integer.
What is a type conversion?
Is a conversion of one data type to another, such as an integer to a float.
What is an implicit conversion?
Coral automatically performs several common conversions between integer and float types, and such automatic conversion.
Define type cast
Converts a value of one type to another type.
What is a modulo operator?
This operator evaluates to the remainder of the division of two integer operands. Ex: 23 % 10 is 3