Computer Application Specimen Paper 2023 Sec-B Solved ICSE Class 10. Step by step solutions as council latest prescribe guideline of Model / Sample Question Paper. During solutions of Computer Application Specimen Paper 2023 Sec-B we explain with labelled Figure , Graph, Table, Chart whenever necessary so that student can achieve their goal in next upcoming exam of council. Visit official website CISCE for detail information about ICSE Board Class-10.
Computer Application Specimen Paper 2023 Sec-B Solved ICSE Class 10
Board | ICSE |
Class | 10th (x) |
Subject | Computer Application |
Topic | Specimen Paper Solved |
Syllabus | Revised Syllabus |
Session | 2022-23 |
Sec-B | Descriptive Type |
.Warning :- Before viewing solution view Question Paper. Also visit that How CISCE Change Same Question in Different Pattern which feel a new one question while it was previous year question . Therefore a Question arise into the mind of student if CISCE Ask Repeated Question in Board Exam..?.
COMPUTER APPLICATION SPECIMEN QUESTION PAPER
SEC-B ICSE 2023 EXAMINATION
- Time allowed: Two hours
- Answers to this Paper must be written on the paper provided separately.
- You will not be allowed to write during first 15 minutes.
- This time is to be spent in reading the question paper.
- The time given at the head of this Paper is the time allowed for writing the answers.
- Section A is compulsory. Attempt any four questions from Section B.
- The intended marks for questions or parts of questions are given in brackets [ ].
SECTION B
(Answer any four questions from this section)
Solution of ICSE Class-10 Computer Application Specimen Paper 2023 Sec-B
- The answers in this section should consist of the programs in either Blue J environment or any program environment with Java as the base.
- Each program should be written using variable description/mnemonic codes so that the logic of the program is clearly depicted.
- Flowcharts and algorithms are not required.
Question 3: Define a class with the following specifications:
Class name: Employee
Member variables:
eno – employee number
ename – name of the employee
age – age of the employee
basic – basic salary
net – net salary
(Declare the variables using appropriate data types)
Member methods:
void accept() – accept the details using Scanner class
void calculate() – to calculate the net salary as per the given specifications:
net = basic + hra + da – pf
hra = 18.5% of basic
da = 17.45% of basic
pf = 8.10% of basic
If the age of the employee is above 50, he/she gets an additional allowance of Rs. 5000.
void print() – to print the details as per the following format:
eno ename age basic net
void main() – to create an object of the class and invoke the methods.
Answer:
import java.util.Scanner;
class Employee{
int eno;
String ename;
int age;
double basic;
double net;
public void accept(){
Scanner in = new Scanner(System.in);
System.out.print(“Employee number: “);
eno = Integer.parseInt(in.nextLine());
System.out.print(“Employee name: “);
ename = in.nextLine();
System.out.print(“Age: “);
age = Integer.parseInt(in.nextLine());
System.out.print(“Basic salary: “);
basic = Double.parseDouble(in.nextLine());
}
public void calculate(){
double hra = 0.185 * basic;
double da = 0.1745 * basic;
double pf = 0.0810 * basic;
net = basic + hra + da – pf;
if(age > 50)
net += 5000;
}
public void print(){
System.out.println(“eno\tename\tage\tbasic\tnet”);
System.out.println(eno + “\t” + ename + “\t” + age + “\t” + basic + “\t” + net);
}
public static void main(String[] args){
Employee obj = new Employee();
obj.accept();
obj.calculate();
obj.print();
}
}
Question 4: Define a class to overload the method print as follows:
void print() – to print the format:
1
2 3
4 5 6
7 8 9 10
boolean print(int n) – to check whether the number is a Dudeney number. A number is dudeney if the cube of the sum of the digits is equal to the number itself.
Example: 512
(5 + 1 + 2)3 = 83 = 512.
void print(int a, char ch) – If ch = ‘s’ or ‘S’ print the square of the number else if ch = ‘c’ or ‘C’ print the cube of the number.
Answer:
class Overload{
public void print(){
int v = 1;
for(int i = 1; i <= 4; i++){
for(int j = 1; j <= i; j++)
System.out.print(v++ + ” “);
System.out.println();
}
}
public boolean print(int n){
int sum = 0;
for(int i = n; i != 0; i /= 10)
sum += i % 10;
int cube = (int)Math.pow(sum, 3);
if(n == cube)
return true;
return false;
}
public void print(int a, char ch){
if(ch == ‘S’ || ch == ‘s’)
System.out.println(“Square = ” + (a * a));
else if(ch == ‘C’ || ch == ‘c’)
System.out.println(“Cube = ” + (a * a * a));
}
}
Question 5: Define a class to accept 10 integers and arrange them in descending order using bubble sort. Print the original array and the sorted array.
Answer:
import java.util.Scanner;
class Bubble{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int a[] = new int[10];
System.out.println(“Enter 10 integers:”);
for(int i = 0; i < a.length; i++)
a[i] = Integer.parseInt(in.nextLine());
System.out.println(“Original array:”);
for(int i = 0; i < a.length; i++)
System.out.print(a[i] + ” “);
System.out.println();
for(int i = 0; i < a.length; i++){
for(int j = 0; j < a.length – 1 – i; j++){
if(a[j] < a[j + 1]){
int temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
}
}
}
System.out.println();
System.out.println(“Sorted array:”);
for(int i = 0; i < a.length; i++)
System.out.print(a[i] + ” “);
System.out.println();
}
}
Question 6: Define a class to accept values into a double data type array of size 20 and print the range of the array. Range is the difference between the largest and the smallest elements of the array.
Answer:
import java.util.Scanner;
class Range{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
double a[] = new double[20];
double large = 0.0;
double small = 0.0;
System.out.println(“Enter 20 numbers:”);
for(int i = 0; i < a.length; i++){
a[i] = Double.parseDouble(in.nextLine());
if(i == 0){
large = a[i];
small = a[i];
}
else{
if(large < a[i])
large = a[i];
if(small > a[i])
small = a[i];
}
}
double range = large – small;
System.out.println(“Range = ” + range);
}
}
Question 7: Define a class to accept a string and print the same in reverse. Also print the number of vowels in the string.
Example:
Input:
s = “BEAUTIFUL”
Output:
“LUFITUAEB”
No. of vowels = 5
Answer:
import java.util.Scanner;
class Reverse{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.print(“Enter the string:”);
String s = in.nextLine();
int v = 0;
String r = “”;
for(int i = s.length() – 1; i >= 0; i–){
char ch = s.charAt(i);
r += ch;
if(“AEIOUaeiou”.indexOf(ch) >= 0)
v++;
}
System.out.println(r);
System.out.println(“No. of vowels = ” + v);
}
}
Question 8: Define a class to accept the names of 10 students in an array and check for the existence of the given name in the array using linear search. If found, print the position of the name. If not found, print an appropriate message. Also print the names which begins with the word “SRI”.
Answer:
class Search{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
String a[] = new String[10];
int count = 0;
int pos = 0;
System.out.println(“Enter 10 names:”);
for(int i = 0; i < a.length; i++)
a[i] = in.nextLine();
System.out.print(“Enter name to be searched: “);
String key = in.nextLine();
boolean found = false;
int i = 0;
for(; i < a.length; i++){
if(key.equalsIgnoreCase(a[i]) && !found){
found = true;
pos = i;
}
if(a[i].startsWith(“SRI”))
count++;
}
if(found)
System.out.println(“Found at position: ” + (pos + 1));
else
System.out.println(“Not found!”);
System.out.println(“No. of names beginning with SRI = ” + count);
}
}
Return to : ICSE Specimen Paper 2023 Solved
–: visit also :–
ICSE Class-10 Textbook Solutions Syllabus Solved Paper Notes
Physics Formula ICSE 10 Class Standard Chapter-Wise
Thanks
You are using Scanner class for input, then Parsing like buffer? Do necessary correction