Students can refer to the following Sample Paper ICSE Class 10 Computer Applications set A with Answers provided below based on the latest syllabus and examination guidelines issued for ICSE Computer Applications. All specimen papers have been prepared covering all chapters given in ICSE Computer Applications book for Class 10. You should also refer to ICSE Class 10 Computer Applications Solutions.
Sample Paper ICSE Class 10 Computer Applications set A with Answers
Subject: Computer Applications
Time: 2 Hrs. Marks: 100
Instructions:
1.You must write your full Name, Standard, Section, Date, Subject and page number on every answer sheets.
2.Answers must be written on separate answer sheets. Send your Answer Sheets in PDF to either:
Section A (40 Marks)
(Attempt all the questions from this section)
Question: 1 [10]
(a) Differentiate object and class
(b) Give one point of difference between unary and binary operators with example.
(c) Difference between call by value and call by reference.
(d) Differentiate between public and private modifiers for members of a class.
(e) Write a Java expression for
Question: 2 [10]
(a) Create a class with one integer instance variable. Initialize the variable using:
(i) default constructor.
(ii) parameterized constructor.
(b) What is the use of the keyword return?
(c) Write a function prototype of the following:
A function PosChar which takes a string argument and a character argument and returns an integer value.
(d) Name the wrapper class of char type and boolean type
(e) Arrange the following primitive data types in an ascending order of their size :
(i)char
(ii)byte
(iii)double
(iv)int
Question: 3 [10]
(a) The access specifier that gives most accessibility is _ and the least accessibility is _ (b) What will be the result stored in x after evaluating the following expression?
int x = 4; x+=(x++)+(++x)+x;
(c) What are the values of x and y when the following statements are executed?
int a =63, b=36;
boolean x=(a>b)?true:false;
int y=(a<b)?a:b;
(d) Give the output of the following program segment:
double x = -2.9, y= -2.5;
System.out.println(Math.min(Math.floor(x),y));
System.out.println(Math.max(Math.ceil(x),y));
(e) State the datatype and values of a and b after the following segment is executed.
String s1 = “Computer”, s2 = “Applications”;
_ a=(s1.compareTo(s2)); _ b=(s1.equals(s2));
Question: 4 [10]
(a) Give the output of the following string functions:
String a = “Smartphone”, b = “Graphic Art”;
String h = a.substring(2, 5);
String k = b.substring(8).toUpperCase();
System.out.println(h);
System.out.println(k.equalsIgnoreCase(h));
(b) How many times will the following loop executes? What value will be returned?
int x = 2 , y = 50;
do
{
++x;
y – =x++;
}
while(x<=10);
return y;
(c) (i) Name the mathematical function which is used to find sine of an angle given in radians.
(ii) Name a string function which removes the blank spaces provided in the prefix and suffix of a string
(d) Rewrite the following program segment using the if…else statement comm = (sale>15000)?sale*5/100:0;
(e) Name the Java keyword that:
(i) indicated that a method has no return type.
(ii) stores the address of currently-calling object.
Section B (60 Marks)
(Attempt any four questions from this section)
Question: 5 [15]
Given below is a hypothetical table showing rates of Income Tax for male citizens below the age of 65 years:
WAP to input the age, gender (male or female) and Taxable Income of a person. If the age is more than 65 years or the gender is female, display “wrong category”. If the age is less than or equal to 65 years and the gender is male, compute and display the Income Tax payable as per the table given above.
Question: 6
Define a class employee having the following description:
Data Members/Instance variables:
int pan – to store personal account number
String name – to store name
Double incometax – to store annual taxable income
double tax – to store tax that is calculated
Member Functions/Methods:
input() – Store the pan number, name, taxableincome
calc() – Calculate tax for an employee
display() – Output details of an employee
Write a program to compute the tax according to the conditions and display the output as per given format.
Question: 7 [15]
Write a menu driven program to perform the following (Using switch-case statement). For an incorrect choice an appropriate error message should be displayed
(i) To check the entered number is a prime number OR not.
Prime number: A number is said to be prime number if it is divisible only by 1 and itself and not by any other number.(ii) To find the Sum(S)= 1/a2 + 4/a5 + 7/a8 + 10/a11……. to n terms
(iii) To generate the following pattern
Question: 8 [15]
Design a class to overload a function Joystring () as follows:
(i) void Joystring(String s, char ch1, char ch2) with one string argument and two character arguments that replaces the character argument ch1 with the character argument ch2 in the given String s and prints the new string.
Example:
Input value of s = “TECHNALAGY”
ch1 = „A‟
ch2 = „O‟
Output: ” TECHNOLOGY
(ii) void Joystring(String s) with one string argument that prints the position of the first space and the last space of the given String s.
Example:
Input Value of s1 = “COMMON WEALTH”
Input value of s2 = “GAMES”
Output: COMMON WEALTH GAMES
(Use Library Functions)
Question: 9 [15]
Write a program to input a sentence and print the number of characters found in the smallest word of the given sentence.
For Example: if S = “Spicer is one of the best school in Pune” then the output should be 2.
Question: 10 [15]
A special two-digit number is such that when the sum of its digits is added to the product of its digits, the result is equal to the original two-digit number.
Example: Consider the number 59.
Sum of digits = 5 + 9 = 14
Product of its digits = 5 x 9 = 45
Sum of the sum of digits and product of digits= 14 + 45 = 59
Write a program to accept a two-digit number. Add the sum of its digits to the product of its digits. If the value is equal to the number input, output the message “Special 2-digit number” otherwise, output the message “Not a Special 2-digit number”.