C Programming Cell Structure and Function Quiz

 Cell Structure and Function Quiz

functions C Programming Quiz

Cell Structure and Function Quiz Functions :

Function is a set of Instruction to perform a Particular task is Called Function

ex: Finding the Square root of a given Number, The function after executing it returns a single value

Functions are classified in two User Defined Functions and Built in Functions. Some of library function Standard Like Sqrt(), Math(), Pow(), sin(), log(), and ads() etc., Cell Structure and Function Quiz

1
Created on By wefru

Functions

TEST YOUR BROAD SKILLS

1 / 10

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

}

2 / 10

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

}

3 / 10

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

4 / 10

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

}

5 / 10

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

}

6 / 10

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

}

7 / 10

Q.77 Write c program which display mouse pointer and position of pointer.(In x coordinate, y coordinate)?

8 / 10

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

}

9 / 10

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

}

10 / 10

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

}

Your score is

The average score is 30%

0%

Leave a Reply

Your email address will not be published.