Exam 4: Procedural Abstraction and Functions That Return a Value

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

pow2,3)is the same as pow3,2).

Free
(True/False)
4.7/5
(30)
Correct Answer:
Verified

False

The absolute value function abs is located in the _________ library.

Free
(Short Answer)
4.8/5
(37)
Correct Answer:
Verified

cstdlib

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);

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

D

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

(Short Answer)
4.8/5
(31)

Constant variables that might be used in different functions should be _________

(Short Answer)
4.7/5
(36)

Multiple arguments to a function are separated by

(Multiple Choice)
4.8/5
(34)

Functions may have multiple return statements.

(True/False)
4.8/5
(35)

When overloading a function,what must be true?

(Multiple Choice)
4.8/5
(42)

In the following function declaration,the variable size is known as a _________________. int myFunction int size);

(Short Answer)
5.0/5
(38)

Algorithms are typically described in ________________.

(Short Answer)
4.9/5
(41)

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

(Multiple Choice)
4.8/5
(39)

#include <cmath> is known as an ___________________.

(Short Answer)
4.9/5
(29)

Information Hiding is analogous to using

(Multiple Choice)
4.8/5
(42)

Which of the following functions is a properly overloaded function of the following? Int doSomethingint first,float second);

(Multiple Choice)
4.8/5
(33)

What is the value returned by the following function? Int function) { Int value = 35; Return value + 5; Value += 10; }

(Multiple Choice)
4.8/5
(40)

the parameter names are mandatory in the function header

(True/False)
4.9/5
(33)

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

(Multiple Choice)
5.0/5
(40)

When a variable is local to a function,we say that it has ___ of the function

(Multiple Choice)
4.9/5
(43)

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

(Multiple Choice)
5.0/5
(26)

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
(41)
Showing 1 - 20 of 51
close modal

Filters

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