C Programming - Data Types
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Test your C Data Type skill. Answers can be viewed after completion of all questions.
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:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
What will be the output of the following program on 64 bit system?
int main()
{
int x = 10000;
double y = 56;
int *p = &x;
double *q = &y;
printf(“%d %d”, sizeof(p), sizeof(q));
return 0;
}Correct
Incorrect
-
Question 2 of 10
2. Question
What will be the output of the following program?
#include
int main()
{
signed char chr;
chr = 128;
printf(“%d\n”, chr);
return 0;
}Correct
Incorrect
-
Question 3 of 10
3. Question
What will be the output of the following program?
int main(){
printf(“%d\t”,sizeof(6.5));
printf(“%d\t”,sizeof(90000));
printf(“%d”,sizeof(‘A’));
return 0;
}Correct
Incorrect
-
Question 4 of 10
4. Question
What will be the output of sizeof(void *) on 64-bit system?
Correct
Incorrect
-
Question 5 of 10
5. Question
What will be the output of the following program?
void main()
{
float x = 2.2;
double y = 2.2;
if(x==y)
printf(“Equal”);
else
printf(“Not Equal”);
}Correct
Incorrect
-
Question 6 of 10
6. Question
What will be the output of the following program on 64 bit system?
union uni
{
int i;
char c;
};
int main()
{
union uni u;
printf(“%d”, sizeof(u));
}Correct
Incorrect
-
Question 7 of 10
7. Question
What will be the output of the following program?
#include
int main()
{
char a = ‘\012’;printf(“%d”, a);
}Correct
Incorrect
-
Question 8 of 10
8. Question
Which of the following is not correct for static variables?
Correct
Incorrect
-
Question 9 of 10
9. Question
What will be the output of the following program?
main()
{
int a[4] = {1, 2};
printf(“%d %d %d”, a[0], a[1], a[2]);
}Correct
Incorrect
-
Question 10 of 10
10. Question
Which is not the correct data type?
Correct
Incorrect