Question: The array userVals holds 5 integers. What is output? Flowchart has 2 variables ( integer array ( 5 ) userVals, integer i ) and 9

The array userVals holds 5 integers. What is output?
Flowchart has 2 variables (integer array(5) userVals, integer i) and 9 nodes. Node 1 is the start node and points to node 2. Node 2 code: userVals[0]=1 Node 2 points to node 3. Node 3 code: userVals[1]=7 Node 3 points to node 4. Node 4 code: userVals[2]=4 Node 4 points to node 5. Node 5 code: i =0 Node 5 points to node 6. Node 6 code: while i less than 5 Node 6 points to nodes 7(condition is true) and 9(condition is false). Node 7 code: Put userVals[i] to output Node 7 points to node 8. Node 8 code: i = i +1 Node 8 points to node 6. Node 9 is the end node.
a.
00000
b.
17400
c.
17444
d.
Error

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!