# Icse 2013 Sample Papers Solved Assignment

COMPUTER APPLICATIONS ICSE – 2013
(Theory)
(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 on the head of this paper is the time allowed for writing the answer.
This Paper is divided into Sections.
Attempt all questions from Section A and any four from Section B.
The intended marks for questions or parts of questions are given in brackets [ ]

## SECTION A (40 MARKS)

Attempt all questions

## Question 1

1. Marks [2]

What is meant by precedence of operators?
Ans. Precedence of operators defines the order in which the operators within an expression are executed. The order of evaluation can be modified with the help of parenthesis ( and ). For example, in the expression x = a + b * c the RHS evaluates using a + (b * c) since the * operator has a higher precedence as compared to the + operator. As another example, in the equaion x = a+b > c ? a : b, the + operator has higher precedence over the ternary operator ?: and hence the RHS evaluates to (a+b) > c ? a : b.

2. Marks [2]

What is a literal?
Ans. A literal is a notation for representing a fixed value in source code. It is a value that is directly represented in code.
For example, in the expression
int x = 4;
The 4 is a literal.

3. Marks [2]

State the Java concept that is implemented through:

1. A superclass and a subclass
2. The act of representing essential features without including background details

Ans.

1. Inheritance
2. Abstraction
4. Marks [2]

Give a difference between constructor and a method.
Ans. A constructor has the same name as the class; the name of the method is not the same as that of the class.
A constructor does not have a return type; every method must specify a return type, and if none exists, the type void must be specified.
The calls super( ) and this( ) can be used inside a constructor, but not inside a method.

5. Marks [2]

What are the types of casting shown by the following examples?

1. double x = 15.2;
int y = (int)x;
2. int x = 12;
long y = x;

Ans.

1. Explicit typecast
2. Implicit typecast

## Question 2

1. Marks [2]

Name any two wrapper classes.
Ans. Integer, Double

2. Marks [2]

What is the difference between break and continue statements when they occur in a loop?
Ans. The break statement stops the execution of the current loop iteration and transfers control to the statement outside the loop. The continue statement stops the execution of the current loop iteration and transfers control to the end of the loop body, for the next iteration to proceed.

3. Marks [2]

Write statements to show how finding the length of a character array named ch differs from finding the length of a String object str.
Ans. Length of a character array: ch.length
Length of a String array: str.length()
Example statements:
System.out.println(“Char array: ” + ch.length);
System.out.println(“String array: ” + str.length());

4. Marks [2]

Name the Java keyword that:

1. Indicates a method has no return type
2. Stores the address of the currently calling object

Ans.

1. void
2. this [The ‘this’ keyword is actually a reference to the current object, and hence it contains the address of where that object is stored. Hence the answer to this question is ‘this’.]
5. Marks [2]

What is an exception?
Ans. An exception is the occurrence of something that should not normally happen. A Java method will throw an exception if it encounters a situation which it cannot handle. When an exception occurs, an object is created that contains details of the problem (exception). This object is created automatically by Java.
Some exceptions, like a divide by zero, can be avoided through careful programming.
Other exceptions, such as hard disk full, or network connection lost, cannot be avoided and nor can they be predicted.
Dealing with exceptions is known as handling the exception.
There are two types of exceptions: checked exceptions and unchecked exceptions.
Unchecked exceptions are those that do not have to be addressed (handled) by the Java program. This includes division by zero, array index out of bounds, etc. Unchecked exceptions are normally the result of bad programming (programmer bugs).
Checked exceptions are those that must be handled by the Java program. These include hard disk is full, file not found, unable to connect to database, and so on.

## Question 3

1. Marks [2]

Write Java statement to create an object mp4 of class digital.
Ans. digital mp4 = new digital( );

2. Marks [2]

State the values stored in variables str1 and str2
String s1 = “good”; String s2 = “world matters”;
String str1 = s2.substring(5).replace(‘t’,’n’);
String str2 = s1.concat(str1);
Ans. str1 = “ manners”(this is a space followed by manners)
str2 = “good manners”

3. Marks [2]

What does a class encapsulate?
Ans. A class encapsulates the implementation details of that class. This includes the methods and the variables that are needed for the functionality of that class. Only the functionality that needs to be exposed is exposed. The functionality that is not exposed is normally “private” to that class. Private variables can be exposed using getter (accessor) and setter (mutator) methods.

4. Marks [2]

Rewrite the following program segment using the if .. else statement.
comm = (sale>15000)?sale*5/100:0;
Ans.

if(sale &gt; 15000) comm = sale * 5 / 100; else comm = 0;
5. Marks [2]

How many times will the following loop execute? What value will be returned?

int x = 2, y = 50; do{ ++x; y -= x++; }while(x &lt;= 10); return y;

Ans. The loop will execute 5 times. The value returned will be 15.
Explanation: x increased by 2 in each iteration. It starts with 2, then 4, 6, 8, 10. So, totally it executes 5 times. The amount by which y reduces each iteration is 3, 5, 7, 9, 11; hence the value of y returned is 50 – 3 – 5 – 7 – 9 – 11 = 15.

6. Marks [2]

What is the data type that the following library functions return?

1. isWhitespace(char ch)
2. Math.random( )

Ans.

1. boolean
2. double
7. Marks [2]

Write a Java expression for ut + ½ ft2
Ans. u*t + 1.0 / 2.0 * f * t * t
Note: u*t + 1/2*f*t*t cannot be used, since 1/2 will give an integer of 0. Hence we use 1.0 / 2.0 instead.
Or
We can change the expression into u*t + (double)(1/2) * f * t * t

8. Marks [2]

if int[ ] n = {1, 2, 3, 5, 7, 9, 13, 16} what are the values of x and y?
x = Math.pow(n[4],n[2]);
y = Math.sqrt(n[5]+n[7]);
Ans. x is 343.0 and y is 5.0

9. Marks [2]

What is the final value of ctr after the iteration process given below, executes?

int ctr = 0; for(int i = 1; i &lt;=5 ; i++) for(int j = 1; j &lt;= 5; j+=2) ++ctr;

Ans. 15
Explanation: The inner loop executes 3 times for each of the 5 iterations of the outer loop.

Ans. x is 343.0 and y is 5.0

Name the methods of the Scanner class that:

1. Is used to input an integer from standard input stream
2. Is used to input a string data from standard input stream

Ans.

1. nextInt( )
2. next( ) and nextLine( )

## 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 description/Mnemonic Codes
so that the logic of the program is clearly depicted.
Flow-Charts and Algorithms are not required.

## Question 4

Marks [15]

Define a class called FruitJuice with the following description:
Instance variables/data members:
int product_code – stores the product code number
String flavour – stores the flavor of the juice. (orangle, apple, etc.)
String pack_type – stores the type of packaging (tetra-pack, bottle, etc.)
int pack_size – stores package size (200ml, 400ml, etc.)
int product_price – stores the price of the product
Member methods:
FruitJuice( ) – default constructor to initialize integer data members to zero and string data members to “”
void input( ) – to input and store the product code, flavor, pack type, pack size and product price
void discount( ) – to reduce the product price by 10
void display( ) – to display the product code, flavor, pack type, pack size and product price
Ans.

## Question 5

Marks [15]

The International Standard Book Number (ISBN) is a unique numeric book identifier which is printed on every book. The ISBN is based upon a 10-digit code. The ISBN is legal if 1*digit1 + 2*digit2 + 3*digit3 + 4*digit4 + 5*digit5 + 6*digit6 + 7*digit7 + 8*digit8 + 9*digit9 + 10*digit10 is divisible by 11.
Example: For an ISBN 1401601499
Sum =1*1 + 2*4 + 3*0 + 4*1 + 5*6 + 6*0 + 7*1 + 8*4 + 9*9 + 10*9 = 253 which is divisible by 11.
Write a program to:

1. Input the ISBN code as a 10-digit number
2. If the ISBN is not a 10-digit number, output the message “Illegal ISBN” and terminate the program
3. If the number is 10-digit, extract the digits of the number and compute the sum as explained above.

If the sum is divisible by 11, output the message “Legal ISBN”. If the sum is not divisible by 11, output the message “Illegal ISBN”.
Ans.

import java.io.*; class ISBN { public static void main(String[] args)throws IOException { InputStreamReader read = new InputStreamReader(System.in) ; BufferedReader input = new BufferedReader(read) ; System.out.print(&quot; Enter the 10-digit ISBN number: &quot;); long isbn = Long.parseLong(input.readLine( )); String temp = &quot;&quot; + isbn; if( temp.length() != 10 ) { System.out.println(&quot; Illegal ISBN&quot;); return; } int sum = 0; int digit; int digitNo; int term; for(int i = 0; i &lt; temp.length( ); i++) { digit = Integer.parseInt(temp.substring(i, i+1)); digitNo = i + 1; term = digitNo * digit; sum += term; } if( (sum%11) != 0 ) { System.out.println(&quot; Illegal ISBN&quot;); } else { System.out.println(&quot; Legal ISBN&quot;); } } }

## Question 6

Marks [15]

Write a program that encodes a word in Piglatin. To translate word into Piglatin word, convert the word into uppercase and then place the first vowel of the original word as the start of the new word along with the remaining alphabets. The alphabets present before the vowel being shifted towards the end followed by “AY”.
Sample Input(1): London Sample Output(1): ONDONLAY
Sample Input(2): Olympics Sample Output(2): OLYMPICSAY
Ans.

import java.io.*; class Piglatin { public static void main(String[] args)throws IOException { InputStreamReader read = new InputStreamReader(System.in) ; BufferedReader input = new BufferedReader(read) ; System.out.print(&quot;Enter a word: &quot;); String word = input.readLine( ).toUpperCase( ); String piglatinWord = &quot;&quot;; int i, firstVowel = -1; for(i = 0; (i &lt; word.length( )) &amp;&amp; (firstVowel &lt; 0); i++) { char ch = word.charAt(i); switch(ch) { case 'A': case 'E': case 'I': case 'O': case 'U': firstVowel = i; break; } } String part1 = &quot;&quot;, part2 = &quot;&quot;; if(firstVowel &gt;= 0) { part2 = word.substring(0, firstVowel); part1 = word.substring(firstVowel); } else { part2 = &quot;&quot;; part1 = word; } piglatinWord = part1 + part2 + &quot;AY&quot;; System.out.println(&quot;Output: &quot; + piglatinWord); } }

## Question 7

Marks [15]

Write a program to input 10 integer elements in an array and sort them in descending order using bubble sort technique.
Ans.

import java.io.*; class BubbleSort { public static void main(String[] args)throws IOException { InputStreamReader read = new InputStreamReader(System.in) ; BufferedReader input = new BufferedReader(read) ; int n = 10; int[ ] arr = new int[n]; int i, j, temp; System.out.println(&quot; Enter the elements:-&quot;); for(i = 0; i &lt; n; i++) { System.out.print(&quot; Enter &quot; +(i+1) +&quot; Numbered Element: &quot;); arr[i] = Integer.parseInt(input.readLine( )); } for(i = 0; i &lt; (n-1); i++) { for(j = 0; j &lt; (n-1-i); j++) { if(arr[j] &lt; arr[j+1]) { temp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = temp; } } } System.out.println(&quot; Sorted array (descending):- &quot;); for(i = 0; i &lt; n; i++) System.out.print(arr[i] + &quot; &quot;); } }

## Question 8

Marks [15]

Design a class to overload a function series( ) as follows:

1. double series(double n) with one double argument and returns the sum of the series.
sum = 1/1 + 1/2 + 1/3 + … 1/n
2. double series(double a, double n) with two double arguments and returns the sum of the series.
sum = 1/a2 + 4/a5 + 7/a8 + 10/a11 … to n terms

Ans.

import java.io.*; class OverlaodSeries { public static double series(double n) { double sum = 0.0; int terms = (int)(Math.round(n)); for(int i=1; i &lt;= terms; i++) sum = sum + 1.0d / (double)i; return sum; } public static double series(double a, double n) { double sum = 0.0; int terms = (int)(Math.round(n)); for(int i = 1; i &lt;= terms; i += 3) sum = sum + (double)(i / (a * (i + 1))); return sum; } public static void main(String[] args)throws IOException { InputStreamReader read = new InputStreamReader(System.in) ; BufferedReader input = new BufferedReader(read) ; System.out.print(&quot; Enter a: &quot;); double a = Double.parseDouble(input.readLine( )); System.out.print(&quot; Enter n: &quot;); double n = Double.parseDouble(input.readLine( )); double sum1 = OverlaodSeries.series(n); System.out.println(&quot; Sum 1: &quot; +sum1); double sum2 = OverlaodSeries.series(a, n); System.out.println(&quot; Sum 2: &quot; +sum2); } }

## Question 9

Marks [15]

Using the switch statement, write a menu driven program:

1. To check and display whether the number input by the user is a composite number or not (A number is said to be a composite, if it has one or more than one factors excluding 1 and the number itself).
Example: 4, 6, 8, 9, …
2. To find the smallest digit of an integer that is input:
Sample input: 6524
Sample output: Smallest digit is 2

Ans.

## ICSE Sample Paper of English for Class 9

Jitendra12:47 pm

Sep 17 • Board Sample Papers • 178442 Views • 731 Comments on ICSE Sample Paper of English for Class 9

Sample paper of English for class 9. Introduction

Indian Certificate of Secondary Education is abbreviated as ICSE, which is one of the most famous non-governmental Board of Education serving quality education across country. English is the most interesting and easy subject to prepare for Board Examination. It require a little attention and you will be able to secure good marks in the Board Exams. The purpose of setting this Sample Paper of English for Class 9 is to make students aware about the the pattern and the type of questions asked in the exam. IN order to enhance your practice in a more effective way you can take help from ICSE Class 9 Accounts Sample Paper.

### Click on Whatapp logo to join oureducation IIT group with many students

Tips for Preparation:

(1) There will be one theory paper of two and half half hour containing 80 marks. Thus it is very much important to prepare for this theory.

(2) A Long questions of 25 mark will asked from the composition Section. So, prepare it very well.

(3) Short answer 3 marks questions should be asked from literature, grammar and reading Section. So, do not waste your time in writing these in a long format.

(4) Solve the given sample paper to maintain your Time Management.

ICSE Sample Paper of English for Class 9

General Instruction:
(a) Attempt all compulsory four questions.
(b) Marks are allotted to each question.
(c) This paper is of 80 marks as total.

Question 1

Write a composition on any of the following [25]
(a) “Men and Women should be treated as equal.”
(b) You have recently viewed a famous historical place. Describe your whole experience.
(c) You were had to stay one night in the Hotel Taj due to an accident at the railway station. Share your experience.
(d) Elaborate the significance of ‘ Time is Money’

Question 2

Select any one of the following: [10]
(a) Your sister had passed the Class XI exams with 95% marks. However she get confused which stream of course she should choose. She had written a letter to you in this regard. Reply to her letter and suggest the course she should go for. Also give valid suggestions for your answer.
OR
(b) Your village lacks good services and the people are forced to face a lot of difficulty because of this. Write a letter to the Chief Officer of your district in this regard by requesting him to provide a solution to this problem.

Question 3

Read the passage given below and answer the questions a, b, c, and d that follow:
THE CREATION OF THE TEACHER

Author Unknown :The Lord was the creator of good teachers. It was His sixth day of ‘overtime’ and He knew that this was a tremendous responsibility for teachers would touch the lives of so many impressionable young children. An angel appeared to Him and said, “You are taking a long time to figure this one out.””Yes,” said the Lord,” but have you read the specs on this order?”
TEACHER:Teacher must stand above all students to be at their level. He must be able to do 180 additional things which are not related to their taught subject. Teacher must have to run on coffee. He must be able to communicate as per his vital knowledge to all students daily. Teacher must have more time for others than for herself/himself
“Six pair of hands, “said the angel, “that’s impossible”
“Well,” said the Lord,” it is not the hands that are the problem. It is the three pairs of eyes that are presenting the most difficulty!”
The angel looked incredulous, “Three pairs of eyes…on a standard model?”
The Lord nodded His head, “One pair is to see whether a student is doing or not and what others have to labeled them. The Second pair is the pair of eyes which is at the back of the teacher’s head to watch what should not be seen, but what must to be known. The eyes in the front are only to look at the child as he/she ‘acts out’ in order to reflect.
“Lord,” said the angel,” this is a very large project and I think You should work on it tomorrow”.
“I can’t,” said the Lord, ” for I have come very close to creating something much like Myself. I have one that comes to work when he/she is sick teaches a class of children that do not want to learn has a special place in his/her heart for children who are not his/her own understands the struggles of those who have difficulty never takes the students for granted”
The angel looked closely at the model the Lord was creating.
“It is too soft-hearted,” said the angel.
“Yes,” said the Lord, “but also tough, You cannot imagine what this teacher can endure or do, if necessary”.
“Can this teacher think?” asked the angel.
“Not only think,” said the Lord, “but reason and compromise.”
The angel came closer to have a better look at the model and ran his finger over the teacher’s cheek.
“Well, Lord,” said the angel, Your job looks fine but there is a leak. I told you that You were putting too much into this model. You cannot imagine the stress that will be placed upon the teacher.”
The Lord moved in closer and lifted the drop of moisture from the teacher’s cheek. It shone and glistened in the light.
“It is not a leak,” He said, “It is a tear.”
“A tear? What is that?” asked the angel, “What is a tear for?”
The Lord replied with great thought, “For the joy and pride watching a child accomplishes even it’s the smallest task to do. It is done for the loneliness of children who have a hard time to fit in it to compassionate feelings of their parents. This has been done when a teacher had to left the class and to say good bye to his students and get ready to welcome a new class.”
“My, “said the angel,” The tear thing is a great idea…You are a genius!!”
The Lord looked somber, “I didn’t put it there.”

(a) Give the meaning of the following words as used in the passage. One word answers as well as short phrases are accepted. [3]
i. Supportive
ii. Reflect
iii. Compassion

(b) Answer the following questions as briefly as possible in your own words.
1. When did God create teachers? Why is this creation a tremendous responsibility? [2]
2. What are the specifications for teacher? [3]
3. What is presenting the most difficulty to God? Why does a teacher want three eyes? [2]
4. What is the teacher’s tear for? [3]

(c) Write the summary of the given passage in your own words. [10]

(d) Give a fitting title for your summary and justify the choice of the title. [2]

Question 4

(a) Rewrite the following sentences followed by the instructions, without changing their actual meaning [10]
1. Why did Radha skip the match? (Change the voice)
2. “Did you understand the passage clearly taught yesterday?” the teacher asks. (Begin: The teacher asked….)
3. He snatched the badminton from him and scored a point. (Begin: Not only…..)
4. The grounds were too damaged to conduct the match. (Use: so….that)
5. Though skilled in commerce, he was not taken to the examination. (Begin: Despite…)
6. As soon as the match started, the crowd turned depressed. (Begin: No sooner….)
7. Piyush is very popular in the class. (Use too’)
8. ‘The Ruskin Bond’ is one of the best films released this year. (Use: good)
9. He saw the bat rushing towards him and leaf aside. (Begin: Having……)
10. The police are looking into the matter.

(b)  Fill up the following blanks by using the correct form of verb in the braces do not copy the paragraph write only your answer of the blank [5]

(c) Fill in the blanks with appropriate prepositions. [5]
1. Anirudh was the descendant ….Shajahan.
2. The rescuers ran short …… adequate assistance.
3. We must give credit our success …….. our teachers and parents.
4. The Minister resigned …………..the cabinet due to ill health.
5. The flood victims were resigned…… their fate.
6. The Gazette is available ……. reference in the library.
7. We should avail …… every opportunity to succeed.
8. When the car broke……, we had to walk home.
9. The curfew was imposed…….. all areas of the city
10. We should try our best to be true ….. our principles.

Points to be remembered are as follow:
2- Describe the topic with valuable points.
3- End with the conclusion.

1- Format of the Personal Letter
2- Reference is must mentioned to the sister in the letter.
3- Sister had passed the Class XI exam with 95% marks.
4- She confused to decide which the course she had to choose.
5- Suggestion for the chosen course.
6- Should be in informal style.

1- Format of the Official Letter.
2- Lack of good service in the village, also mention the name of the village.
3- Problems faced by the people.
4- Level of difficulties.
5- Requirement of good services.
6- Benefits for the village’s people.
7-  Request to the Chief Medical Officer of your district. To open a PRC.
8-  Formal Style.

ii. Reflect: to give out, to mirror.
iii. Compassion: pity, fellow feeing.

1- His sixth day of his ‘overtime’.
2- Teachers should have touched the lives of many impressionable children.

Teacher must stand above all students to be at their level. He must be able to do 180 additional things which are not related to their taught subject. Teacher must have to run on coffee. He must be able to communicate as per his vital knowledge to all students daily. Teacher must have more time for others than for herself/himself

There should be three pairs of eyes. “One pair is to see whether a student is doing or not and what others have to labeled them. The Second pair is the pair of eyes which is at the back of the teacher’s head to watch what should not be seen, but what must to be known. The third pair is the eyes in the front which is only to look at the child ‘acts out’ in order to reflect, “I understand and I still believe in you”, without so much as saying a word to the child.”

For the joy and pride watching a child accomplishes even it’s the smallest task to do. It is done for the loneliness of children who have a hard time to fit in it to compassionate feelings of their parents. This has been done when a teacher had to left the class and to say good bye to his students and get ready to welcome a new class.”

3 Answer (c) Do it by yourself.
Points to be remembered are as follow:
2- Describe the topic with valuable points.
3- End with the conclusion.

A model summary must be like this-
God and His angel had discussed the importance of the teacher’s creation. Teachers always try to influence the children. A teacher sometimes be with the children and sometimes try to made at the level which is above them. He should survive on good resources, must be multitasking, a good and fluent communicator, must have self-respect, hardworking, and able to understand and support students and their parents. He is delighted source for the student’s success in failure.

3 Answer (d) “God the real creator”

1. Why was the test skipped by Radha?
2. The teacher asked whether I had understood the passage the previous day.
3. Not only did he snatch the badminton from him but also scored a point.
4. The grounds were so damaged that it was not possible conduct the match.
5. Despite being skilled in accounting, he was not admitted to the examination.
6. No sooner did the match start than the crowd turned depressed.
7. Piyush is very popular in the class as he is intelligent.
8. ‘The Ruskin Bond’ is one of the best films released this year.
9. He saw the car rushing towards him and leaf aside.
10. The police are looking into the matter.

2. Peacefully                       7. Later
3. Solved                              8. Completing
4. Divide time for              9. Extremely
5. Make sure                       10. Make correction in

1. Of                                6. For
2. Of                                7. To
3. To                                8. Down
4.From                            9. On
5. To                               10. To

Note: To get above Sample Paper in pdf form, follow:ICSE Sample Paper of English for Class 9
To get English Grammar question for 9th in pdf form, follow:Grammar Questions for Class 9 ICSE

As an Engineer, I have prepare this Solved Sample Paper of English for Class 9,I hope this will help to solve your problems. For any kind of suggestion related to the content of Sample Paper, please follow the comment Section to let me know.
BEST OF LUCK FOR YOUR EXAMS…!!