ICSE-CLASS-X-BOARD SERIES
Computer-applications

Object Oriented Programming

5 previous year questions.

Volume: 5 Ques
Yield: Medium

High-Yield Trend

5
2026

Chapter Questions
5 MCQs

01
PYQ 2026
medium
computer-applications ID: icse-cla

Define a class named StepTracker with the following specifications:

Member Variables:

  • String name — stores the user's name.
  • int sw — stores the total number of steps walked ( ).
  • double cb — stores the estimated calories burned ( ).
  • double km — stores the estimated distance walked in kilometers ( ).

Member Methods:

1. void accept()
To input the name and the sw (steps walked) using Scanner class methods only.

2. void calculate()
Calculates calories burned ( ) and distance in ( ) based on steps walked ( ) using the provided estimation logic.

02
PYQ 2026
medium
computer-applications ID: icse-cla
In constructor overloading all constructors should have the same class but with a different set of ________.
1
Access specifiers
2
Classes
3
Return type
4
Parameters
03
PYQ 2026
medium
computer-applications ID: icse-cla
In the following method prototype to accept a character, an integer and return YES or NO, fill in the blank to complete the method prototype.
1
boolean
2
String
3
int
4
double
04
PYQ 2026
medium
computer-applications ID: icse-cla
In a calculator which Java feature allows multiple methods named calculate() for the different operations?
1
abstraction
2
inheritance
3
encapsulation
4
polymorphism
05
PYQ 2026
medium
computer-applications ID: icse-cla
Consider the following statements: Name the objects of the class given above:
1
Desktop, Mainframe
2
desktop, Mainframe
3
Computer, Mainframe
4
Computer, desktop