Chapter 6 Functions Flashcards
This is a prewritten function that is built into a programming language
a. standard function
b. library function
c. custom function
d. cafeteria
library function
This term describes any mechanism that accepts input, performs some operation that cannot be seen on the input and produces output
a. glass box
b. white box
c. opaque box
d. black box
black box
This part of a function definition specifies the data type of the value that the function returns
a. header
b. footer
c. body
d. return statement
return statement
This part of a function definition is comprised of one or more statement that are execute when function is called
a. header
b. footer
c. body
d. return statement
body
This statement causes a function to end and sends a value back to the part of the program that called the function
a. end
b. send
c. exit
d. return
return
This is a design tool that describes the input, processing, and output of a function
a. hierarchy chart
b. IPO chart
c. datagram chart
d. data processing chart
IPO chart
This type of function returns either True or False
a. binary
b. TrueFalse
c. Boolean
d. logical
Boolean
This is an example of a data type conversion function
a. sqrt
b. toReal
c. substring
d. isNumeric
sqrt
This type of error occurs when you try to assign a value of one data type to a variable of another data type
a. type mismatch error
b. Boolean logic error
c. relational error
d. bit conversion error
type mismatch error
This is a string inside of another string
a. substring
b. inner string
c. mini string
d. component string
substring