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:

Facilitate is similar in meaning to

A) help B) halt
C) check D) All of the above
 
Answer & Explanation Answer: A) help

Explanation:

Facilitate means assist someone in their progress or work. Here Help is the only word which is similar in meaning with facilitate. Halt and check are antonyms i.e opposite in meaning of facilitate. 

 

Hence, facilitate is similar in meaning to help.

Report Error

View Answer Report Error Discuss

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

8 6492
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 6492
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 6487
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 6487
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 6486
Q:

Hydrogen atom is excited from ground state to another state with principal quantum number equal to 4. Then the number of spectral lines in the emission spectra will be

A) 2 B) 6
C) 5 D) 3
 
Answer & Explanation Answer: B) 6

Explanation:

Number of spectral lines from a state n to ground state is

 

                   n(n-1)/2 = 6

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE

11 6484