

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Csharp knowledge and support exam preparation. Choose a topic below to get started.
1. |
4000004$ |
A. | 0.4000023 |
B. | 0.0400021 |
C. | 0.4000001 |
Answer» D. | |
2. |
Select appropriate difference between decimal, float and double data type in C# ? |
A. | Float and Double are floating binary point types while decimal is a floating decimal point type. |
B. | Precision difference for float is ‘7’ digit for double is ’15’ to ’16’ digit and for decimal is ’28’ to ’29’ digits. |
C. | Some values which cannot be exactly represented hence for those values float and double are more appropriate. |
D. | 1 |
Answer» C. Some values which cannot be exactly represented hence for those values float and double are more appropriate. | |
3. |
Minimum and Maximum range of values supported by ‘float’ data type are ?$ |
A. | 1.5 * 10<sup>-40</sup> to 3.4 * 10<sup>38</sup> |
B. | 1.5 * 10<sup>-45</sup> to 3.4 * 10<sup>30</sup> |
C. | 1.5 * 10<sup>-45</sup> to 3.4 * 10<sup>38</sup> |
D. | 1.5 * 10<sup>-45</sup> to 3.4 * 10<sup>37</sup> |
Answer» D. 1.5 * 10<sup>-45</sup> to 3.4 * 10<sup>37</sup> | |
4. |
Correct way to define a value 6.28 in a variable ‘pi’ where value cannot be modified ?$ |
A. | define pi 6.28F |
B. | pi = 6.28F |
C. | const float pi = 6.28F |
D. | const float pi |
Answer» D. const float pi | |
5. |
Valid Size of float data type is ? |
A. | 10 Bytes |
B. | 6 Bytes |
C. | 4 Bytes |
D. | 8 Bytes |
Answer» D. 8 Bytes | |