Exam 4: Procedural Abstraction and Functions That Return a Value

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

using namespace std; tells the compiler

(Multiple Choice)
4.9/5
(32)

Which of the following are not legal function declarations?

(Multiple Choice)
4.7/5
(36)

The functions pow),sqrt),and fabs)are found in which include file?

(Multiple Choice)
4.7/5
(31)

When you want to use a function in your program,you would make a function __________.

(Short Answer)
5.0/5
(30)

the types of parameters are optional in the function declaration

(True/False)
4.9/5
(49)

What is the value of i after the following function call? //function definition Int doSomethingint value) { Value = 35; Return value; Value = 13 } //fragment of main program Int i=0; Cout << doSomethingi);

(Multiple Choice)
4.8/5
(41)

Every include directive must be followed by using namespace std;

(True/False)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(38)

The expression static_cast<double>3)is called a

(Multiple Choice)
4.8/5
(34)

it is possible to have a function that has no parameters

(True/False)
4.8/5
(41)

The ______________ describes how the function will work.

(Short Answer)
4.8/5
(36)

Converting from one type to another is called ______________.

(Short Answer)
4.8/5
(33)

variables that are declared outside of any function body or parameter list are considered global.

(True/False)
4.8/5
(38)

What is the output of the following function call? //function body Int factorialint n) { Int product=0; Whilen > 0) { Product = product * n; N-; } Return product; } //function call Cout << factorial4);

(Multiple Choice)
4.9/5
(39)

When the function below is called,the _____ of the actual parameters is passed to the function definition. Double sqrtdouble value);

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(36)

the fabsdouble num)function

(Multiple Choice)
5.0/5
(44)

The _________ of a variable is where that variable can be used.

(Short Answer)
4.9/5
(31)

If you have the two functions as shown, Int someFunctionint value); Float someFunctionfloat value); And a variable x,which is a double,which function is called by the following statement? Cout << someFunctionx);

(Multiple Choice)
4.8/5
(28)

The black box analagy demonstrates the concept of _________________.

(Essay)
4.8/5
(37)
Showing 21 - 40 of 51
close modal

Filters

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