What is the output of this code having void return-type function?
#include <stdio.h>
void foo()
{
return 1;
}
void main()
{
int x = 0;
x = foo();
printf(“%d”, x);
}
What is the output of this code having void return-type function?
#include <stdio.h>
void foo()
{
return 1;
}
void main()
{
int x = 0;
x = foo();
printf(“%d”, x);
}
What is the output of this C code?
#include <stdio.h>
void main()
{
static int x = 3;
x++;
if (x <= 5)
{
printf(“hello”);
main();
}
}
What is the output of this C code?
#include <stdio.h>
void main()
{
static int x = 3;
x++;
if (x <= 5)
{
printf(“hello”);
main();
}
}
Which keyword can be used for coming out of recursion?
Which keyword can be used for coming out of recursion?
The output of the code below is
#include <stdio.h>
void main()
{
int k = m();
printf(“%d”, k);
}
void m()
{
printf(“hello”);
}
The output of the code below is
#include <stdio.h>
void main()
{
int k = m();
printf(“%d”, k);
}
void m()
{
printf(“hello”);
}
Which of the following cannot be used as LHS of the expression in for (exp1 ;exp2 ; exp3) ?
Which of the following cannot be used as LHS of the expression in for (exp1 ;exp2 ; exp3) ?
What will be the output of the program?
#include<stdio.h>
int main()
{
int i=1;
if(!i)
printf(“SimpleWay2Code,”);
else
{
i=0;
printf(“C-Program”);
main();
}
return 0;
}
What will be the output of the program?
#include<stdio.h>
int main()
{
int i=1;
if(!i)
printf(“SimpleWay2Code,”);
else
{
i=0;
printf(“C-Program”);
main();
}
return 0;
}
What is the return-type of the function sqrt()
What is the return-type of the function sqrt()
The output of this C code is?
#include <stdio.h>
void main()
{
int i = 0;
if (i == 0)
{
printf(“Hello”);
break;
}
}
The output of this C code is?
#include <stdio.h>
void main()
{
int i = 0;
if (i == 0)
{
printf(“Hello”);
break;
}
}
The keyword ‘break’ cannot be simply used within:
The keyword ‘break’ cannot be simply used within:
Which keyword is used to come out of a loop only for single iteration?
Which keyword is used to come out of a loop only for single iteration?
How many times the program will print “SimpleWay2Code” ?
#include<stdio.h>
int main()
{
printf(“SimpleWay2Code”);
main();
return 0;
}
How many times the program will print “SimpleWay2Code” ?
#include<stdio.h>
int main()
{
printf(“SimpleWay2Code”);
main();
return 0;
}
The value obtained in the function is given back to main by using ________ keyword?
The value obtained in the function is given back to main by using ________ keyword?
The output of the code below is
#include <stdio.h>
int *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf(“%d”, k);
}
The output of the code below is
#include <stdio.h>
int *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf(“%d”, k);
}
What is the output of this C code?
#include <stdio.h>
void main()
{
m();
void m()
{
printf(“SimpleWay2Code”);
}
}
What is the output of this C code?
#include <stdio.h>
void main()
{
m();
void m()
{
printf(“SimpleWay2Code”);
}
}
What is the problem in the following declarations?
int func(int);
double func(int);
int func(float);
What is the problem in the following declarations?
int func(int);
double func(int);
int func(float);
A man can row 6 kmph in still water. When the river is running at 1.2 kmph, it takes him 1 hour to row to a place and black. What is the total distance traveled by the man?
A man can row 6 kmph in still water. When the river is running at 1.2 kmph, it takes him 1 hour to row to a place and black. What is the total distance traveled by the man?
The compound interest on Rs. 30,000 at 7% per annum is Rs. 4347. The period(in years) is?
The compound interest on Rs. 30,000 at 7% per annum is Rs. 4347. The period(in years) is?
Salaries of Ravi and Sumit are in the ratio 2:3. If the salary of each is increased by Rs. 4000, the new ratio becomes 40:57. What is Sumit’s present salary?
Salaries of Ravi and Sumit are in the ratio 2:3. If the salary of each is increased by Rs. 4000, the new ratio becomes 40:57. What is Sumit’s present salary?
At what rate percent per annum will the simple interest on a sum of money be 2/5 of the amount in 10 years?
At what rate percent per annum will the simple interest on a sum of money be 2/5 of the amount in 10 years?
A and B start a business, with A investing the total capital of Rs.50000, on the condition that B pays A interest @ 10% per annum on his half of the capital. A is a working partner and receives Rs.1500 per month from the total profit and any profit remaining is equally shared by both of them. At the end of the year, it was found that the income of A is twice that of B. Find the total profit for the year?
A and B start a business, with A investing the total capital of Rs.50000, on the condition that B pays A interest @ 10% per annum on his half of the capital. A is a working partner and receives Rs.1500 per month from the total profit and any profit remaining is equally shared by both of them. At the end of the year, it was found that the income of A is twice that of B. Find the total profit for the year?
The H.C.F and L.C.M of two numbers are 84 and 21 respectively. If the ratio of the two numbers is 1:4, then the larger of the two numbers is?
The H.C.F and L.C.M of two numbers are 84 and 21 respectively. If the ratio of the two numbers is 1:4, then the larger of the two numbers is?
An article is bought for Rs. 600 and sold for Rs. 750. The gain percent is:
An article is bought for Rs. 600 and sold for Rs. 750. The gain percent is:
If the sum and difference of two numbers are 20 and 8 respectively, then the difference of their square is?
If the sum and difference of two numbers are 20 and 8 respectively, then the difference of their square is?
The mean of 50 observations was 36. It was found later that an observation 48 was wrongly taken as 23. The corrected new mean is?
The mean of 50 observations was 36. It was found later that an observation 48 was wrongly taken as 23. The corrected new mean is?
If the area of a circle is 616 sq cm then its circumference?
If the area of a circle is 616 sq cm then its circumference?
Pipes A and B can fill a tank in 5 and 6 hours respectively. Pipe C can empty it in 12 hours. If all the three pipes are opened together, then the tank will be filled in?
Pipes A and B can fill a tank in 5 and 6 hours respectively. Pipe C can empty it in 12 hours. If all the three pipes are opened together, then the tank will be filled in?
Excluding stoppages, the speed of a bus is 54 km/hr and including stoppages, it is 45 km/hr. For how many minutes does the bus stop per hour?
Excluding stoppages, the speed of a bus is 54 km/hr and including stoppages, it is 45 km/hr. For how many minutes does the bus stop per hour?
A car travels 25km an hour faster than a bus for a journey of 500km. If the bus takes 10 hours more than the car, then the speeds of the bus and the car are
A car travels 25km an hour faster than a bus for a journey of 500km. If the bus takes 10 hours more than the car, then the speeds of the bus and the car are
A jogger running at 9 km/hr along side a railway track is 240 m ahead of the engine of a 120 m long train running at 45 km/hr in the same direction. In how much time will the train pass the jogger?
A jogger running at 9 km/hr along side a railway track is 240 m ahead of the engine of a 120 m long train running at 45 km/hr in the same direction. In how much time will the train pass the jogger?
If P : Q = 3 : 4 and Q : R = 5 : 6, then P : Q : R is:
If P : Q = 3 : 4 and Q : R = 5 : 6, then P : Q : R is: