click below
click below
Normal Size Small Size show me how
Stack #200016
| Question | Answer |
|---|---|
| ___ allow programmers to avoid duplicating code in different parts of a program. | Functions |
| 1.Typically the ___ function in the program is responsible for calling the functions. | main |
| 1.All functions are categorized as either ____ functions or ____ functions. | value-returning, void |
| 1.A _____ function is a function that returns precisely one value after it completes its assigned task. | value-returning |
| 1.Some value – returning functions are built-in to the C++ language like ___ and _____. | getline(), toupper() |
| 1.You can use the built-in ___ function to raise a number to a power and then return the result as a double number. | pow |
| 1.In a pow() function, at least one of the two arguments must be a ___ number. | double |
| 1.Most programming languages provide a______________ which is a device that produces a sequence of numbers that meet certain statistical requirements for randomness. | pseudo-random number generator |
| 1.In standard C++, the random number generator is a built-in function named ___. | rand |
| 1.The rand() function returns an integer that is greater than or equal to zero but less than or equal to the value stored in the _____ constant which is built into the C++ language. | RAND_MAX |