Exam 6: Functions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What is the output of the following program? What is the output of the following program?

(Multiple Choice)
4.7/5
(79)

EXIT_FAILURE and ________ are named constants that may be used to indicate success or failure when the exit()function is called.

(Multiple Choice)
4.8/5
(77)

Global variables are initialized to zero by default.

(True/False)
4.7/5
(78)

Functions are ideal for use in menu-driven programs. When a user selects a menu item, the program can ________ the appropriate function.

(Multiple Choice)
4.7/5
(70)

Given the following function definition: Given the following function definition:   What is the output of the following code fragment that invokes calc?  What is the output of the following code fragment that invokes calc? Given the following function definition:   What is the output of the following code fragment that invokes calc?

(Multiple Choice)
4.8/5
(78)

What is the output of the following program? What is the output of the following program?

(Multiple Choice)
4.9/5
(60)

Look at the following function prototype. Look at the following function prototype.    How many parameter variables does this function have? How many parameter variables does this function have?

(Multiple Choice)
4.8/5
(85)

Local variables are initialized to zero by default.

(True/False)
4.8/5
(69)

This is a dummy function that is called instead of the actual function it represents.

(Multiple Choice)
4.8/5
(81)

A function ________ contains the statements that make up the function.

(Multiple Choice)
4.8/5
(80)

This is a collection of statements that performs a specific task.

(Multiple Choice)
4.7/5
(79)

In a function header, you must furnish:

(Multiple Choice)
4.9/5
(69)

Which line in the following program contains the prototype for the showDub function? Which line in the following program contains the prototype for the showDub function?

(Multiple Choice)
4.8/5
(79)

A function is executed when it is:

(Multiple Choice)
4.9/5
(78)

When used as parameters, these types of variables allow a function to access the parameter's original argument.

(Multiple Choice)
4.9/5
(88)

It is not considered good programming practice to declare all of your variables globally.

(True/False)
5.0/5
(78)

It is a good programming practice to ________ your functions by writing comments that describe what they do.

(Multiple Choice)
4.7/5
(80)

A function ________ eliminates the need to place a function definition before all calls to the function.

(Multiple Choice)
4.9/5
(74)

You must furnish an argument with a function call.

(True/False)
4.7/5
(93)

Here is the header for a function named computeValue: void computeValue(int value) Which of the following is a valid call to the function?

(Multiple Choice)
4.9/5
(75)
Showing 21 - 40 of 49
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)