Revision Notes for Class 10 Computer Applications: Chapter 02 Class as the Basis of All Computation
Review targeted revision notes for Class 10 Computer Applications with the ICSE Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation Notes and Important Questions with Answers. Built according to official educational guidelines for the 2026-27 academic year, these downloadable summaries for Chapter 02 Class as the Basis of All Computation support daily study and last-minute exam readiness.
Review Chapter 02 Class as the Basis of All Computation for Class 10 Computer Applications
View or download the dedicated Chapter 02 Class as the Basis of All Computation revision resource below. Engaging with these structured concept notes daily ensures continuous academic progress and mastery of the 2026-27 curriculum for Computer Applications.
These ICSE Class 10 Computer Applications notes on Class as the Basis of All Computation cover key terms with 32 solved questions. They explain classes and objects, attributes, tokens, literals, default values, the Math class, type conversion and type promotion, with worked program outputs.
Important Terms and Definitions
1. A class contains attributes and methods.
2. Attributes define the state of the class.
3. Methods (also known as functions) define the Behaviour of the class.
4. A class is a template or Blueprint of objects.
5. A class creates objects. It is an object factory. A class may create one or two or more objects.
6. Attributes are variables. The variables specify addresses of definite storing locations in the memory.
7. The values (or data) stored in the variables may be different from one object to another.
8. Objects are distinguished from one another as their sets of values of the attributes or variables are different.
9. Objects are different on the basis of their states.
10. The states of two objects cannot be same.
11. An object may be considered to be a material with physical existence.
12. Collection of a number of items into a single entity or capsule is referred as Encapsulation.
13. State and behaviour are two integral features of every object.
14. Tokens are the smallest individual units of a Java program, e.g. (i) Literals, (ii) Keywords, (iii) Identifiers, (iv) Operators, (v) Punctuators.
15. Literals are data items which have constant or fixed data values, e.g. (i) integer, (ii) float, (iii) character, (iv) string, (v) boolean and (vi) null literals.
16. Reference variables are data locations which store memory addresses of reference datatypes.
17. Classes, arrays, interfaces are reference datatypes.
18. The value of a reference is an address of a datatype. The 'reference to' a variable is same as 'address of' the variable.
19. Initialization is the process of assigning a specific initial value to a variable. This can be done in three ways:
(i) using a literal, e.g. int x = 5;
(ii) using another variable as reference, e.g.
byte y = 1;
int x = y;
(iii) calling a method and using its return value as the initial value (dynamic initialization).
| Data type | Default initial value |
|---|---|
| byte, short, int | 0 |
| long | 0L |
| float | 0.0f |
| double | 0.0d |
| char | null character ('\u0000') |
| boolean | false |
| reference type data | null |
21. Scope of variable specifies the program-region where it is accessible.
22. The memory locations of constants store fixed values which cannot be changed in a program.
Illustration:
class studentTenB
{
String name;
int age;
int rollNo;
}The instance variable in this class is rollNo, as no two students in this class can have the same rollNo. But names and ages of two objects may be identical.24. The new operator is used to create new objects corresponding to a class.
25. The instanceof operator checks whether the first operand (an object) is an instance of the second operand (a class).
Format: <name of object> instanceof <name of a class>
| Function | Description | Example |
|---|---|---|
| PI | Returns the value (double) of \( \pi \) | 3.142... |
| log (x) | Returns the (double) value of log of x w.r.t. base e (natural log) | log (2) = 0.693... |
| abs (x) | Returns the absolute value of any numeric type data | abs (9.32) = 9.32 abs (-9.32) = 9.32 |
| max (x, y) | Returns the larger out of x & y | max (9, 13) = 13 |
| min (x, y) | Returns the smaller out of x & y | min (9, 13) = 9 |
| sqrt (x) | Returns the positive square root of x (double value) | sqrt (3) = 1.73205... |
| pow (x, y) | Returns the (double) value of \( x^y \) | pow (3, 4) = 81.0 |
| round (x) | Rounds up to the nearest integer | round (8.42) = 8 round (8.74) = 9 |
| floor (x) | Returns the integer which is less than or equal to x | floor (27.92) = 27.0 floor (5.07) = 5.0 |
| ceil (x) | Returns the smallest integer greater than or equal to x | ceil (2.25) = 3.0 ceil (2.79) = 3.0 |
27. When different types of variables and constants are mixed up in an expression, they are converted in one common type implicitly by the compiler. This is called Type Conversion.
28. When the operands are converted into the type of a higher order type, the process is implicitly undertaken by the compiler. This is known as Type promotion.
29. User-defined type conversion is known as Explicit Type Conversion or Type casting.
30. A class variable or static variable is a member of a class which remains as a single copy, which all objects have to share. No replica or copy of a static variable can be made for the objects.
31. Instance variable is a data member, a separate copy of which is made for each object of the class.
32. In the variable declaration of a class, the keyword static is used to indicate the class variables.
33. Precision is the extent of numerical accuracy of floating point and double type members. It refers to the number of accurate digits after the decimal point.
Questions with Answers
Question 1. What is the precision of (a) float (b) double type numbers?
Answer:
(a) 7 digits
(b) 15 digits
Question 2. What is the type of a number containing integral and fractional parts both?
Answer:
Floating point (float or double).
Question 3. What is the range of char data type?
Answer:
0 to 65535
Question 4. How is a character literal represented?
Answer:
A single letter or digit or symbol enclosed within single quotes, e.g. 'p' or '4' or '*'.
Question 5. What is the default initial value of (a) byte (b) double (c) reference data type?
Answer:
(a) 0
(b) 0.0d
(c) null
Question 6. What is the difference between x + 1 and ++x?
Answer:
Both give a value one more than x. But x + 1 does not change x, which retains its original value, while ++x increases the value of x itself by 1.
Question 7. Distinguish between the statements x = 5 and x == 5.
Answer:
x = 5 assigns the value 5 to x.
x == 5 only checks whether the existing current value of x is 5 or not. The return value is True or False. The value of x does not change.
Answer:
| Data type | Type in which it may be cast without loss of information |
|---|---|
| byte | short, int, long, float, double |
| short | int, long, float, double |
| char | int, long, float, double |
| int | long, float, double |
| long | float, double |
| float | double |
Answer:
The following rules are followed in strict order during type promotion:
| Rule | Condition | Both operands are converted to / result |
|---|---|---|
| I | One operand is double | double |
| II | One operand is float (and none is double) | float |
| III | One operand is long (and none is double or float) | long |
| IV | None of the first three rules holds | int |
Rule I: When one operand is double, the other is converted to double to produce a double.
Rule II: If one is type float, the other is converted into float to produce a float as resultant.
Rule III: If one is long, the other is converted to long and the resultant is also a long type.
Rule IV: If the first three rules do not hold, both operands are converted to int type data. The resultant type is also int.
Rules I, II, III, IV are in order of precedence.
Question 10. State three user defined type casting where there may be loss of data.
Answer:
(i) Bigger floating type to smaller floating type, e.g. double to float.
(ii) Floating type to integer type.
(iii) Bigger integer type to smaller integer type, e.g. long to short.
Question 11. If int x = 5, y = 2, what will be (i) x - y (ii) x/2?
Answer:
Since x and y are both int type,
(i) x - y will be 5 - 2 = 3 (int type)
(ii) x/2 = 5/2 = 2 (int type) and not 2.5
Question 12. If byte a = 100, b = 11, what will be a/b?
Answer:
Both operands are promoted to int, so a/b is an integer division.
100/11 is 9.09..., which is truncated to the integer 9.
byte bt; char ch; short st; int ival; long lval; float fl;identify the datatype of the following expression: ival * 7 - st/bt + ch + 2 * fl
Answer:
ival * 7 is int; st/bt is int (short and byte are promoted to int); the int difference plus ch is int; 2 * fl is float.
The final data type of the expression is float.
Question 14. Which two of the following will yield a value of 15:
(a) (i) round (14.79), (ii) floor (14.79), (iii) ceil (14.79)
(b) (i) round (15.31), (ii) floor (15.31), (iii) ceil (15.31)
Answer:
(a) (i) & (iii)
(b) (i) & (ii)
Question 15. Using an example, explain the term object.
Answer:
If student is a class, then a student whose name is Ron is an object. Every object is an instance of a class.
Answer:
These (also called Object variables) are those attributes which differentiate one object from other objects.
Example:
class Employee
{
String name;
int identityNo;
char sex;
}
Question 17. Name two types of Java Programs.
Answer:
Stand Alone Applications and Internet Applets.
Question 18. Differentiate between actual parameter and formal parameter.
Answer:
Parameters used in the function prototype (definition) are Formal parameters. Parameters used in the function call are Actual parameters.
Question 19. What does the following mean?
Employee staff = new Employee ( )
Answer:
Using the default constructor, an object of the class is being created. The object is named as staff.
Question 20. State the purpose of the new operator.
Answer:
An instance of a class is created by the new operator.
Question 21. State the difference between == operator and equals ( ) method.
Answer:
== is a relational operator which may be used for checking equality of any two primitive data types. Whereas to check the equality of string type data values may be ascertained by equals ( ) functions.
Question 22. Why is a class called a factory of objects?
Answer:
A class is a template or blueprint, using which any number of objects may be created.
Question 23. What is the use of the keyword this?
Answer:
This is a keyword which refers to the current object that invoked the function.
Question 24. Why is a class known as composite data type?
Answer:
One or more data types are encapsulated within a class so that it can be used as a single unit. This is why a class is known as a composite datatype.
Question 25. Name the keyword that
(i) is used for allocating memory to an array.
(ii) causes the control to transfer back to the method call.
Answer:
(i) new
(ii) return
class academic
{
int x, y;
void access ( )
{
int a, b;
academic student = new academic ( );
System.out.println ("Object created");
}
}(i) What is the object name of class academic?(ii) Name the class variables used in the program.
(iii) Write the local variables used in the program.
(iv) Give the type of function used and its name.
Answer:
(i) student
(ii) x and y
(iii) a and b
(iv) The function used is access ( ), which is void and impure.
Question 27. Distinguish between character literal and string literal.
Answer:
A character literal is a letter or digit or a distinctive symbol, enclosed with single quotes, e.g. 'c', '9', '?'.
A string literal is a sequence of characters enclosed within double quotes, e.g. "Java".
Question 28. What is the (a) range of values (b) number of bytes reserved for char data type?
Answer:
(a) 0 to 65535
(b) 2 bytes, i.e. 16 bits.
(i)
int a, b, c, d;
a = 5;
b = 6;
c = 7;
d = a + b++ + b / 7;
System.out.println ("the value of d =" + d);(ii)int k;
for (k = 0; k < 100; k++)
{
if (k == 10)
System.out.println (+k);
}(iii)class conditionalOp {
public static void main (String args[]) {
int x = -10, y = -22;
System.out.println ("x = " + x);
System.out.println ("y = " + y);
System.out.println ("minvalue = " + ((x < y) ? x : y));
}
}(iv)int m = 5;
while (m-- > 0)
System.out.print (m + " ");(v)int k;
for (k = 0; k < 6; k++)
{
System.out.println (k);
}(vi)int i;
for (i = 0; i < 12; i++)
{
if (i == 3)
break;
System.out.print (" " + (i++));
}Answer:
(i) d = 5 + 6 + (7 / 7) = 5 + 6 + 1 = 12. Output: the value of d =12
(ii) 10
(iii) x = -10
y = -22
minvalue = -22
(iv) 4 3 2 1 0
(v) 0
1
2
3
4
5
(vi) 0 2 4 6 8 10
ch = character.readChar ( ); //Takes in a letter
switch (ch)
{
case 'u': System.out.println ("It is u");
case 'v': System.out.println ("It is v");
case 'w': System.out.println ("It is w");
break;
case 'x': System.out.println ("It is x");
break;
default: System.out.println ("Not uvwx");
}Answer:
(i) It is u
It is v
It is w
(ii) It is v
It is w
(iii) It is w
(iv) It is x
(v) Not uvwx
int k = 1, i = 2;
while (++i < 6)
k *= i;
System.out.println (k);Answer:
The loop will run 3 times (for i = 3, 4, 5), so k = 1 * 3 * 4 * 5.
Output: 60
char x = 'A';
int M;
M = (x == 'a') ? 'A' : 'a';
System.out.println ("M" + M);Answer:
x == 'a' is false, so M gets the value of 'a', which is 97.
Output: M97
Free study material for Computer Application
Study Material and Revision Notes for Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation
Download Chapter Summary: Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation
Explore reliable chapter overviews for Chapter 02 Class as the Basis of All Computation tailored for Class 10 learners. Use these structured points to grasp difficult themes and ensure solid preparation for upcoming assessments.
Concept Clarification for Chapter 02 Class as the Basis of All Computation
Built using the official NCERT book for Class 10 Computer Applications, these notes provide reliable academic guidance. Pair your summary review with our recommended NCERT solutions to master optimal problem-solving approaches.
Additional Study Resources for Class 10 Computer Applications
Follow up your revision by attempting the interactive online Computer Applications MCQ test and practice worksheets for this chapter to verify your mastery. All platform resources are free to access.
FAQs
You can download the teacher prepared revision notes for ICSE Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation Notes and Important Questions with Answers from StudiesToday.com. These notes are designed as per 2026-27 academic session to help Class 10 students get the best study material for Computer Applications.
Yes, our ICSE Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation Notes and Important Questions with Answers include 50% competency-based questions with focus on core logic, keyword definitions, and the practical application of Computer Applications principles which is important for getting more marks in 2027 ICSE exams.
Yes, our ICSE Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation Notes and Important Questions with Answers provide a detailed, topic wise breakdown of the chapter. Fundamental definitions, complex numerical formulas and all topics of ICSE syllabus in Class 10 is covered.
These notes for Computer Applications are organized into bullet points and easy-to-read charts. By using ICSE Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation Notes and Important Questions with Answers, Class 10 students fast revise formulas, key definitions before the exams.
No, all study resources on StudiesToday, including ICSE Class 10 Computer Applications Chapter 02 Class as the Basis of All Computation Notes and Important Questions with Answers, are available for immediate free download. Class 10 Computer Applications study material is available in PDF and can be downloaded on mobile.