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

C++ 34 Questions. Please Help. Thank you very much! 1. Consider the following fu

ID: 3573096 • Letter: C

Question

C++  34 Questions. Please Help. Thank you very much!

1. Consider the following function called duplicate and the main function that calls it. What are the values for x, y and z that are displayed? void duplicate (int& a, ints int c) b* 2 int main int x 1, y 3, z 7; duplicate (2, y, x) cout x y return 0 x 3, y 6, z x 1, y 6, z 14 x 3, y 6, z 14 2. The operator can be used to write a line to a file True False 3. An array is a collection of data elements of one or more data types True False 4. The function will return true if the file you wish to use is ready for input/output operations. ready

Explanation / Answer

Hi, I have answered first 5 questions.

Please repost other in chunk of 5

Please let me know in case of any issue with these answer.


1)
   Ans: 1, 6, 14

   because z and y are passed by reference but x is passed by value

2)
   False

   >> can be user to read data from file

3)
   False
   Array is collection of same data type

5)
   int jimmy[3][5]

   Ans: declares a multi-dimensional array with 3 rows and 5 columns

6)
   Ans: void passbyRef(int &refnum)