Output Questions for Class 10 ICSE Computer Applications
Java Math Lib Methods
Predict the output of the following:
System.out.println(Math.cbrt(42.875));
View Answer42 Likes
Java Math Lib Methods
Predict the output of the following:
System.out.println(Math.sqrt(10.24));
View Answer102 Likes
Java Math Lib Methods
Give the output of the following:
- Math.floor (-4.7)
- Math.ceil(3.4) + Math.pow(2, 3)
View Answer28 Likes
Java Math Lib Methods
Give the output of the following Math functions:
- Math.ceil(4.2)
- Math.abs(-4)
View Answer10 Likes
Java Math Lib Methods
Give the output of the following:
- Math.max(Math.ceil(14.5), 15.5)
- Math.sqrt(Math.abs(-225))
View Answer14 Likes
Java Library Classes
Give the output of the following code:
String P = "20", Q ="19"; int a = Integer.parseInt(P); int b = Integer.valueOf(Q); System.out.println(a+""+b);
View Answer37 Likes
Java Library Classes
Find the output of the following program snippet:
char c = 'B'; int i = 4; System.out.println(c+i); System.out.println((int)c+i);
View Answer44 Likes
Java Library Classes
Find the output of the following program snippet:
String s= "7"; int t =Integer.parseInt(s); t=t+1000; System.out.println(t);
View Answer15 Likes
Java Library Classes
Find the output of the following program snippet:
char c = 'B'; int i = 4; System.out.println(c+i); System.out.println((int)c+i);
View Answer41 Likes
Java Library Classes
Find the output of the following program snippet:
char ch = 'x'; int n = 5; n = n + (int)ch; char c = (char)n; System.out.println((char)((int)c-26));
View Answer92 Likes
Showing 51 - 60 of 147 Questions