Unit Test Answers

5 verified answers3 views
1
Free Preview

Which of the following is true of a constant? Choose all that apply.

A
It cannot be changed by the program as it runs.
B
It is a data type.
C
It is a procedure in a block of code.
D
It can be changed by the program as it runs.
2
Free Preview

Which of the following describe a keyword argument? Check all that apply.

A
an argument in which the caller identifies it by parameter name
B
an argument that does not need to be specified
C
an argument describes the function
D
an argument in which order of arguments does not matter
3

Which of the following describe a required argument? Check all that apply.

A
an argument that does not need to be specified
B
an argument defined by its parameter name
C
an argument passed to the function in the correct positional order
D
an argument wherein the number of arguments in the function call should match the definition of the function
4

What is a return statement used for?

A
beginning a function
B
repeating a value
C
copying a function
D
exiting a function
5

Which of the following describes a default argument?

A
an argument that allows you to skip an argument
B
an argument passed to the function in the correct positional order
C
an argument that can be called by parameter name
D
an argument that does not need to be specified

Did you find these answers helpful?