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

Cathode rays are 

A) electromagnetic wave B) stream of alpha particle
C) stream of electrons D) radiations
 
Answer & Explanation Answer: C) stream of electrons

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

13 6452
Q:

What word begins and ends with an E but only has one letter?

A) Eye B) Envelope
C) Both A & B D) None of the above
 
Answer & Explanation Answer: B) Envelope

Explanation:

Envelope is a letter holder for one letter and in the question it mean that it holds one letter. Eye is also a word which starts and end with E but has one letter in the middle.

Report Error

View Answer Report Error Discuss

3 6446
Q:

The construction of Warangal Fort was started by ______ ?

A) Beta - II B) Rudra
C) Jayapa D) Prola - II
 
Answer & Explanation Answer: B) Rudra

Explanation:
Report Error

View Answer Report Error Discuss

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

24 6443
Q:

What type of simple machine is an axe?

A) Lever B) Wedge
C) Both A & B D) The screw
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The simple machine Axe is made up of both the lever arm and a wedge.

                              what_type_of_simple_machine_is_an_axe1536562753.png image

Report Error

View Answer Report Error Discuss

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

4 6440
Q:

What is the heaviest noble gas?

A) krypton B) radon
C) helium D) xenon
 
Answer & Explanation Answer: B) radon

Explanation:

The seven elements — helium, neon, argon, krypton, xenon, radon, and oganesson of Group 18 of the periodic table are Noble or Inert gases.

 

Radon is the heaviest and Helium is the lightest gases of the noble gases.

Report Error

View Answer Report Error Discuss

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

5 6437
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 6434
Q:

Solve this number puzzle?

Number_puzzle_41538031779.jpg image

A) 111 B) 121
C) 1111 D) 0
 
Answer & Explanation Answer: B) 121

Explanation:

Given 

1 = 1 => 1 x 11 = 11

2 = 22 => 2 x 11 = 22

3 = 33 => 3 x 11 = 33

...

...

Similarly,

11 => 11 x 11 = 121.

Report Error

View Answer Report Error Discuss

16 6428