ICSE Previous Papers with Solutions for Class 10 Computer Applications 2015
ICSE Paper 2015
Answers to this Paper must be written on the paper provided separately.
You will not be allowed to write during the 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.
This paper is divided into two Sections.
Attempt all questions from Section A and any four questions from Section B.
The intended marks for questions or parts of questions are given in brackets [ ].
Section ‘A’ (40 Marks)
(Attempt all questions)
(a) What are the default values of the primitive data type int and float ? 
(b) Name any two OOP’s principles. 
(c) What are identifiers ? 
(d) Identify the literals listed below: 
(i) 0.5 (ii) ‘A’ (iii) false (iv) “a”
(e) Name the wrapper classes of char type and boolean type. 
(a) Default values of:
(b) Two OOP’s principles :
(i) Abstraction (ii) Inheritance.
(c) Identifiers: Identifiers are the symbolic names given to variables, objects, classes etc.
(d) (i) 0.5—double type literal. (ii) ‘A’—char type literal.
(iii) false—boolean type literal. (iv) “a”—string type literal.
(a) Evaluate the value of a. if value of p = 5, q = 19 
int n = (q – p) > (p – q) ? (q – p) : (p – q);
(b) Arrange the following primitive-data types in an ascending order of their size:
(i) char (ii) byte (iii) double (iv) int 
(c) What is the value stored in variable res given below :
double res = Math.pow (“345”.indexOf(‘5’), 3); 
(d) Name the two types of constructors 
(e) What are the values of a and b after the following function is executed, if the values passed are 30 and 50: 
void paws(int a, int b)
a=a + b;
b=a – b;
a=a – b;
System.out.println (a+ “,” +b);
(b) byte, char, int, double.
(c) res =8
(d) Two types of constructor :
(i) default constructor
(ii) parameterized constructor.
(e) The value of a will be 50 and
The value of b will be 30.
(a) State the data type and value of y after the following is executed:
(b) What is the function of catch block in exception handling ? Where does it appear in a program ? 
(c) State the output when the following program segment is executed:
String a =“Smartphone”, b=“Graphic Art”;
String h=a.substring(2, 5);
(d) The access specifier that gives the most accessibility is ………… and the least accessibility is ………… . 
(e) (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. 
(f) (i) What will this code print ?
int arr=new int;
(ii) value stored in arr
(iv) garbage value
(ii) Name the keyword which is used- to resolve the conflict between method parameter and instance variables/fields. 
(g) State the package that contains the class :
(ii) Scanner 
(h) Write the output of the following program code: 
char ch ;
System.out.print(ch + “ ” );
if(x%10 == 0)
(i) Write the Java expressions for 
(ii) If int y = 10 then find int z = (++y * (y++ +5)); 
(a) y = false.
data type of y is boolean.
(b) Catch block is used as exception handler in exception handling. We can put the code to deal with the execution that might arise, in this block. Catch block must appear just below the tiy block.
(d) The access specifier that gives the most accessibility is public and the least accessibility is private.
(e) (i) Math.sin() (ii) trim ()
(f) (i) garbage value. (ii) ‘this’ keyword.
(g) (i) java.io package. (ii) java.util package.
(h) output: a b c d
(i) R = a*a + b*b/2*a*b;
(j) z = (11 * (11 + 5))
= 11 * 16
SECTION B (60 Marks)
Attempt any four questions from this Section.
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 descriptions /Mnemonic Codes so that the logic of the program is clearly depicted.
Flow-Charts and Algorithms are not required.
Define a class named ParkingLot with the following description :
Instance variables/data members:
int vno — To store the vehicle number
int hours — To store the number of hours the vehicle is parked in the parking lot
double bill — Tb store the bill amount
void input( ) — To input and store the vno and hours.
void calculate( ) — To compute the parking charge at the rate of Rs.3 for the first hours or part thereof, and Rs. 1.50 for each additional hour or part thereof.
void display ( ) — To display the detail
Write a main method to create an object of the class and call the above methods. 
Write a program to input and store roll numbers, names and marks in 3 subjects of n number students in five single dimensional array and display the remark based on average marks as given below : (The maximum marks in the subject are 100) 
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.
Input value of s = “TECHNALAGY”
(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.
Input value of = “Cloud computing means Internet based computing”
Output: First index : 5
Last index : 36
(iii) void Joystring (String s1, String s2) with two string arguments that combines the two string with a space between them and prints the resultant string. Example :
Input value of s1 =“COMMON WEALTH”
Input value of s2 =“GAMES”
Output: COMMON WEALTH GAMES
(use library functions) 
Write a program to input twenty names in an array. Arrange these names in descending order of alphabets, using the bubble sort technique. 
Using the switch statement, write a menu driven program to:
(i) To find and display all the factors of a number input by the user (including 1 and excluding number itself).
Sample Input: n=15
Sample Output: 1, 3, 5.
(ii) To find and display the factorial of a number input by the user (the factorial of a non-negative integer n, denoted by n\ is the product of all integers less than or equal to n.
Sample Input: n=5
Sample Output: 5! = 1×2×3×4×5 = 120.
For an incorrect choice, an appropriate error message should be displayed. 
For More Resources