Multiple Choice
Given the following program, which line(s) cause(s) output to be displayed on the screen?
1 // This program displays my gross wages.
2 // I worked 40 hours and I make $20.00 per hour.
3 #include <iostream>
4 using namespace std;
5
6 int main()
7 {
8 int hours;
9 double payRate, grossPay;
10
11 hours = 40;
12 payRate = 20.0;
13 grossPay = hours * payRate;
14 cout << "My gross pay is $" << grossPay << endl;
15 return 0;
16 }
A) lines 13 and 14
B) lines 8 and 9
C) line 14
D) lines 14 and 15
E) line 15
Correct Answer:

Verified
Correct Answer:
Verified
Q39: Which part of the following line is
Q40: The _ is(are) used to display information
Q41: Select all that apply. Using C++11:<br>Which of
Q42: A variable definition tells the computer<br>A) the
Q43: The float data type is considered _
Q45: What is output of the following statement?<br>cout
Q46: A character literal is _, whereas a
Q47: What is the value of number after
Q48: Which of the following defines a double-precision
Q49: The _ causes the content of another