Output Questions for Class 10 ICSE Computer Applications
Java Library Classes
Find the output of the following program snippet:
int n = 97; char ch = Character.toUpperCase((char)n); System.out.println(ch + " Great Victory");
View Answer49 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 Answer49 Likes
Java Library Classes
Find the output of the following program snippet:
char c = 'A'; int n = (int) c + 32; System.out.println((char)n);
View Answer66 Likes
Java Library Classes
Find the output of the following program snippet:
char ch = 'A'; char chr = Character.toLowerCase(ch); int n = (int)chr-32; System.out.println((char)n + "\t" + chr);
View Answer71 Likes
Java Library Classes
Find the output of the following program snippet:
char ch = 'y'; char chr = Character.toUpperCase(ch); int p = (int) chr; System.out.println(chr + "\t" + p);
View Answer49 Likes
Java Library Classes
Find the output of the following program snippet:
char ch = '*'; boolean b = Character.isLetter(ch); System.out.println(b);
View Answer59 Likes
Java Library Classes
Give the output of the following code:
String A ="26", B="100"; String D=A+B+"200"; int x= Integer.parseInt(A); int y = Integer.parseInt(B); int d = x+y; System.out.println("Result 1 = " + D); System.out.println("Result 2 = " + d);
View Answer28 Likes
Java Library Classes
Give the output of the following program segment:
String a="10", b="20"; int x=Integer.parseInt(a); int y=Integer.valueOf(b); System.out.println(x+y); System.out.println(a+b);
View Answer11 Likes
Java String Handling
Write the output for the following:
String s1 = "phoenix"; String s2 ="island"; System.out.println(s1.substring(0).concat(s2.substring(2))); System.out.println(s2.toUpperCase());
View Answer28 Likes
Java String Handling
What do the following functions return?
String x = "Vision"; String y = "2020"; System.out.println(x.charAt(3));
View Answer35 Likes
Showing 61 - 70 of 147 Questions