2022 · Paper 1
Loading paper…
Loading paper…


PRINT A, Bmain() function?3 in variable W, the values of X and Y should beZ=X&&Y; is replaced with Z=!(X||Y);1 in variable Z, the values stored in variable X and variable Y area=151, b=151, c=160a=151, b=150, c=160a=150, b=151, c=165a=151, b=151, c=165m=(j>k) ?j:k; is similar toy isValue of Y=25int Y=25; puts("Value of Y=", "25")int Y=25; puts("Value of Y=25", Y);int Y=25; printf("Value of Y=%d", "Y");int Y=25; printf("Value of Y=%d", Y);if-else statement whenintcharfloatX isfor loop code is written to perform 4 repetitions.for loop will increase the value of counter variable?int j+=4;j++;j<=4;j--;x++; with x--;while(x<=10); with while(x==10);int x=15; with int x=1;printf("%d ", x); with printf("%d ", x++);breakcontinueswitchdo-whiledo-while loop structure, then it will41 41 3 54 12 20Computer Science will be shown?printf("Computer Science \n"); is replaced by printf("%d \n",j); then the output will be10, 9, 8, 7 (printed on separate lines)9, 8, 7, 6 (printed on separate lines)9, 8, 7 (printed on separate lines)10, 9, 8 (printed on separate lines)while loop, then the difference in number of iterations willscanf() function is toA = π * r^2A = π * r * rA = 3.141 * r^2A = 3.141 * r * rc is changed into an integer, then the output of this program would beif(side1=side2&&side1=side3&&side2=side3)if(side1=side2||side1=side3||side2=side3)if(side1==side2||side1==side3||side2==side3)if(side1==side2&&side1==side3&&side2==side3)Hello World as an output isfor(i=1; i>=n; --i)for(i= 0; i<=n; --i)for(i=1; i>= n; ++i)for(i=10; i<=n; ++i)