Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. What is the result of 5 % 7? 0 2 5 7 2. If firstName and lastName are string

ID: 1809250 • Letter: 1

Question

1.What is the result of 5 % 7? 0
2
5
7

2.If firstName and lastName are string object variables, which statement can be used to combine (append or concatenate) the two into a single string variable? fullName = firstName + lastName;
fullName = firstName, lastName;
fullName = firstName & lastName;
fullName = firstName && lastName;

3.What is wrong with the following switch statement?
switch(x)
{
case 0:
cout << x;
case 2:
cout << 2/ x;
break;
default:
cout << 1.What is the result of 5 % 7? 0
2
5
7

Explanation / Answer

5. illegal set-up of for loop parameters


6. string


7. None of the above. It does not create any type of error.


8. double


9. double foo(double *):


10. void MyFunc( MyStruct data[ ] );


11. 123