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

Which is true of the 1912 presidential election?

A) Because all three major candidates were Progressive, the Socialist won B) Because all three major candidates were Progressive, Progressive votes were split
C) Although none of the candidates was Progressive, the Progressives decided the election D) Although none of the candidates was Progressive, Progressive ideas were important
 
Answer & Explanation Answer: B) Because all three major candidates were Progressive, Progressive votes were split

Explanation:

Because all three major candidates were Progressive, Progressive votes were split" is the one among the following that is true of the 1912 presidential election.

The correct option among all the options that are given in the question is the option "B".

Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 6494
Q:

Which one do you need for tennis

A) A helmet B) A racket
C) Flippers D) A basket
 
Answer & Explanation Answer: B) A racket

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

12 6486
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 6486
Q:

The Dibang Wildlife Sanctuary is located in which state of India ?

A) Kerala B) Haryana
C) Arunachal Pradesh D) Maharashtra
 
Answer & Explanation Answer: C) Arunachal Pradesh

Explanation:

The Dibang Wildlife Sanctuary is one of the eight wildlife sanctuaries of Arunachal Pradesh, India.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

23 6486
Q:

Water soluble vitamin include

A) vitamin C B) niacin
C) riboflavin D) all of the above
 
Answer & Explanation Answer: D) all of the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams
Job Role: Bank Clerk

31 6485
Q:

Purushmedha i.e. Male sacrifies is referred to in

A) krishna Yajurveda B) Shukla Yajurveda
C) Shatapatha Brahman D) panchvisha Brahman
 
Answer & Explanation Answer: C) Shatapatha Brahman

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

2 6484
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 6484