Question: Multiple Choice (4 pts. each) For problems 21 through 35 use the following code for Use the following code and input for problems 30-31 your

 Multiple Choice (4 pts. each) For problems 21 through 35 use

Multiple Choice (4 pts. each) For problems 21 through 35 use the following code for Use the following code and input for problems 30-31 your numeric answers A-0 B- C-2 D-3 E-4 AB-5 int numrows, numcols: AC-6 AD-7 AE -8 BC-9 BD -10 BE -11 CD-12 CE-13 DE 14 Use the following program for problems 21-22 int i,ji: int ourGrid[101 [10 scanf ("%d %d ", &numrows, &numcols); for (i=0; inumrows; i++) { for (j=0;jcnum cols ; j++) { #include int mainO scanf ("%d", & (ourGrid [i] [j] ) ) ; int for n; (n n--) n); 15; n>=5; ", = Input: 237-813-54-6 11-1453 printf("%d, retur 0; 21. How many iterations of the loop occur? 22. What is the last value printed out? 30. How many values were stored in ourGrid? 31. What value is in position ourGrid[01[0]? Consider the following code snippet for problems 23 - 24 {1, Use the following code and input for problems 32-33 int myfunc (int mat [4] [4],int rows, int cols, int myarray [7] 2, 3, 4, 5, 6, 7); = int m) 23. The value 6 is at what index of the array? 24. The value at index 2 is? int int for k; sum=0; (k=0 ; k a[i]) a[i] = a[i-1] a[i-1); = a[i]; int val = myfunc (aGrld, 2, 3, 1) ; printf ("%d", val) ; 25. What value is in a[2] after this code executes? 26. What value is in a1] after this code executes?32. How many iterations does the loop in myfunc 27. What value is in a[0] after this code executes? perform? 33. What value is returned by myfunc? Consider the following program for problems 28-29 #include void funcl (int vall1, int val2) int tmp = val 1 ; "Va12 = val1; val1 = tmp; Consider the following code snippet for problems 34-35 double bigMess [10] [12] [6]; scanf ("%lf", & (bigMess [5] [j ] [3] ) ) ; 34. What is the smallest value we can replace j with above? 35. What is the largest value we can replace j with above? main ) ( int val2 = 10; int val1 = 5; funcl (vall, &val2) printf("val1 %d val2 %d ", vall, val2); retur 0;) 28. What is vall after the call to func1? 29. What is val2 after the call to func1

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!