Chapter 6 Functions Flashcards

1
Q

This is a prewritten function that is built into a programming language

a. standard function
b. library function
c. custom function
d. cafeteria

A

library function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

black box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

return statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

return

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

IPO chart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

This type of function returns either True or False

a. binary
b. TrueFalse
c. Boolean
d. logical

A

Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

This is an example of a data type conversion function

a. sqrt
b. toReal
c. substring
d. isNumeric

A

sqrt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

type mismatch error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

This is a string inside of another string

a. substring
b. inner string
c. mini string
d. component string

A

substring

How well did you know this?
1
Not at all
2
3
4
5
Perfectly