ICSE Computer Application 2016 Guess Papers


(Two Hours)

Answer 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 is the time allowed for writing the answer.
———— ——– ——- ———– ————-
This paper is divided into two Sections. Answer all Questions from Section A and any four questions from Section B. The intended marks for questions or parts of questions are given in [].
——– —– ——— ——— ———- ———-
SECTION A(40 Marks)
Attempt all questions.

Question 1.                            [10]
a)    Name any two library packages.
b)    State two main features of an Object Oriented Programming language.
c)    What is meant by a user defined data type?
d)    Show the use of logical operator && with an example.
e)    Explain the term – “pass by reference”.

Question 2.                                    [10]
a)    Give an example of Syntax error.
b)    How is I/O Exception helpful in handling I/O errors?
c)    Differentiate between indexOf() and valueOf() methods.
d)    What is the scope of the keyword protected in accessing methods?
e)    Find the output of z:
int y = 14;
int z = ++y * (y– + –y);

Question 3.
a)    Using an example, show how the switch statement works.                               [2]
b)    Write an expression for the following:    [2]
f = —— – d
c)    Pick out the errors and correct them in the given code fragment:                        [2]
class PickCode
{   private char ch;
private boolean n;
{   ch= ‘C’;
n == true;
d)    What are input and output streams?           [2]
e)    How is String implemented?                [2]
f)    Write the output for the following statements:[2]
String strl =”Java is Fun”;
String str2 = “amytime”;
g)    Rewrite the program segment using multiple if-construct.                              [2]
if(n%2==0 && n>35 && n<67) {
rem=n%10;   }
h)    Create an object for a class Park.        [2]
i)    What is a parameterized constructor?        [2]
j)    What is the use of static in the main method? [2]

SECTION-B (60 Marks)
Attempt any four questions from this Section. The answers in this Section should consist of the Program in BlueJ environment with Java. Each program should be written in using Variable descriptions/Mnemonic so that the logic of the program is clearly depicted. Flow charts and Algorithms are not required.

Question 4.
Define a class Book Store having the following specifications:
Data Member: Name of the book, author, publication and cost.
Member Methods:
(i) To accept the book details
(ii) To calculate the discount of 13.5% given on all books.
(iii) To display the book details.
Using a main method and an object. call the above methods

Question 5.
Write a program in Java to accept a string and display the new string after removing all the vowels from the string.
Sample Input: Computer Applications with BlueJ
Sample Output: Cmptr pplctns wth BlJ

Question 6.
Write a program to overload a function compute() as follows. Need not
void compute(int m, int g, int h) with three integer arguments to compute Potential Energy using the formula PE=m.g.h
void compute(int m, int v) with two integer arguments to compute Kinetic Energy using the formula KE = ½ m.v2
void compute(double u, double t, double a) with three double type arguments to calculate the distance covered by the body using the formula S = ut + ½ at2

Question 7.
Write a program to store the names of any 10 elements of the Periodic Table in a string type array along with their atomic number in an Integer array. Sort the element in Ascending order of their atomic number using Exchange Selection Sort Technique and display the names of elements along with their atomic number side by side after sorting.

Question 8.
Write a menu driven class to accept a number and check whether it is
a)    Palprime number – [a number is a palindrome and a prime number Eg. 101]
b)    Armstrong number – [Sum of the cubes of the digits = number Eg. 153]

Question 9.
Write a program to find the sum of the given series.

x – x2/2! + x3/3! – x4/4! + x5/5! – x6/6!

Leave a Comment