Question: please fill in the blanks with mcq answer provided on the right hand side in the picture. Computer language is C. 3.1 Description: Input a

 please fill in the blanks with mcq answer provided on the

please fill in the blanks with mcq answer provided on the right hand side in the picture. Computer language is C.

3.1 Description: Input a positive number n. Calculate s = 1/2 - 2/3 + 3/4 - 4/5 + ......(-1)n-1 n/(n+1) 21) Progam Code: #include int main() { int k, flag=1, n; float s=0; scanf("%d",&n); for (k=1; k void sort (23) ) { Choices: inti, k, j, m, t; 23) A) int a, int n for(i=0; ia[i] k=j; B) a[k]a[j] } A) a[k]=a[i]; a[i]=a[k]; int main() B) a[k]=t; a[i]=a[k]; t=a[i]; { c) t=a[k];a[k]=a[i];a[i]=t; int k, n, a[10); D) t=a[j];a[i]=a[j-1];a[j-1]=t; for(k=0; k int main() Choices: { 27) A) (n=scanf("%d",&n))0 while (27) ); C) scanf("%d",&n), n0 (28) 28) A) i++; n=n/10; } B) n++; printf("%d " ,i); C) n=n%10; return 0; D) i=i+n%10; }

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!