Jack Travis
Quiz by , created more than 1 year ago

a li'l ol' quiz by li'l ol' me

3
0
0
Jack Travis
Created by Jack Travis about 8 years ago
Jack Travis
Copied by Jack Travis about 8 years ago
Close

Functions and Procedures

Question 1 of 6

1

Procedures can only return a single value.

Select one of the following:

  • True
  • False

Explanation

Question 2 of 6

1

Which of these performs a single task?

Select one of the following:

  • Functions

  • Procedures

  • Both

  • Neither

Explanation

Question 3 of 6

1

Fill the blank spaces to complete the text.

Functions and procedures are blocks of code, and use values as for tasks.

Explanation

Question 4 of 6

1

Which type of variable do functions and procedures use to perform tasks?

Select one of the following:

  • Local

  • Global

  • Both

Explanation

Question 5 of 6

1

Passing by reference changes the value of the variable being used in a procedure/function.

Select one of the following:

  • True
  • False

Explanation

Question 6 of 6

1

Stepwise refinement involves:

Select one or more of the following:

  • Breaking a problem into a few, large parts...

  • ...until each task can be written as a single function/procedure

  • Breaking a problem into progressively smaller tasks...

  • ...until each task is mildly complex

Explanation