Last Updated on Oct 30, 2015
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
Quiz Description :
Name : C Programming Pre increment and post increment questions Quiz
Subject : C Programming
Topic : Pre increment and post increment
Questions: 20 objective type
Time Allowed : 30 Minutes
Important for : GATE, Job Interviews, PSUs, C Language competitions, Programming competitions, Computer science Engineering students, BCA / MCA students, B.Sc. ( CS / IT)
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 have to finish following quiz, to start this quiz:
You have Completed " C Programming Pre increment and post increment questions Quiz "
0 of 20 questions answered correctly
Your time:
Time has elapsed
Your Final Score is : 0
You have attempted : 0
Number of Correct Questions : 0 and scored 0
Number of Incorrect Questions : 0 and Negative marks 0
Average score |
|
Your score |
|
-
Not categorized
You have attempted: 0
Number of Correct Questions: 0 and scored 0
Number of Incorrect Questions: 0 and Negative marks 0
-
It’s time to share this quiz with your friends on Facebook, Twitter, Google Plus, Whatsapp or LinkedIn…
Click on View Questions Button to check Correct and incorrect answers.
Login
Register
Forgot Password
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
1 points#include <stdio.h>
int main()
{
int i=5;
printf(“%d , %d , %d”, i++, ++i, ++i + ++i);
return 0;
}
What is the output of the above code of C programCorrect
Incorrect
Unattempted
-
Question 2 of 20
2. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int i=16;
printf(“%d , %d”, i++, ++i);
return 0;
}Correct
Incorrect
Unattempted
-
Question 3 of 20
3. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int i=12;
printf(“%d , %d”, i++, i++);
return 0;
}Correct
Incorrect
Unattempted
-
Question 4 of 20
4. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int a=12, b=6;
printf(“%d , %d”, b++, a++);
return 0;
}Correct
Incorrect
Unattempted
-
Question 5 of 20
5. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int a=12, b=6;
printf(“%d , %d”, ++a, ++b);
return 0;
}Correct
Incorrect
Unattempted
-
Question 6 of 20
6. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int a=12, b=6;
printf(“%d , %d , %d”, ++a + ++b, ++b, ++a);
return 0;
}Correct
Incorrect
Unattempted
-
Question 7 of 20
7. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int a=12, b=6;
printf(“%d , %d , %d”, a++ + b++, ++b, ++a);
return 0;
}Correct
Incorrect
Unattempted
-
Question 8 of 20
8. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int i=3;
printf(“%d %d %d\n”, i++ , i, ++i);
return 0;
}Correct
Incorrect
Unattempted
-
Question 9 of 20
9. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int i=3;
printf(“%d %d %d\n”, i++, i, ++i, ++i);
return 0;
}Correct
Incorrect
Unattempted
-
Question 10 of 20
10. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int i=3;
i=i++ + ++i;
printf(“%d \n”, i);
return 0;
}
Correct
Incorrect
Unattempted
-
Question 11 of 20
11. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int w=99;
printf(“%d %d %d\n”, w++ + ++w, ++w + w++, ++w + w++);
return 0;
}Correct
Incorrect
Unattempted
-
Question 12 of 20
12. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int w=99;
printf(“%d , %d\n”, w+=2, ++w);
return 0;
}Correct
Incorrect
Unattempted
-
Question 13 of 20
13. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int j=12 , k=11;
printf(“%d , %d , %d , %d\n”, ++j, ++k, j++, k++);
return 0;
}Correct
Incorrect
Unattempted
-
Question 14 of 20
14. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int j=12 , k=11;
printf(“%d , %d , %d , %d\n”, j, ++k, j+=5, k+=5);
return 0;
}Correct
Incorrect
Unattempted
-
Question 15 of 20
15. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int m=100;
printf(“%d , %d\n”, –m, m–);
return 0;
}Correct
Incorrect
Unattempted
-
Question 16 of 20
16. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int m=89;
printf(“%d , %d\n”, –m + m–, m–);
return 0;
}Correct
Incorrect
Unattempted
-
Question 17 of 20
17. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int m=89;
printf(“%d , %d , %d\n”, –m, –m + m–, m–);
return 0;
}Correct
Incorrect
Unattempted
-
Question 18 of 20
18. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int m=89 , n=74;
printf(“%d , %d , %d\n”, –m + n++, –m + n–, m– + ++n);
return 0;
}Correct
Incorrect
Unattempted
-
Question 19 of 20
19. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int m=24;
printf(“%d , %d , %d , %d\n”, –m, m, m++, m–);
return 0;
}Correct
Incorrect
Unattempted
-
Question 20 of 20
20. Question
1 pointsWhat is the output of the below code of C program
#include <stdio.h>
int main()
{
int j=12 , k=11;
printf(“%d , %d , %d , %d\n”, –j, k, j++, k–);
return 0;
}Correct
Incorrect
Unattempted