PreBoard_24_25
PreBoard_24_25
PreBoard_24_25
PETER’S SCHOOL
Affiliated to CISE, New Delhi-Code: WB401
B.T. Sarkar Road, Purulia-723101
Multiple Choice Question (MCQ) Examination-2024-25
Class: X
COMPUTER APPLICATIONS
Maximum Marks:20
Time allowed:
Question 1 [20]
Choose the correct answer to the questions from the given options. (Tick ( ) the correct answer)
1. Name the feature of OOP depicted in the below picture.
Question 3 [15]
1. The basic salary of employees is undergoing a revision. Define a class called Grade_Revision
with the following specifications:
Data Members Purpose
String name to store name of the employee
int bas to store basic salary
int expn to consider the length of service as an experience
double inc to store increment
double nbas to store new basic salary (basic + increment)
Member Methods Purpose
Grade_Revision() constructor to initialize all data members
void accept() to input name, basic and experience
void increment() to calculate increment based on experience as per the table given below
void display() to print all the details of an employee
Experience Increment
Up to 3 years ₹1,000 + 10% of basic
3 years or more and up to 5 years ₹3,000 + 12% of basic
5 years or more and up to 10 ₹5,000 + 15% of basic
years
10 years or more ₹8,000 + 20% of basic
Write the main method to create an object of the class and call all the member methods.
2. Define a class to accept values into a 3x3 array and check if it is a Losho grid or not.
A grid is a Losho grid if the sum of each row and column equals 15.
Print appropriate messages.
Example: 4 9 2
357
816
3. Write a program to assign a full path and file name as given below. Using library functions,
extract and output the file path, file name and file extension separately as shown.
Input C:\Users\admin\Pictures\flower.jpg
Output Path: C:\Users\admin\Pictures\
File name: flower
Extension: jpg
4. (a) Define a class to print the Floyds triangle of given rows using nested loops only.
Example:
A Floyd triangle of 6 rows is
1
23
456
7 8 9 10
11 12 13 14 15
16 17 18 19 20 21
(b) Define a class to print the sum of the following series:
1+(1+2)+(1+2+3)+..........(1+2+3……20)
5. Write a program to input the number of students present in a class. Create a single
dimension array and input the names of the students into the array. Enter a name and check
whether the student is present in the class or not, using linear search.
6. Define a class to overload the method perform () as follows:-
(i) void perform () – display the following pattern
1
34
567
78910
(ii) boolean perform (int n) – to check whether the input number is abundant number or not.
An Abundant number is a number for which the sum of its proper factors is greater than
the number itself.
Example:
Consider the number 12.
Factors of 12 = 1, 2, 3, 4, 6 Sum of factors = 1 + 2 + 3 + 4 + 6 = 16
As 16 > 12 so 12 is an Abundant number.