Revision of Class IX Syllabus
ICSE Class 10 · Computer Applications · Chapter 1
What this chapter covers
- Elementary Concept of Objects and Classes
- Values and Data types
- Operators in Java
- Input in Java
- Mathematical Library Methods
- Conditional constructs in Java
- Iterative constructs in Java
- Nested for loops
Key points
- The four principles of OOP are data abstraction, encapsulation, inheritance and polymorphism.
- Java source code (`.java`) is compiled into bytecode (`.class`); the JVM converts bytecode into object code, which makes Java platform independent.
- An object has state (variables) and behaviour (methods); a class is the blueprint, an object factory and a user-defined data type.
- Java uses Unicode, so a `char` takes 2 bytes; remember the ASCII values 65 (`'A'`), 97 (`'a'`) and 48 (`'0'`).
- The five tokens are keywords, identifiers, literals, punctuators and operators.
- There are eight primitive types; widening happens automatically, narrowing needs an explicit cast, and a cast truncates instead of rounding.
- Prefix means change then use; postfix means use then change.
- Precedence decides the order of evaluation; associativity settles ties between operators of equal precedence.
- Counters and sum accumulators start at 0; product accumulators start at 1.
- `new` creates an object at run time; the dot operator reaches its members.
- Data can enter a program by initialisation, by parameters or through the `Scanner` input stream from `java.util`.
- Errors are syntax (compile time), runtime and logical; comments are `//` and `/* … */`.
- `java.lang` is the default package; `Math` methods such as `pow`, `sqrt`, `cbrt`, `ceil`, `floor`, `round`, `abs`, `max`, `min` and `random` need no import.
- A missing `break` in `switch` causes fall through; `System.exit(0)` ends the program.
- `for` and `while` are entry controlled; `do-while` is exit controlled and runs at least once.
Questions answered
Define encapsulation and give one real-life example.
Distinguish between bytecode and object code.
Why is a class called an object factory?
Name the five types of tokens and give one example of each.
What is the output of `System.out.println("A\tB\\C");`?
State the value and type of `(int)('a' + 1.5)`.
If `int x = 8;` find the value of `y` after `int y = x-- - --x;`, and the final value of `x`.
Give one difference between a syntax error and a logical error.
Past board exam questions
ICSE 2026 board paper · 15 marks
Write a program to accept a number and check if it is a Mark number or not. A number is said to be Mark when sum of the squares of each digit is an even number as well as the last digit of the sum and the last digit of the number given is same. Example: n = 246 sum = 2 x 2 + 4 x 4 + 6 x 6 = 56 56 is an even number as well as last digit is 6 for both sum as well as the number.
Show answer
ICSE 2026 board paper · 1 mark
The full form of JVM is:
- Java Visible Machine
- Java Virtual Mode
- Java Virtual Machine
- Java Visible Mode
Show answer
ICSE 2026 board paper · 1 mark
Which of the following occupies 2 bytes of storage?
- 25
- AM
- 35.2
- \\
Show answer
ICSE 2026 board paper · 1 mark
In a statement c = c + (x * d + e); which variable is an accumulator?
- d
- c
- e
- x
Show answer
ICSE 2026 board paper · 1 mark
The earth spins on its axis completing one rotation in a day. The earth revolves around the sun in 365 days to complete one revolution. What is the Java concept depicted in the given picture? The picture: ROTATION vs REVOLUTION. Rotation: the earth spinning on its axis, 24 HOURS / 1 DAY. Revolution: the earth moving around the SUN, 365 DAYS / 1 YEAR.
- Array
- Condition
- Nested loop
- While loop
Show answer
ICSE 2026 board paper · 1 mark
What is the output of the statement Math.pow (36, 6/5); ?
- 36.0
- 1.0
- 73.71
- 6.0
Show answer
ICSE 2026 board paper · 1 mark
Read the if program segment given below: ``` if (a > b) z = 25; else z = 35; ``` Which one of the following is the correct conversion of the if program segment to ternary?
- z = a > b ? 35 : 25;
- z = a > b ? 25 : 35;
- z = a > b : 35 ? 25;
- z = a > b : 25 ? 35;
Show answer
ICSE 2026 board paper · 1 mark
Assertion (A): The result of the Java expression 3 + 7/2 is 6. Reason (R): According to the hierarchy of operators in Java, addition is done first followed by division.
- (A) is true and (R) is false.
- (A) is false and (R) is true.
- Both (A) and (R) are true and (R) is the correct explanation of (A).
- Both (A) and (R) are true, but (R) is not the correct explanation of (A).