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:

What legal services can a lawyer provide?

Answer


    1. Serve clients completely
    2. Be competently loyal to clients
    3. Keep client communications private
    4. Answering legal questions
    5. Helping clients find a solution
    6. Emerge in court on a client’s behalf
    7. Counseling clients

Report Error

View answer Workspace Report Error Discuss

Subject: Law

7 6449
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 6445
Q:

An object, starting from rest, moves with constant acceleration of 4 m/s2. After 8 s, its speed is

A) 16 m/s B) 8 m/s
C) 32 m/s D) 4 m/s
 
Answer & Explanation Answer: C) 32 m/s

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams

18 6444
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 6442
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 6438
Q:

Which of the following is the largest group of animals?

A) Nematoda B) Porifera
C) Arthropoda D) Mollusca
 
Answer & Explanation Answer: C) Arthropoda

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

22 6438
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