Questions

Q:

We want to round off x, a Float to an Int value. The correct way to do so would be

A) Y = ( int ) ( x + 0.5 ) ; B) Y = int ( x + 0.5) ;
C) Y = ( int ) x + 0.5; D) Y = ( int ) ( ( int ) x + 0.5 )
 
Answer & Explanation Answer: A) Y = ( int ) ( x + 0.5 ) ;

Explanation:

Rounding off a value means replacing it by a nearest value that is approximately equal or smaller or greater to the given number.

 

y = (int)(x + 0.5); here x is any float value. To roundoff, we have to typecast the value of x by using (int)

 

Example:

 

#include

 

int main ()

 

{

 

  float x = 2.6;

 

  int y = (int)(x + 0.5);

 

  printf ("Result = %d\n", y );

 

  return 0;

 

}

 

Result : 3

Report Error

View Answer Report Error Discuss

Filed Under: Programming

3 6393
Q:

India's forest sponge iron plant is at

A) Kothagudam B) Kurnool
C) Kadapa D) Kavaratti
 
Answer & Explanation Answer: A) Kothagudam

Explanation:

Kothagudam is in Andhra Pradesh. The sponge iron will act as a substitute for steel scrap and be used as feed stock of electric arc steel making.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

9 6392
Q:

A clock is started at 11 a.m. By 600 seconds past 6 p.m, the hour hand has turned through ?

A) 155 degrees B) 175 degrees
C) 205 degrees D) 215 degrees
 
Answer & Explanation Answer: D) 215 degrees

Explanation:

The total angle traced by the hour hand is the angle traced in 7 hours and 10 minutes.
We know that the angle traced by the hour hand in one hour is 30º and in one minute is 1/2º.
Therefore, (30º x 7) + (10 x 1/2º) = 215º is the angle traced by the hour hand.

Report Error

View Answer Report Error Discuss

Filed Under: Clock puzzles
Exam Prep: Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO

15 6389
Q:

What is a rhinos horn made of ?

A) Bones B) Collagen
C) Fibroin D) Kerotin
 
Answer & Explanation Answer: D) Kerotin

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds

33 6386
Q:

Solve the Puzzle?

mathpuzzle1525339524.jpg image

Answer

From the assumption and trial and error method,


last three digits sum must leave the same digit as the answer. It is possible only if the answer must be units digit number leaving tens digit as carry.


And the possible 3rd digit is 5. Since 5 + 5 + 5 = 15 


Now, 2nd step is  1 + x + x + x = 5


=> 3x = 4


It is possible with x = 8. 8 + 8 + 8 + 1 = 25 leaving 2 as carry. 


Now, 3rd step is 2 + x + x + x = 5 => x = 1


 


Hence, the three dgits are 1, 8, 5.


185 + 185 + 185 = 555. 

Report Error

View answer Workspace Report Error Discuss

Subject: Math Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO

10 6384
Q:

The Constitution of India was adopted on

A) 26th January, 1950 B) 26th January, 1949
C) 26th January, 1949 D) 15th August, 1947
 
Answer & Explanation Answer: C) 26th January, 1949

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

7 6377
Q:

When an electric bulb breaks , there is an explosive sound. That is due to

A) the chemical reaction between the gases inside the bulb B) the compressed gases inside rushing out suddenly
C) the air outside rushing in to fill the vacuum inside the bulb D) None of these
 
Answer & Explanation Answer: C) the air outside rushing in to fill the vacuum inside the bulb

Explanation:

The inside of the bulb being a vacuum, the outside air rushes in when the bulb is broken. The vibrations of the rushing air molecules produce the sound.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

13 6373
Q:

The Rupee sign '₹' was adopted by Government of India in the year?

A) 2009 B) 2010
C) 2011 D) 2012
 
Answer & Explanation Answer: B) 2010

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 6373