What will be the output of the following Java code? - Area Of Circle
public class area {
public static void main(String args[])
{
double r, pi, a;
r = 9.8;
pi = 3.14;
a = pi * r * r;
System.out.println(a);
}
}
301.5656
301
301.56
301.56560000
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
Which one is a valid declaration of a boolean?
Solution |
2
Discuss
|
What is the range of short data type in Java?
Solution |
3
Discuss
|
What will be the output of these statement?
Solution |
4
Discuss
|
What is the base of BigDecimal data type?
Solution |
5
Discuss
|
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 |
6
Discuss
|
What is the output of this program?
Solution |
7
Discuss
|
What will be the output of the following Java code? - Average
Solution |
8
Discuss
|
Which of these values can a boolean variable contain?
Solution |
9
Discuss
|
An expression involving byte, int, and literal numbers is promoted to which of these?
Solution |
10
Discuss
|
Which data type value is returned by all transcendental math functions?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved