139k views
5 votes
Match

A. Int type ____ forcing a value of one data type to become the data type specified
B. Reassignment statement ____used to declare a value that will never change for the life of the program
C. local variable ____ range of values from -32764 to 32764
D. return statement ____ this statement will control a switch structure; forces an unconventional exit
E. Automatic conversion ____ the result is one (and only one) answer
F. const _____ when a function ends, the value stored here will not be able to be accessed; it "dies"; that is the memory location allocated to it will no longer be recognized
G. math.h ______ total = total + tax;
H.switch statement _____compiler uses this to provide instructions for sqrt, abs functions
I.break _____ flow of control will go back to the calling code location
J. value returning function ____ an alternative to a nested if-else statement

User Rents
by
8.3k points

1 Answer

3 votes

Final answer:

The correct match for each term is: Int type with a range of values, a reassignment statement is exemplified by updating a variable, a local variable dies after the function ends, the return statement exits back to calling code, automatic conversion without explicit casting, const declares unchangeable values, math.h provides math function instructions, switch statement as an if-else alternative, break controls switch and stops execution, and a value returning function provides a single result.

Step-by-step explanation:

Let's match each term to its correct definition:

  • A. Int type ____ range of values from -32,764 to 32,767
  • B. Reassignment statement ____ total = total + tax; (an example of reassigning a new value to a variable)
  • C. local variable ____ when a function ends, the value stored here will not be able to be accessed; it "dies"
  • D. return statement ____ forces an unconventional exit; the flow of control will go back to the calling code location
  • E. Automatic conversion ____ forcing a value of one data type to become the data type specified without explicit casting
  • F. const ____ used to declare a value that will never change for the life of the program
  • G. math.h ____ compiler uses this to provide instructions for sqrt, abs functions
  • H. switch statement ____ an alternative to a nested if-else statement
  • I. break ____ this statement will control a switch structure; it stops the execution of more code and case testing within the block
  • J. value returning function ____ the result is one (and only one) answer