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

QUESTION 1 The size of an array must be set before the program is run by a user

ID: 3566876 • Letter: Q

Question

QUESTION 1 The size of an array must be set before the program is run by a user True False QUESTION 2 Fill in the blanks given the following array definition: int a[7]={4. 5,2,0, 3}; How many elements does the array hold? What is the index of the first element? ________________ What is the index of the last element? What value is stored in a[2]? What value is stored in a[5]? QUESTION 3 When one processes an array that is partially filled, one should loop from to one less than the size of the array. True False False QUESTION 4 Mulitple arrays linked by subscript that contain related information are called Related Arrays 2D Arrays Parallel Arrays Linked Arrays QUESTION 5 What is the EXACT output of the following code segment ? QUESTION 6 Write a code segment that will determine and display how many negative numbers are stored in an integer array called nums with size given by the constant SIZE.

Explanation / Answer

1)True

2)

(i)8 elements

(ii)4

(iii)2

(iv)0

(v)0

3)Flase

4)Linked arrays

5){1,2,3,5}

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