Java - Thing to know before proceed - Datatype Quiz
# | Quiz |
---|---|
1
Discuss
|
Datatype
Which data type value is returned by all transcendental math functions?
Solution |
2
Discuss
|
Datatype
Which of these literals can be contained in float data type variable?
Solution |
3
Discuss
|
Datatype
An expression involving byte, int, and literal numbers is promoted to which of these?
Solution |
4
Discuss
|
Datatype
Which of the following are legal lines of Java code? 1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100; 4. byte z = (byte)100L;
Solution |
5
Discuss
|
Datatype
What is the range of byte data type in Java?
Solution |
6
Discuss
|
Datatype
What is the range of short data type in Java?
Solution |
7
Discuss
|
Datatype
What will be the output of these statement?
Solution |
8
Discuss
|
Datatype
What will be the output of the following Java code? - Average
Solution |
9
Discuss
|
Datatype
What will be the output of the following Java code? - Increment / Decrement
Solution |
10
Discuss
|
Datatype
What will be the output of the following Java code? - Area Of Circle
Solution |
11
Discuss
|
Datatype
Which of the below data type doesn’t support overloaded methods for +,-,* and /?
Solution |
12
Discuss
|
Datatype
What is the numerical range of a char data type in Java?
Solution |
13
Discuss
|
Datatype
What is the numerical range of a char data type in Java?Which of these coding types is used for data type characters in Java?
Solution |
14
Discuss
|
Datatype
Which of these values can a boolean variable contain?
Solution |
15
Discuss
|
Datatype
Which one is a valid declaration of a boolean?
Solution |
16
Discuss
|
Datatype
What is the output of this program?
Solution |
17
Discuss
|
Datatype
What is the output of this program?
Solution |
18
Discuss
|
Datatype
Which of the following is the advantage of BigDecimal over double?
Solution |
19
Discuss
|
Datatype
What is the output of below code snippet?
Solution |
20
Discuss
|
Datatype
What is the base of BigDecimal data type?
Solution |
# | Quiz |