ICSE Computer Application - Class X - 2010 PYQ
☰Fullscreen
Table of Content:
Table of Content:
int m = 2; int n = 15; for(int i = 1; i < 5; i++) { m += i; // m = m + i n -= i; // n = n - i } System.out.println("m = " + m); // Output for m System.out.println("n = " + n); // Output for n
char x = 'A'; int m; m = (x == 'a') ? 'A' : 'a'; System.out.println("m = " + m);
int k = 1; int i = 2; while(++i < 6) { k *= i; } System.out.println(k);
Given: int x = 5;
Expression: x++ * 2 + 3 * --x;
length
and length()
functions.
import
?
5, 7, 9, 11, 15, 20, 30, 45, 89, 97
Student
with the following specifications:
MoBike
with the following description: