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

2 5281
Q:

The protoplasm of a child is exactly the same as that of its

A) mother B) father
C) grandfather D) identical twin
 
Answer & Explanation Answer: D) identical twin

Explanation:

Though all living organisms  are made of protoplasm each individual has a different composition however slight it be. In identical twins the same cell divides into two and each one develops into one person. So the genitic make-up and type of protoplasm are exactly the same.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

10 5280
Q:

I do just enough work to get by.

A) Disagree B) Agree
C) Neutral D) Strongly Disagree
 
Answer & Explanation Answer: A) Disagree

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

2 5274
Q:

Select the synonym of

 

haste

 

A) soon B) eventually
C) later D) never
 
Answer & Explanation Answer: A) soon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 5270
Q:

Who among the following devised the method of making 'Pakka' roads?

A) Mc Adam B) Jimi Adams
C) George Stephenson D) Graham Brothers
 
Answer & Explanation Answer: A) Mc Adam

Explanation:

Mc Adam devised the method of making 'Pakka' roads. which is also called macad-amized' roads named after him

Report Error

View Answer Report Error Discuss

Filed Under: World History

7 5270
Q:

The alpha-particles are

A) high energy electrons B) positively charged hydrogen irons
C) high energy x ray radiations D) double positively charged helium nuclei
 
Answer & Explanation Answer: D) double positively charged helium nuclei

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

6 5269
Q:

Which Indian city has been ranked the world's second most densely populated city with 31,700 people per sq km, by the World Economic Forum (WEF) citing UN Habitat Data  ?

A) Mumbai B) New Delhi
C) Kolkata D) Hyderabad
 
Answer & Explanation Answer: A) Mumbai

Explanation:

Mumbai has been ranked the world's second most densely populated city with 31,700 people per sq km, by the World Economic Forum (WEF) citing UN Habitat Data. Bangladesh's capital Dhaka topped the list with 44,500 people per sq km. Rajasthan's Kota has been ranked the world's seventh most densely populated city with 12,100 people per sq km.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

5 5267
Q:

Which ionization process requires the most energy?

A) C3+ (g) → C4+ (g) + e- B) C (g) → C+ (g) + e-
C) C2+ (g) → C3+ (g) + e- D) C+ (g) → C2+ (g) + e-
 
Answer & Explanation Answer: A) C3+ (g) → C4+ (g) + e-

Explanation:

We know that each successive IE is greater than the previous one, because each ionization process removes one electron and hence increases the total attractive force on the remaining electrons from the nucleus. Hence, C3+ (g) → C4+ (g) + e- needs more energy.

Report Error

View Answer Report Error Discuss

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

1 5266