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

Word File Edit View Insert Format Font Tools Table Window Help O 99% Mon Jun 12

ID: 3848572 • Letter: W

Question

Word File Edit View Insert Format Font Tools Table Window Help O 99% Mon Jun 12 4 15 48 PM QA E 1-Arrays-Short Anwers- Word.doc.docx [Compatibility Mode] 81% Sea in Document Layout Document Elements Tables Charts smartArt Review A Home Paragraph AaBb Normal No spacing Heading 1 Heading 2 Themes Text Box Shape Picture CS 1302 Programming Principles II Assignment Arrays th of the gi program segments, read the oode, and write tho output in the space below ch program. [Nore: Do not execute these programs o Unless specified compute otherwise, for the following questions that the ontained within the method of a va application. 1. What is the output of the following code segment? +A What is the output of the following code segment? 88 2. What is the output of the following code segment? Print Layout view Sec 1 Pages: 2 of 4 Words: 260 af 436 LH 81% or B J

Explanation / Answer

You already have answer for question 1.

Answer 2:
It prints all the characters of char array one by one
Output:
How are you


Answer 3:
This will print stars in a line starting from 1 start to 10 stars
*
**
***
****
*****
******
*******
********
*********
**********


Answer 4:
First all elements of array are doubled up, then one by one each element is printed.
Output:
6 4 10

Answer 5:
method1 returns the multiplication of all the passed elements.
Hence output is:
1*2*3*4*5 = 120

Answer 6:
Given 2D array.. mystery functin returns multiplication of all the elements
Output:
3*2*5 * 2*2*4*5*6 * 1*1
= 14400

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