HI Kashmira,
Program 2 lesson7-3.10
the answer b X=15 is correct. since x=15 which is greater than 12, x+1 does not performed.
Program 2 lesson7-4.6
answer is 20. since i=1 to 5 and j=1 to 4, so 5*4=20
Program 2 lesson7-5.4
the answer is do loop goes infinitely, since x=15 which is already greater than 12, so in the do loop x will not be smaller than 12 anymore after perform x=x+1 each time.
Program 2 lesson7-5.7
in the do loop, if you do not assign the increment, which default will be +1. the answer you pick will execute since it start as 0.3 decrease by 0.1 (by -.1) to 0.2, it is logical. The answer is do i=x+10 to x; since this statement without increment (by xxx), so the increment will be +1, then it is not logical, because X+10 will will never be X with increment +1.
Program 2 lesson4-6.4
The answer should be trim(firstname)|| “ ”||lastname. the task was ask to have only one blank between lastname and first name, we need trim all tailing blank of first name.