MCQs On Java Data Types From
MCQs On Java Data Types From
com
A) IEEE 9000
B) IEEE 800
C) IEEE 754
D) IEEE 512
Answer [=]
C
Explanation:
IEEE stands for Institute of Electrical and Electronics
Engineers. Original specifications were defined in the year
1985. The current version includes improvements or
corrections done in the year 2008.
10) What is the character encoding standard used in Java
language?
A) ASCII
B) Unicode
C) Hexacode
D) Bytecode
Answer [=]
C
Explanation:
Unicode takes 2 Bytes of memory to represent all characters of
all languages.
11) What is the abbreviation of ASCII?
A) American Standard Characters for Information Interchange
B) Australian Standard Code for Information Interchange
C) American Standard Code for Information Interchange
D) None of the above
Answer [=]
C
Explanation:
ASCII can represent only the English Alphabets and a few
special symbols.
12) Choose the wrong statement about Java programming?
A) Java supports unsigned integers
B) Java supports signed integers
C) Java supports signed char
D) None of the above
Answer [=]
A
Explanation:
Only C language supports unsigned integers. Java does not
support.
13) Choose the right statement about Java Data types.
A) Integer data types are short, int and long
B) Real number data types are float and double
C) The character data type is char.
D) All the above
Answer [=]
D
14) Which data type among the following is an implementation
of Objects or OOPs?
A) byte
B) int
C) char
D) None of the above
Answer [=]
D
Explanation:
All primitive data types are implemented in a Non-Object
Oriented way.
15) What is a Primitive Data Type in Java?
A) Data type, which is implemented in an Object-oriented way.
B) Data Type which is implemented in a machine-dependent way
C) Data Type which is implemented in a non-object oriented way.
D) None of the above
Answer [=]
C
16) which among the following is not a Data Type in Java?
A) short
B) int
C) long double
D) double
Answer [=]
C
Explanation:
"long double" is present only in C language.
20) Choose the number range for byte data type in Java?
A) -127 to +128
B) -128 to +127
C) 0 to 256
D) 0 to 255
Answer [=]
B