1
1
MM: 15
Computer Application Time: 40min
a=a+3;
b--;
Q4.What is final value for ctr, when eteration process given below,
executes? (3)
Int ctr=0;
++ctr;
Q5.Analyze the program segment and determine how many times the
loop will be executed and what will be the output. (3)
int p=200;
while (true)
{
if (p<100) Break;
p=p-20;
System.out.println(p);