ICSE Class 10 Computer Applications by Pavan | Practice Test to Test Your Knowledge
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

ICSE Class 10 Computer Applications

ICSE Class 10 Computer Applications

Comprehensive mock test on Programming concepts, Web Development, and Database Management. Features coding problems and theoretical questions.

2025-07-19
ICSE Class 10 Grade 10 Computer Application

Duration

30 min

Questions

30

Marking

Negative

You've not yet enrolled in this practice test. Please login to start practice test.

Questions Preview

What is the basic difference between a class and an object in object-oriented programming?

A
A class is an instance, and an object is a blueprint
B
A class defines the properties and behaviors, while an object is an instance of the class
C
A class defines the data, while an object defines the behavior
D
A class and an object are the same

Which of the following defines the state of an object in object-oriented programming?

A
The methods and functions of the object
B
The attributes or variables of the object
C
The behavior of the object
D
The name of the object

What is the behavior of an object defined by in object-oriented programming?

A
Attributes or member variables
B
Functions or methods
C
Objects
D
Instance variables

Which of the following is a correct example of an object in real life?

A
A car class
B
A car instance
C
The method to start the car
D
The features of the car

In object-oriented programming, what is the purpose of a class?

A
To define a blueprint for creating objects
B
To store data only
C
To manage data and perform calculations
D
To store the state of an object

Which of the following is an example of an instance variable?

A
The method to calculate the area of a rectangle
B
The width and height of a rectangle
C
The class definition of a rectangle
D
The constructor of a rectangle

What does encapsulation mean in object-oriented programming?

A
The combination of attributes and methods within a class
B
The ability to inherit properties from other classes
C
The process of hiding the internal workings of an object
D
The process of defining a class

What is an example of a composite data type?

A
Integer
B
String
C
Array
D
Float

Which of the following is a primitive data type?

A
Array
B
Class
C
Integer
D
Object

What is the difference between primitive and composite data types?

A
Primitive data types are predefined and composite data types are user-defined
B
Primitive data types are used in calculations while composite data types store large data
C
Primitive data types are smaller in size, while composite data types are larger
D
Primitive data types are more complex, while composite data types are simpler

Which of the following is the correct declaration of an integer variable in Java?

A
int num = 5;
B
integer num = 5;
C
num = 5;
D
float num = 5;

What is the term used for an object that is an instance of a class?

A
Object factory
B
Class member
C
Instance
D
Object method

Which of the following is NOT a characteristic of a class?

A
A class is a blueprint for creating objects
B
A class defines the properties and behavior of an object
C
A class defines the specific values for an object
D
A class can be used to create multiple objects

What does an object factory refer to in object-oriented programming?

A
A place where objects are stored
B
A class that can create objects
C
A function that manipulates objects
D
A method that destroys objects

Which of the following is an example of a composite data type?

A
Integer
B
String
C
Boolean
D
Character

What is the key difference between an integer and a string in programming?

A
An integer is used for numeric calculations, while a string is used to store text
B
An integer stores text, while a string stores numbers
C
An integer stores decimal numbers, while a string stores whole numbers
D
An integer is a composite data type, while a string is a primitive data type

Which of the following can be considered as an example of an object in object-oriented programming?

A
A class that defines the properties of an object
B
An object that is an instance of a class
C
A method that defines the behavior of an object
D
A variable that stores data

Which of the following statements about an object is true?

A
An object is created from a class and has its own identity
B
An object is only a template and cannot have its own identity
C
An object defines only the behavior, not the state
D
An object is not tied to any specific class

Which of the following best describes the concept of 'abstraction' in object-oriented programming?

A
Hiding the complexity of the system by providing a simple interface
B
Defining multiple methods with the same name but different parameters
C
Using only one object for all operations
D
Representing objects as numbers

What do you mean by 'constructor' in object-oriented programming?

A
A method that creates an object of a class
B
A method that deletes an object
C
A method that initializes an object when it is created
D
A method that defines the attributes of an object

What is the role of an 'access modifier' in a class?

A
It defines the visibility of the class and its members
B
It defines the data types of the variables
C
It defines the behavior of the class
D
It defines the methods of the class

Which of the following is a correct example of declaring an object in Java?

A
Rectangle rect = new Rectangle();
B
Rectangle = new rect();
C
Rectangle rect = new Rectangle;
D
rect = new Rectangle();

Which of the following describes a method in object-oriented programming?

A
A function that defines the behavior of a class
B
A function that defines the state of an object
C
A variable that stores data
D
A constructor for creating an object

Which of the following is a valid method signature in Java?

A
public void calculateArea()
B
int calculateArea()
C
calculateArea()
D
void calculateArea

What is the purpose of using the 'this' keyword in object-oriented programming?

A
To refer to the current object instance
B
To create a new object
C
To call a superclass method
D
To access private members of a class

What is the output of the following Java code? class Car { String model; void display() { System.out.println(model); } } Car c = new Car(); c.model = 'Sedan'; c.display();

A
Error in code
B
Sedan
C
null
D
undefined

What is the term used when an object is created based on a class?

A
Instantiation
B
Declaration
C
Inheritance
D
Encapsulation

Which of the following is an example of a real-life class and object?

A
A blueprint of a house and a house built using it
B
A recipe and the cooked dish
C
A bank account and the transactions made
D
All of the above

What does inheritance mean in object-oriented programming?

A
Creating a new class based on an existing class
B
Hiding the internal details of a class
C
Combining multiple methods into one
D
Changing the behavior of a class

What does polymorphism mean in object-oriented programming?

A
The ability of a class to have multiple constructors
B
The ability to process different data types in the same way
C
The ability to create multiple classes from a single class
D
The ability to combine data types