Question: Assume we have array x with size equals to 6. The following code will read each element from array x, if the element is even

 Assume we have array x with size equals to 6. The

Assume we have array x with size equals to 6. The following code will read each element from array x, if the element is even then multiply it with 4 and modify the result on array x. Otherwise replace the odd elements in array x with 0. _.j++) Il space 1 for (int i=0: K. if x[i] = Il space 2 Il space 3 else x[i] = Il space 4 Fill the spaces with the correct answer Select one: O a. space1 is 6 space2 is x[6] % 2 == 0 space3 is x[6] = x[6] *4 space4 is x[6] = 0 O b. space1 is 5 space2 is x % 2 = 0 space3 is xil = 4 space4 is x[i] = 0 OC space1 is 6 space2 is x[i] % 2 == 0 space3 is x[i] = x[i]*4 space4 is x[i] = 0 O d. None of the answers

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!