Question: 4) Answer the following multiple-choice questions. Each question is worth 5 points. 4.1) What is the output of the following program? 4.2) What is the

 4) Answer the following multiple-choice questions. Each question is worth 5points. 4.1) What is the output of the following program? 4.2) What

4) Answer the following multiple-choice questions. Each question is worth 5 points. 4.1) What is the output of the following program? 4.2) What is the output of the code below? int main() { intx=10; int main() while(12) cout15) break; } } return 0; int x=5; while(x10. j>=i c) ii d) i 1 4.5) What is the exact output of given code? #include #include using namespace std; int x-5.y=10.z-20; int main() intx=y+5. y-z+5: cout using namespace std; (e) display each member of the array on the monitor void func3(int a[], int n) a) compute the average value of the array float funclint a() int n) int main(void) int arr[10]: (b) multiply each member of the array together int func2(int a[], int n) (d) inpat 10 integers and store into the array. Write code on the following lines func3(arr, 10); float aver-funel(arr, 10); int prod-func2(arr, 10); return 0; 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!