28. What will be the value of result after the following code is executed?int power = 5; int number = 10; int i, result;for (i = 1, result = number; i <= (power - 1); i++) result = result * number;a. 100000 b. 1000000c. 10000 d. none of these

ANS: A

29. What is the output of the following code?int power = 5; int number = 10, i, result;for (i = 1, result = number; i <= (power - 1); i++, result *=number);System.out.print (result);a. 100000 b. 1000000 c. 10000 d. none of these

ANS: A

30. What is the output of the following code?int power = 5; int number = 10;int result = number; int i=1;for (; i <= (power - 1); i++)result = result * number;System.out.print (result);a. 100000 b. 1000000 c. 10000 d. none of these

ANS: A

31. What is the output of the following code?int power = 5, number = 10; int result = number; int i=1;for (; i <= (power - 1); ) {result = result * number;i++;}System.out.print (result);a. 100000 b. 1000000 c. 10000 d. none of these

ANS: A

32. How many lines are printed on the console when the following for loops are executed?for (int i = 1; i < 5; i += 2) {for (int j = 0; j < i; j++) {System.out.println(j);}}a. 2 b. 4 c. 5 d. 20

ANS: B

33. What is the output of the following code?for (int i = 1; i < 5; i += 2) {for (int j = 0; j < i; j++) {System.out.print(i+","+j+",");}}