Decisions making Branching

1
Created on By wefru

Decision making Branching

TEST YOUR BROAD SKILLS

1 / 10

Q.81 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++));

}

2 / 10

Q.82 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();

}

3 / 10

Q.83 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();

}

4 / 10

Q.84 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");

}

5 / 10

Q.85 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;

6 / 10

Q.86 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();

}

7 / 10

Q.87 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;

}

8 / 10

Q.88 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();

}

9 / 10

Q.89 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);

}

10 / 10

Q.90 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);

}

Your score is

The average score is 60%

0%

Leave a Reply