Live Help (Start Chat)
View Count: 0
Duration: 34 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 35 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 14 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 18
Can we have multiple names for functions? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:

Question No: 2 of 18
Can we call one function in another function? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:

Question No: 3 of 18
A function gets defined if the function name is followed by the semicolon? 
Options:
  1. True
  2. False
View Answer/Explanation:
b
Explanation:

Question No: 4 of 18
Can we call a function from other function any number of times? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:

Question No: 5 of 18
Default return type for a function is? 
Options:
  1. void
  2. int
  3. float
  4. No return type
View Answer/Explanation:
b
Explanation:

Question No: 6 of 18
In the below program what will be the error when you execute it?
#include
#include
prod(x, y, z);
void main()
{
int a,b,c,p;
a=b=c=5;
p=prod(a,b,c);
printf("p=%d",p);
}
int prod(int x,int y,int z)
{
int p;
p=x*y*z;
return (p);
} 
Options:
  1. Syntax error
  2. Run time error
  3. Compilation error
  4. None of above
View Answer/Explanation:
c
Explanation:
compilation error: call to undefined function in main(),because in the above program function prototype and function definition are not matched. So we have to declare prototype as prod (int x, int y, int z).

Question No: 7 of 18
Does a function execute all the statements even though it is not called by other function 
Options:
  1. True
  2. False
View Answer/Explanation:
b
Explanation:
A C program doesn't execute the statements in a function until the function is called by another part of the program.

Question No: 8 of 18
What will be the output of above program if number is 5
#include
  int main()
{
   	int num,count;
   	printf("\nEnter a number:");
  	 scanf("%d",&num);
   	count=interrupt(num);
   	if(count==2)
      		printf("%d is a prime number",num);
  	 else
      		printf("%d is not a prime number",num);
  	 return 0;
}
 int interrupt(int num)
{
int i,count=0;
  	for(i=1;i<=num;i++)
{
       	if(num%i==0)
        	 count++;
   }
   return count;
} 
Options:
  1. Prime number,5
  2. Not a prime number,5
  3. Compilation number
  4. Runtime error
View Answer/Explanation:
c
Explanation:
interrupt is keyword of c language. It cannot be function name.

Question No: 9 of 18
what will be the output of above program?
#include
#include
int check(int ch) ;
int main()
{
int i=45;
float c;
c=check(i);
printf("ch=%f",c);
}
int check(int ch)
{
float f;
f=(ch>=45) ? 3.14 :6.28;
return f;
 } 
Options:
  1. 3
  2. 3.14
  3. 3.00
  4. 3.00000
View Answer/Explanation:
d
Explanation:

Question No: 10 of 18
What will be the output of above program?
#include
float areacircle(float r);
main()
{
	int area;
	float radius=2.0;
	area=areacircle(radius);
	printf("area=%f",area);
	return 0;
}
float areacircle(float r)
{
	float a;
	a=3.14*r*r;
	printf("a=%f\n",a);
	return (a);
} 
Options:
  1. a=125,area=12
  2. a=125..5,area=12.0
  3. a=12.560000,area=0.000000
  4. a=12.500 ,area=12.500
View Answer/Explanation:
c
Explanation:

  1