#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();
}
}

1 Mark(s)

Run time error

hello

Infinite hello

hello hello

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;
}
}

1 Mark(s)

Hello is printed infinite times

Hello

Varies

Compile time error

The keyword ‘break’ cannot be simply used within:

The keyword ‘break’ cannot be simply used within:

1 Mark(s)

do-while

if-else

for

while

What is the return-type of the function sqrt()

What is the return-type of the function sqrt()

1 Mark(s)

int

float

double

depends on the data type of the parameter

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?

1 Mark(s)

break

continue

return

none of the mentioned

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) ?

1 Mark(s)

Variable

Function

typedef

macros

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”);
}

1 Mark(s)

hello 5

Error

Nothing

Garbage value

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);

1 Mark(s)

A function with same name cannot have different signatures

A function with same name cannot have different return types

A function with same name cannot have different number of parameters

All of the mentioned

Which keyword can be used for coming out of recursion?

Which keyword can be used for coming out of recursion?

1 Mark(s)

break

return

exit

Both break and return

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;
}

1 Mark(s)

Infinite times

32767 times

65535 times

Till stack overflows

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?

1 Mark(s)

return

static

new

volatile

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;
}

1 Mark(s)

prints “SimpleWay2Code, C-Program” infinitely

prints “C-Program” infinetly

prints “C-Program, SimpleWay2Code” infinitely

Error: main() should not inside else statement

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?

1 Mark(s)

78 m78 m

88 m88 m

75 m75 m

70 m70 m

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?

1 Mark(s)

22

2.52.5

33

44

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

1 Mark(s)

25km/hr and 40km/hr respectively

25km/hr and 60 km/hr respectively

25km/hr and 50km/hr respectively

None of these

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?

1 Mark(s)

53000

58000

50000

59000

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?

1 Mark(s)

35.235.2

36.136.1

36.536.5

39.139.1

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:

1 Mark(s)

3 : 4 : 6

3 : 5 : 6

15 : 20 : 24

5 : 6 : 3

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?

1 Mark(s)

Rs. 17,000

Rs. 20,000

Rs. 25,500

None of these

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?

1 Mark(s)

1212

2828

160160

180180

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?

1 Mark(s)

0.040.04

0.0566666666666670.056666666666667

1. 6%1. 6%

0.0666666666666670.066666666666667

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?

1 Mark(s)

6.24 km

6 km

5.76 km

5.66 km

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?

1 Mark(s)

3.6 sec

18 sec

36 sec

72 sec

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?

1 Mark(s)

9

10

12

20

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:

1 Mark(s)

20%

25%

30%

None

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?

1 Mark(s)

1212

4848

8484

108108

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?

1 Mark(s)

1 13/17 hours1 13/17 hours

2 8/11 hours2 8/11 hours

3 9/17 hours3 9/17 hours

4 1/2 hours4 1/2 hours

Previous
Mark For Review & Next
Next
Clear Answer
Finish