There are several types of ______. These make use of the repetition concept in programming and they allow us to efficiently make use of variables.
loops
100
These are miniature programs that can be combined to form larger programs. They allow complicated programs to be divided into manageable pieces.
functions
100
This is a simple data type that is created by the programmer.
enumeration type
100
This is a collection of a fixed number of components, all of the same data type
array
100
Given
enum typeName {value1, value2, ...};
Value 2 is _____ than value 1
greater
200
Fill-in the type of loop:
_____ (expression)
statement
while
200
To use predefined functions, you must include the header file using a/an ______ statement (example: _____ ).
include
200
The first value that is given to enumerators is a:
For example enum student {blue, black, green}
blue =
0
200
the statement:
int list[10] = {8, 5, 12};
Delacres an array of 10 components and initializes list[0] to ___, list[1] to ___, list[2] to ___.
8, 5, 12
200
Fill in the words:
___
statement
_____ (expression);
do while
300
A ____-controlled while loops uses a bool variable to control the loop.
flag
300
These functions do not have a return type. They do not use a return statement to return a value.
void functions
300
The _____ statement is used to create synonyms (Note: if you want to read the text make this picture bigger). _____s do not create any new data types. They only create an alias to an existing data type.
typedef
300
The ______ sort rearranges an array list by selecting an element and moving it to its proper position.
selection
300
This function takes the power of x to y.
pow(x,y)
400
The second for loop in the following example is called a _____ for-loop (it is inside another loop)
for (i = 1; i <=5; i++)
{
for (j = 1; j <= i; j++)
cout << "*";
cout << endl;
}
nested
400
These are identifiers that are declared outside of every function definition.
global identifiers
400
This is a sequence of 0 or more characters. The first character is in position 0 and the second is in position 1.
string
400
The following loops is for _____ data
for (index = 0; index <10; index++)
cin >> sales[index];
inputting
400
The following for loop:
for (index = 0; index < 10; index++)
cout << sales[index] << “ “;
Is used for _______ data
outputting (stored in an array)
500
These alter the flow of control. They can be used to exit early from a loop or skip the remainder of a switch structure.
Break and continue
500
The predefined mathematical function for the square root of a number is this.
sqrt(x)
500
The [] is called this and it allows access to an individual character in a string
array subscript
500
The following array is a ___-dimensional array
int list[2][5][6][6]