Exam 4: Procedural Abstraction and Functions That Return a Value

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

In the function declaration shown, the mechanism used to call this function is known as: Double powdouble base, double exp);

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

B

What is the value of the following? Sqrtsqrtpow2,4)));

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

B

the types of parameters are optional in the function declaration

Free
(True/False)
4.9/5
(34)
Correct Answer:
Verified

False

Varibles that are declared inside a function are said to be _________ to that function.

(Short Answer)
4.8/5
(36)

Which of the following are not legal function declarations?

(Multiple Choice)
4.8/5
(29)

If the variable x has the original value of 3.4, what is the value in x after the following? Cout << static_cast<int>x);

(Multiple Choice)
4.9/5
(37)

Write the code to convert the value in an integer variable named count to a double. _____________________.

(Short Answer)
4.9/5
(35)

Every include directive must be followed by using namespace std;

(True/False)
4.8/5
(40)

Algorithms are typically described in ________________.

(Short Answer)
4.8/5
(31)

If you have the following variable declaration in your program, Const int SIZE=34; Then which of the following statements are legal?

(Multiple Choice)
4.8/5
(36)

The black box analagy demonstrates the concept of _________________.

(Essay)
4.9/5
(42)

using namespace std; tells the compiler

(Multiple Choice)
4.8/5
(40)

What is the output of the following code fragement? Double size, volume=16.0; Size = sqrtsqrtvolume)) / 3; Cout.setfios::fixed) Cout.setfios::showpoint); Cout.precision2); Cout << size;

(Multiple Choice)
4.8/5
(48)

What is the output of the following program fragment? Cout << static_cast<float>3/4) << endl;

(Multiple Choice)
4.9/5
(38)

What is the output of the following program fragment? Cout << pow4,2) << endl;

(Multiple Choice)
4.9/5
(42)

Converting from one type to another is called ______________.

(Short Answer)
4.9/5
(38)

the parameters listed in the function declaration are considered global variables

(True/False)
4.9/5
(37)

A function may return more than one item

(True/False)
4.8/5
(31)

Which of the following are valid function calls to the pow function?

(Multiple Choice)
4.7/5
(31)

What is the value of the following? Floor4.999) + ceil2.0)

(Multiple Choice)
4.7/5
(28)
Showing 1 - 20 of 53
close modal

Filters

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