• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/30

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

30 Cards in this Set

  • Front
  • Back
a collection of statements that performs a specific task
function
a statement that causes a function to execute
function call
give an example of a Function Header
void displayMessage()
give an example of a Function Call
displayMessage();
what does the function header declare?
return type, name, and parameter list
True or False
a function prototype eliminates the need to place a function definition before all calls to the function
true
Fuction prototypes are also known as
function declarations
Where must you place the function definition or function prototype in a program in order for it to compile
must place ahead of all calls to the function
True or false
The function prototype must list the data type of each parameter
True
Functions are ideal for use in _________ type programs
menu based
this statement causes a function to end immediately
return statement
true or false
functions may return true or false values
true

using the bool statement
Variables defined inside a function are _____ to that function
local
any variable defined outside all the functions in a program is called a
global variable
true or false

you can have two local variables with the same name in the same function
false
_______ is a type of variable that, when used as a function parameter, allows access to the original argument
reference varible
how do you define a reference variable
you place an ampersand(&) in front of the name

ex. void doubleNum(int &);
when a reference parameter is used, it is said that the argument is ___________
passed by reference
true or false
Two or more functions may have the same name, as long as their parameter lists are different
true
a(n) ____ allows you to store and work with multiple values of the same data type
array
The individual elements of an array are assigned unique ____
subscripts
arrays may be initialized when they are ______
defined
True or false
it is possible to only initialize part of an array
true
how do you initialize a character array with a string
enclose the string in quotation marks

ex.

char name[7] = "Warren";
true or false
you can use the == operator with the names of two arrays to determine whether the arrays are equal
false
by using the same _______, you can build relationships between data stored in two or more arrays
subscript
To pass an array as an argument to a function, pass the _____ of the array
name
this array can hold multiple sets of data
2-D arrays
Give an example of a 2-D array with three rows and four columns
double scores[3][4];
true or false
a two-dimensional array of characters can be used as an array of strings
true