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

Test 2: 4/3/2018 Spring 2018 cosc113.10 Test 2 Score/100 Name: Honor Pledge: I h

ID: 3699692 • Letter: T

Question

Test 2: 4/3/2018 Spring 2018 cosc113.10 Test 2 Score/100 Name: Honor Pledge: I hereby affirm that I have melither given wor received help on this True/False, multiple choice, short answers. (2 point each) I. Consider the following statement: double alphal101(S]:. The number of components of alpha is a. 15 b. 50 c. 100 d. 150 Consider the statement int list[10118): Which of the following about list is true? a. list has 10 rows and 8 columns b. list has 8 rows and 10 columns. c. list has a total of 18 components. d. list has a total of 108 components. 2. 3. Consider the following statement: int alphal251ol;. Which of the following statements about alpha is true? a. Rows of alpha are numbered O...24 and columns are numbered ...9 b. Rows of alpha are numbered O. 24 and columns are numbered 1...0 c. Rows of alpha are numbered 1I. .24 and columns are numbered o..9 d. Rows of alpha are numbered 1...25 and columns are numbered 1.. .0 Which of the following correctly declares and initializes alpha to be an array of four rows and three columns with the component type int? a. int alpha(4)13]-(10,1,2) (1,2,3) (2,3,4) (3,4,5)) b. int alpha(4)13]-(0,1,2; 1,2,3; 2,3,4; 3,4,5) c. int alpha[4][3] = {0,1,2 : 1,2,3: 2,3,4: 3,4,5); d. int alpha/4113) (f0,1,2), (1,2,3), (2,3,4), (3,4,5)) After the following statements execute, what are the contents of matrix? 4. 5. int matrix(3][2]: int j, k for i-0: j

Explanation / Answer

1) Number of components is 50 , 5 x10 = 50

Answer is b) 50


2)a , List has 10 rows and 8 colums

3(a)Rows from 0..24 and colums from 0..9

4(d)

5(c)



6(b)


Thanks, let me know if there is any concern.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote