Part 2: Written Portion. Write your Open with 2) Which of the following statemen
ID: 3875153 • Letter: P
Question
Part 2: Written Portion. Write your Open with 2) Which of the following statements correctly initializes an array to have the number 5 in all of its elements? (4 points). Circle all that apply. int n[3] 5: int n= {5, 5, 5, 5); int n) -(5. 5, 5)a b: 3) Suppose you have an array "n" that has already been filled with elements (and the variable count correctly holds the number of elements). Which of the following loops will NOT correctly print out each element in the array? (4 points). Circle all that apply for ( int i . 1; iExplanation / Answer
2) n[5]={5,5,5,5,5} have 5 in all the numbers or variables i.e. n[0]=5,n[1]=5....n[4]=5 4) using do --> the loop executes once before the condition is tested. if condition is true or false it does not matter because it does not check condition for the 1st time. it directly enters into the loop after it checks the condition.. so it will display charecters
If the condition is true, the flow of control jumps back up to do, and the statement's in the loop executes again
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.