Total Ten Questions. Each Carry 2 Marks.
Total Time 20 Min.
Quiz Summary
0 of 10 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 10 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
-
If you score less than 16 marks. Please watch the concepts and take the test after a week.
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 10
1. Question
Q1) What is the output displayed by the below program?
#include <stdio.h> void f(int a, int b) { int c; a=a+2; b=b+1; c=a+b; printf("%d",c); } int main(void) { int a=10,b=11; f(b,a); printf("%d",b+a); return 0; }
CorrectIncorrect -
Question 2 of 10
2. Question
Q2) What is the output displayed by the below program?
#include <stdio.h> int f(int b[]) { int i; for(i=0;b[i]!=0;i++) { b[i]+=1; } b[i]+=1; return 5; } int main(void) { int a[10]={1,2,3,4},j,i; j=f(a); for(i=0;i<=j;i++); printf("%d",a[i]); return 0; }
CorrectIncorrect -
-
Question 3 of 10
3. Question
Q3) What is the output displayed by the below program?
#include <stdio.h> int main(void) { int a=10; f(a); return 0; } void f(int a) { printf("%d",a+1); }
CorrectIncorrect -
Question 4 of 10
4. Question
Q4) What is the input displayed by the below program?
#include <stdio.h> void f(int b[],int n) { int c[10]={1,2,3,4},i; b=c; for(i=0;i<n;i++); c[i]=b[i]; printf("%d",b[i]); } int main(void) { int b[10]={5,6,7,8}; f(b,4); printf("%d",b[4]); return 0; }
CorrectIncorrect -
Question 5 of 10
5. Question
Q5) How many zero’s will be displayed by the below code?
#include <stdio.h> void f(int a[],int n) { if(n>0) { printf("%d",a[n]); f(a,n-1); printf("%d",a[n]); } else { printf("%d",a[n]); } } int main(void) { int a[10]={1,2,3,4,5,6}; f(a,6); return 0; }
CorrectIncorrect -
-
Question 6 of 10
6. Question
Q6) What is the output displayed by the below program?
#include <stdio.h> void f(int a[][5]) { int i,j; for(i=1;i<5;i++) for(j=1;j<5;j++) a[i][j]+=1; } int main(void) { int a[5][5]={1,2,3,4,5},i; f(a); for(i=0;i<5;i++) printf("%d",a[i][i]); return 0; }
CorrectIncorrect -
Question 7 of 10
7. Question
Q7) What is the output displayed by the below program?
#include <stdio.h> int f(int n) { if(n==6) { return n; } else { return 2*f(n+1); } } int main(void) { int n=2,z; z=f(n); printf("%d",z); return 0; }
CorrectIncorrect -
-
Question 8 of 10
8. Question
Q8) What is the output displayed by the below program?
#include <stdio.h> int f(int w,int z) { int r; if(w!=0) { r=w%10; z=z*10+r; f(w/10,z); } else { return z; } } int main(void) { int w=193,z; z=f(w,0); printf("%d",z); return 0; }
CorrectIncorrect -
-
Question 9 of 10
9. Question
Q9)
#include <stdio.h> int f(int w,int z) { if(w<z) return f(z,w); else if(z!=0) return w+f(w,z-1); else return 0; } int main(void) { int z; z=f(10,7); printf("%d",z); return 0; }
CorrectIncorrect -
-
Question 10 of 10
10. Question
Q10) What is the output displayed by the below program?
#include <stdio.h> int w=1; int b=2; void f(int w) { if(w>0) f(w-1); printf("%d",w+b); b++; } int main(void) { int z=3; f(z); return 0; }
CorrectIncorrect