Exam 3: Function Basics

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Write a prototype and prototype comments for the sqrt library function.

(Essay)
4.8/5
(47)

Of what value are comments that accompany a function declaration?

(Essay)
4.7/5
(30)

A void function can have >>"void" is wrong font.

(Multiple Choice)
4.8/5
(30)

Consider two blocks,one within another.If an identifier is declared as a variable in the inmost of these two blocks,one can access this variable from the outer block.

(True/False)
4.9/5
(42)

It is legal to replace the prototype double totalCost(int numberParam,double priceParam); with the more terse,alternate form double totalCost(int,double);

(True/False)
4.8/5
(41)

Calling something a black box is a figure of speech that conveys the idea that you cannot see inside.You know its behavior and interface but not its implementation.

(True/False)
4.7/5
(36)

In your own words discuss similarities and differences between a function and a small program.

(Essay)
5.0/5
(35)

What do the calls to exit(…)do? When exit(0)and exit(1)are called,what receives these arguments and what is done with them?

(Multiple Choice)
4.7/5
(36)

A variable declared outside any function is said to be a local variable.

(True/False)
4.9/5
(35)

Where can you not declare a variable in a C++ program?

(Multiple Choice)
4.9/5
(38)
Showing 21 - 30 of 30
close modal

Filters

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