Total Ten Questions. Each Questions 2 Marks.
Total Time Ten Minutes.
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 again 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 code?
#include <stdio.h> int main(void) { char *p="learning"; printf("%s",&*p); return 0; }
CorrectIncorrect -
Question 2 of 10
2. Question
Q2) What is the output displayed by the below code?
#include <stdio.h> void f(char *a,char *b) { char *temp=a; a=b; b=temp; } int main(void) { char *a="learning"; char *b="monkey"; char *temp; f(a,b); printf("%s%s",a,b); temp=a; a=b; b=temp; printf("%s%s",a,b); return 0; }
CorrectIncorrect -
Question 3 of 10
3. Question
Q3) What will be the output displayed by the below code?
#include <stdio.h> int f(char *a) { char *b=a; while(*a++); return a-b; } int main(void) { char *a="learning"; printf("%d",f(a)); return 0; }
CorrectIncorrect -
-
Question 4 of 10
4. Question
Q4) What is the output displayed by the below code?
#include <stdio.h> int main(void) { char a[]="learn2022"; char *p=a; printf("%s",p+(p[1]-p[2])); return 0; }
CorrectIncorrect -
Question 5 of 10
5. Question
Q5) What is the output displayed by the below code?
#include <stdio.h> int main(void) { char a[]="monkey"; printf("%s%c%s",&a[5],*(a+2),&4[a]); return 0; }
CorrectIncorrect -
Question 6 of 10
6. Question
Q6) What is the output displayed by the below code?
#include <stdio.h> int main(void) { char p[20]; char *s="monkey"; int i; for(i=0;i<6;i++) p[i]=s[6-i]; printf("%s",p); return 0; }
CorrectIncorrect -
Question 7 of 10
7. Question
Q7) What is the output displayed by the below program?
#include <stdio.h> void f(char *a) { if(*a&&*a!=' ') { f(a+1); printf("%c",*a); } } int main(void) { char *a="ABCD EFGH"; f(a); return 0; }
CorrectIncorrect -
Question 8 of 10
8. Question
Q8) What is the output displayed by the below code?
#include <stdio.h> int main(void) { char n[5][20]={"english","hindi","telugu","tamil","punjabi"}; int i; char *temp; temp=n[3]; n[3]=n[4]; n[4]=temp; for(i=0;i<=4;i++) printf("%s",n[i]); return 0; }
CorrectIncorrect -
Question 9 of 10
9. Question
Q9) What is the output displayed by the below code?
#include <stdio.h> int main(void) { char a[2][10]={"hi","bye"}; printf("%s",a[1]+1); return 0; }
CorrectIncorrect -
-
Question 10 of 10
10. Question
Q10) What is the output displayed by the below code?
#include <stdio.h> char *f(char *a) { a[0]='d'; return a; } int main(void) { char *a="monkey",*b; b=f(a); printf("%s",b); return 0; }
CorrectIncorrect