0 of 15 Questions completed
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 must first complete the following:
0 of 15 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)
2. The elements of enum is called as _______
3. By using enums can we increase the level of abstraction?
4. syntax of enum
5. benefits of enums are_______
6. #include<stdio.h>
enum week
{
sun,mon,tue,wed,thu,fri,sat};
main()
{
enum week sun;
printf(“%d”,sun);
}
7. Can we assign float variables to the enum elements?
8. What is the output for below pogramme
#include<stdio.h>
enum week
{
sun=1,mon=12.4,tue,wed,thu,fri,sat};
main()
{
enum week w;
printf(“%d”,sun);
}
9. Enums will enumerates only integers
10. Predict the output for below programme
#include<stdio.h>
enum week
{
sun,mon,tue,wed,thu,fri,sat};
main()
{
enum week w;
printf(“%d”,sun);
sun=2;
printf(“%d”,sun);
}
11. What is the output of following code
#include<stdio.h>
enum month{jan,feb,mar,apr,mav};
main()
{
enum month m,n;
m=feb;
printf(“%d\n”,m);
return 0;
}
12. enum is a keyword
13. advantages of enum
14. What is output of below code
#include<stdio.h>
enum day{sun=1,mon,tue,wed};
main()
{
enum day d1;
printf(“%d\t”,mon);
d1=mon+2;
printf(“%d\n”,d1);
return 0;
}
15. What is output of below code
#include<stdio.h>
enum day{sun=1,mon,tue,wed};
main()
{
enum day d1;
printf(“%s\n”,mon);
d1=mon+2;
printf(“%d\n”,d1);
return 0;
}