Log In Register

Units


Float Datatype - Questions and Answers

 

Practice these Float Datatype under C Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Float Datatype for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Float Datatype of C Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge C Programming specifically Float Datatype.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Float Datatype under C Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Float Datatype topic of C Programming:

 

1.

Which data type is suitable for storing a number like?
    10.0000000001

Answer: Option B

Explanation:

2.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     int main()
  3.     {
  4.         float a = 2.455555555555;
  5.         printf("%f", a);
  6.     }

Answer: Option D

Explanation:

3.

Predict the data type of the following mathematical operation?
    2 * 9 + 3 / 2 . 0

Answer: Option A

Explanation:

4.

Modulus for float could be achieved by?

Answer: Option D

Explanation:

5.

Loss in precision occurs for typecasting from____________

Answer: Option A

Explanation:

6.

Select the odd one out with respect to type?

Answer: Option A

Explanation:

7.

Which of the following % operation is invalid?

Answer: Option B

Explanation:

8.

The number of digits present after decimal in float is________

Answer: Option B

Explanation:

9.

%lf is used to display

Answer: Option A

Explanation:

10.

In a 32-bit compiler, which 2 types have same size?

Answer: Option B

Explanation:

11.

%f access specifier is used for

Answer: Option A

Explanation:

12.

What is the size of float in a 32-bit compiler?

Answer: Option B

Explanation:

13.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     printf("%.0f", 2.89);

Answer: Option B

Explanation:

14.

Which among the following is never possible as an output for float?

Answer: Option A

Explanation: