The data type that should be used to store values for money.
Floating point (float)
The term used when a variable name and data type are specified.
Declaration
True or False
The mathematic order of operations in C++ flows left-to-right unless encased in parentheses.
False.
C++ follows standard order of operations (PEMDAS).
The type of loop that is used to iterate a program a set amount of times.
for-loop
The symbol used to create comments in C++.
Two forward slashes (//)
The smallest data type that stores 1 bit.
Boolean (bool)
The type of variable that is declared in the main function of a program.
Global variable
True or False
Attempting to perform an integer operation on an initialized character value results in an error.
False.
Incremented character variables print the next character or corresponding value according to the ASCII chart.
The term used to define a loop within another loop.
Nested loop
A statement that is executed based on whether a condition is true.
If-statement
The largest built-in C++ data type.
Double floating point (double) or Long (long)
The type of variable that is declared within a function.
Local variable
The operator used to add a value into a variable.
Addition assignment operator (+=)
The statement used to terminate a loop or switch statement.
Break statement (break)
The character encoding standard for electronic communication to represent text in computers.
American Standard Code for Information Interchange (ASCII)
The data type that has no values and no operations.
Valueless (void)
Use the prefix increment operator and postfix decrement operator on an integer variable called count.
int count;
++count;
count--;
The mathematic operator used to find the remainder of divided numbers.
Modulus (%)
The type of loop that performs a body of code before checking for a condition.
do-while loop
The type of statement typically used in a menu-driven program.
Switch-statement
There is a C++ data type that is actually an array of a different data type. Name both data types.
string, character (char)
Create an integer array called numArray that is 10 values large, each initialized to 0.
int numArray[10]={};
int numArray[]={0,0,0,0,0,0,0,0,0,0};
The library that must be included to use the power function pow(x,y).
cmath (#include <cmath>)
Create a loop that iterates until an integer variable is equal to 14.
int num;
while(num!=14){...}
The statement that gives a function a value when executed.
Return-statement