• 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/24

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;

24 Cards in this Set

  • Front
  • Back

You need to include the ________ directive in your program in order to use the time function.

#include<ctime>

Although the value of RAND_MAX varies with different systems, its value is always at least _______.

32, 767

The time function returns the current time as the number of ___________ elapsed since midnight on January 1, 1970.

seconds

A variables ________ indicates where in the program the variable can be used.

scope

A common way to initialize the random number generator in C++ is to use the ______ function as the seed.

time

The parameters listed in a functions header are called ______ parameters.

formal

An actual argument can be a _______, ________, or _______.

variable, names constant, literal constant.

Sending a copy of a variables value to a function is referred to as ________.

passing by value

A function ________ alerts the C++ compiler that the function will be defined later in the program.

prototype

You initialize the random number generated using the _______ function.

srand

Data may be passed to a function by value or by ___________.

reference

Depending on your C++ development fool, you may need to include the ______________ directive in your program in order to use srand.

#include<cstdlib>

The sqrt function containes ____ actual argument(s).

one

Value-returning functions return ___________ after the task is completed.

a single value

The rand function returns an integer that is greater than or equal 0 but less than or equal to the value stored in the ____________ constant.

RAND_MAX

The function header for a value-returning function begins with _______________.

returnDataType

_______ variables can be used only by the function in which they are declared or in whose parameter list they appear.

Local

The sqrt function is a(n) _________ value-returning function.

built-in

Another name for "calling" a function is _________.

Invoking

All program-defined and built-in functions are categorized as ____________________ functions.

Value-returning or void

________________ functions allow large and complex programs, typically written by a team of programmers, to be broken into small and manageable tasks.

Program-defined

The main function is a value-returning function that returns its value to _______________.

the operating system

The rand functions syntax contains______ actual argument(s).

0

the sqrt function returns a value of the ___________ data type.

double