c_anilcomputers_udaipur

C Language QUIZ 03

Total no of Question = 25

All Questionnaire compulsory to answered

Quiz created by :   Anilcomputersudaipur.com

Add: Anil Computers, 368, Prem Kutir, Univestiy Main Road Nr. Tulsi Garden, Udaipur- 094142 34600

C Language Quiz 03

Please enter your email:

1. What will be output if you will compile and execute the following c code?
int extern x;
void main()
printf(?%d?,x);
x=2;
getch();
}
int x=23;

 
 
 
 

2. What will be output if you will compile and execute the following c code?
void main(){
int a=25;
clrscr();
printf(?%o %x?,a,a);
getch();
}

 
 
 
 

3. What will be output if you will compile and execute the following c code?
#define call(x) #x
void main(){
printf(?%s?,call(c/c++));
}

 
 
 
 

4. What will be output if you will compile and execute the following c code?
struct marks{
int p:3;
int c:3;
int m:2;
};
void main(){
struct marks s={2,-6,5};
printf(?%d %d %d?,s.p,s.c,s.m);
}

 
 
 
 

5. What will be output if you will compile and execute the following c code?
void main(){
int a=25;
clrscr();
printf(?%o %x?,a,a);
getch();
}

 
 
 
 

6. What will be output if you will compile and execute the following c code?

void main(){
int huge*p=(int huge*)0XC0563331;
int huge*q=(int huge*)0xC2551341;
*p=200;
printf(?%d?,*q);
}

 
 
 
 

7. What will be output if you will compile and execute the following c code?
void main()
{
if(printf(?cquestionbank?))
printf(?I know c?);
else
printf(?I know c++?);
}

 
 
 
 

8. What will be output if you will compile and execute the following c code?
void main(){
if(printf(?cquestionbank?))
printf(?I know c?);
else
printf(?I know c++?);
}

 
 
 
 

9. What will be output if you will compile and execute the following c code?
void main(){
static main;
int x;
x=call(main);
clrscr();
printf(?%d ?,x);
getch();
}
int call(int address){
address++;
return address;
}

 
 
 
 

10. What will be output if you will compile and execute the following c code?
#define message ?union is
power of c?
void main(){
clrscr();
printf(?%s?,message);
getch();
}

 
 
 
 

11. What will be output if you will compile and execute the following c code?
void main(){
static main;
int x;
x=call(main);
clrscr();
printf(“%d “,x);
getch();
}
int call(int address){
address++;
return address;
}

 
 
 
 

12. int y[4] = {6, 7, 8, 9};
int *ptr = y + 2; printf(?%dn?, ptr[ 1 ] );
What is printed when the sample code above is executed?

 
 
 
 

13. What will be output if you will compile and execute the following c code?
void main(){
int a,b;
a=1,3,15;
b=(2,4,6);
clrscr();
printf(?%d ?,a+b);
getch();
}

 
 
 
 

14. . int i = 4;
switch (i)
{
default: ;
case 3:
i += 5;
if ( i == 8)
{
i++;
if (i == 9) break;
i *= 2;
}
i -= 4;
break;
case 8:
i += 5;
break;
}
printf(?i = %dn?, i);
What will the output of the sample code above be?

 
 
 
 

15. What will be output if you will compile and execute the following c code?
#include ?string.h?
void main(){
clrscr();
printf(?%d %d?,sizeof(?string?),strlen(?string?));
getch();
}

 
 
 
 

16. What will be output if you will compile and execute the following c code?
void main()
{
int i=0;
if(i==0){
i=((5,(i=3)),i=1);
printf(?%d?,i);
}
else
printf(?equal?);
}

 
 
 
 

17. What will be output if you will compile and execute the following c code?
void main(){
static main;
int x;
x=call(main);
clrscr();
printf(?%d ?,x);
getch();
}
int call(int address){
address++;
return address;
}

 
 
 
 

18. What will be output if you will compile and execute the following c code?
#define message ?union is
power of c?
void main()
{
clrscr();
printf(?%s?,message);
getch();
}

 
 
 
 

19. . What will be output if you will compile and execute the following c code?
#define call(x) #x
void main(){
printf(?%s?,call(c/c++));
}

 
 
 
 

20. What will be output if you will compile and execute the following c code?
void main(){
int huge*p=(int huge*)0XC0563331;
int huge*q=(int huge*)0xC2551341;
*p=200;
printf(?%d?,*q);
}

 
 
 
 

21. What will be output if you will compile and execute the following c code?
struct marks{
int p:3;
int c:3;
int m:2;
};
void main(){
struct marks s={2,-6,5};
printf(?%d %d %d?,s.p,s.c,s.m);
}

 
 
 
 

22. What will be output if you will compile and execute the following c code?
int extern x;
void main()
printf(?%d?,x);
x=2;
getch();
}
int x=23;

 
 
 
 

23. What will be output if you will compile and execute the following c code?
#include ?string.h?
void main(){
clrscr();
printf(?%d %d?,sizeof(?string?),strlen(?string?));
getch();
}

 
 
 
 

24. What will be output if you will compile and execute the following c code?
void main(){
int a,b;
a=1,3,15;
b=(2,4,6);
clrscr();
printf(?%d ?,a+b);
getch();
}

 
 
 
 

25. What will be output if you will compile and execute the following c code?
void main(){
int i=0;
if(i==0){
i=((5,(i=3)),i=1);
printf(?%d?,i);
}
else
printf(?equal?);
}

 
 
 
 

Question 1 of 25

Anil Computers

Anil Computers

Best computer Institute in Udaipur

Quiz_Anilcomputers1

सर्टिफिकेट  पाने के लिए अपने रिजल्ट का Screen shot नीचे दिये गये मोबाइल नम्बर पर send करें। Strictly call not allowed.