Copy and Paste this table into a Word document and type your answers.
Please submit the .docx file on eCampus.

What will the following code output?  If there is a syntax error in the code, put "Error" for the output.

Num Code Output
1. cout << "Hello";
cout << "Goodbye";
 
2. cout << "apple";
cout << "endl";
cout << "pear";
 
3. cout << "a\nb\nc";

 

 
4. cout << 1 + 2 * 3;  
5. cout << 5 % 2;  
6. cout << (3 + 4) * (8 % 5);  
7. cout << "mustard/npickles";
 
 
8. cout << "I love computers" endl;
 
 
9. cout << "5 * 2 + 6 * 3";  
10. cout << "a" << endl << "z";
 
 
11. int A;
A = 15;
A = A * 3;
cout << A;
 
12. int A = -4;
A = A + 4;
cout << "A";
 
13. int X = (5 % 2) + (15 / 3);
cout << X * 2;
 
14. int Orange;
Orange = 5 + 7 * 2 - 3
cout << Orange;
 
15. cout << "Mustang is ";
int Year = 2003;
int Car = 1965;
cout << Year - Car << " years old";
 
16. int T1 = 70;
int T2 = 75;
cout << T2 - T1 * 0.5 << " degrees";
 
17. cout << 1 << "2" << 3 << "4" << 5;  
18. int A = -8;
A = A * -0.25;
cout << A;
 
19. int B = 4;
cout << B + (B + B) * 3 - B + (B % 3);
 
20. cout << "Grand Canyon"\n;