MCQs
Total Questions : 12
| Page 1 of 2 pages
Answer: Option B. -> -32768 to 32767
Short occupies 16 bits in memory. Its range is from -32768 to 32767.
Answer: Option A. -> -128 to 127
Byte occupies 8 bits in memory. Its range is from -128 to 127.
Answer: Option C. -> double
double
Answer: Option A. -> int
An expression involving bytes, ints, shorts, literal numbers, the entire expression is promoted to int before any calculation is done.
Answer: Option B. -> 3.4e-038
Range of data type float is 3.4e-038 to 3.4e+308.
Answer: Option C. -> UNICODE
Unicode defines fully international character set that can represent all the characters found in all human languages. Its range is from 0 to 65536.
Answer: Option D. -> 0 to 65535
Char occupies 16-bit in memory, so it supports 2^16 i:e from 0 to 65535.
Answer: Option D. -> Both a & b
First 0 to 127 character set in Unicode are same as those of ISO-LAIN-1 and ASCII.
Answer: Option A. -> True & False
Boolean variable can contain only one of two possible values, true and false.
Answer: Option C. -> boolean b3 = false;
Boolean can only be assigned true or false literals.