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 6353
Q:

Which keystroke is used for updating a field?

A) F11 B) F12
C) F6 D) F9
 
Answer & Explanation Answer: D) F9

Explanation:

F9 keystroke is used for updating a field.

Report Error

View Answer Report Error Discuss

5 6352
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 6350
Q:

The bonds in the compound MgSO4 can be described as

A) covalent B) ionic
C) both A & B D) None of the above
 
Answer & Explanation Answer: C) both A & B

Explanation:

Here the given compound is MgSO4.

In the given compound, Sulphur (S) and Oxygen (O) are two non metals and Magnesium (Mg) is a metal.

In this compound, Sulphur and Oxygen reacts to form covalent bond and the metal Magnesium reacts with both non metals Sulphur and Oxygen to form ionic bonds.

 

Hence, in the given compound MgSO4 there are both covalent and ionic bonds.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 6350
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 6346
Q:

The rolling plan concept in our country started with the

A) Third plan B) Fourth plan
C) Fifth plan D) Seventh plan
 
Answer & Explanation Answer: C) Fifth plan

Explanation:

The Rolling plan refers to one-year plans in the five-year perspective. under Rolling plan, there would be an annual appraisal of the progress of the plan and on the basis of such an appraisal, the plan for the next year will be prepared. The plan would go on rolling year after year.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

17 6343
Q:

Which of the following is an endocrine gland?

A) Mammary glands B) Apocrine sweat glands
C) Reproductive glands D) Salivary glands
 
Answer & Explanation Answer: C) Reproductive glands

Explanation:

Endocrine glands are glands of the endocrine system that secrete their products, hormones, directly into the blood rather than through a duct.

 

The major glands of the endocrine system include:

pineal gland,

pituitary gland,

pancreas,

ovaries,

testes,

thyroid gland,

parathyroid gland,

hypothalamus and

adrenal glands.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

2 6341
Q:

What is the largest seabird ?

Answer

Albatross

Report Error

View answer Workspace Report Error Discuss

31 6341