Programming - Naming Conversions and Data types
You Are Here :: Home > JAVA > Naming Conversions and Data types - General Questions
7. |
_________________ data types represent integer numbers i.e. numbers without any fractional parts or decimal points.
|
A. |
Integer |
B.
|
Float |
C.
|
String
|
D.
|
Double
|
|
Answer: Option A
Explanation:
|
8. |
__________________ data types are useful to represent numbers with decimal point.
|
A. |
Integer |
B.
|
Float |
C.
|
String
|
D.
|
Double
|
|
Answer: Option B
Explanation:
|
9. |
what is difference between float and double?
|
A. |
Float can represent up to 7 digits accurately after decimal point, whereas double can represent upto 15 digits accurately after decimal point. |
B.
|
Float can represent up to 8 digits accurately after decimal point, whereas double can represent upto 15 digits accurately after decimal point. |
C.
|
Float can represent up to 7 digits accurately after decimal point, whereas double can represent upto 10 digits accurately after decimal point.
|
D.
|
Float can represent up to 8 digits accurately after decimal point, whereas double can represent upto 10 digits accurately after decimal point.
|
|
Answer: Option A
Explanation:
|
10. |
_____________ data type represents a single character.
|
A. |
Character |
B.
|
Integer |
C.
|
Float
|
D.
|
Double
|
|
Answer: Option A
Explanation:
|
11. |
______________ is an encoding standard that provides a unique number for every character,no matter what the platform. Or language is.
|
A. |
Unicode |
B.
|
Binary Code |
C.
|
Hexadecimal Code
|
D.
|
Decimal Code
|
|
Answer: Option A
Explanation:
|
12. |
______________ uses 2 bytes to represent a single character
|
A. |
Unicode |
B.
|
Binary Code |
C.
|
Hexadecimal Code
|
D.
|
Decimal Code
|
|
Answer: Option A
Explanation:
|
« prev
next »