Unit Test Answers

6 verified answers1 views
1
Free Preview

Which of the following correctly defines a procedure in computer programming? Choose all the apply.

A
a code block that performs a single task
B
a value that can be used anywhere in a code block
C
a code block programmers can reuse multiple times
D
data in code that is passed into a parameter
2
Free Preview

is a storage location for a value.

A
A variable
B
A global variable
C
A local variable
3

is a value that can be called and used anywhere.

A
A variable
B
A global variable
C
A local variable
4

Which of the following correctly defines a function in computer programming? Choose all the apply.

A
a code block that performs a single task
B
a code block that returns a value
C
a value that can be used anywhere in a code block
D
data in code that is passed into a parameter
6

Which of the following are advantages of using subroutines? Choose all that apply.

A
Subroutines return multiple variables when used as a function.
B
Subroutines allow the programmer to save time.
C
Subroutines eliminate duplicate code.
D
Subroutines provide a fixed value that cannot be changed.

Did you find these answers helpful?