Exam 4: Procedural Abstraction and Functions That Return a Value

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

What is the value of x after the following code fragment executes? Float x = 36.0; X = sqrtx);

(Multiple Choice)
4.9/5
(35)

Using functions in a program is known as

(Multiple Choice)
4.8/5
(40)

function naming rules follow variable naming rules

(True/False)
4.8/5
(39)

A function may return more than one item

(True/False)
4.7/5
(50)

If you need to write a function that will compute the cost of some candy,where each piece costs 25 cents,which would be an appropriate function declaration?

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(29)

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
(40)

the parameters listed in the function declaration are considered global variables

(True/False)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(31)

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

(Short Answer)
4.8/5
(32)

A problem-solving approach that starts with the big problem and breaks it down into smaller pieces is called _________________.

(Short Answer)
4.8/5
(43)
Showing 41 - 51 of 51
close modal

Filters

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