ICSE Computer Application 2017 Paper Solved Previous Year

ICSE Computer Application 2017 Paper Solved Previous Year for for practice so that student of class 10th ICSE can achieve their goals in next exam of council. Hence by better practice and Solved Question Paper of Previous Year including 2017 is very helpful for ICSE student. By the practice of Computer Application 2017 Solved Question Paper ICSE Previous Year you can get the idea of solving. Try Also other year except Computer Application 2017 Solved Question Paper ICSE Previous Year for practice. Because only Computer Application 2017 Solved Question Paper ICSE Previous Year is not enough for preparation of council exam.

ICSE Computer Application 2017 Paper Solved Previous Year

General Instructions :

  • Answers to this Paper must he 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 [ ].

Advertisement

Section-A [40 Marks]

Question 1.

(a) What is inheritance ? [2]
(b) Name the operators listed below r [2]
(0 <
(it) + +
(iii) &&
(iv) ? :
(c) State the number of bytes occupied by char and int data types. [2]
(d) Write one difference between / and % operator. [2]
(e) String x[ ] = {“SAMSUNG”, “NOKIA”, “SONY”, “MICROMAX”, “BLACKBERRY”}; [2]
Give the output of the following statements :
(i) System.out.prindn(x[1]);
(ii) System.out.println(x[3].length{ )); ,

Answers:

(a) Inheritance in java is a mechanism in which one object acquires all the. properties and behaviors of parent object.
The idea behind inheritance in java is that you can create new classes that are built upon existing classes. When you inherit from an existing class, you can reuse methods ‘and fields of parent class, and you can add new methods and fields also.

(b) (i) Comparison operator
(ii) Unary operator
(iii) Logical operator
(iv) Ternary operator

(c) The char data occupies two bytes whereas int data type occupies four bytes.
(d) The / operator is used for division whereas % operator is used to find the remainder.
(e) (i) NOKIA
(ii) 8

Question 2.

(a) Name the following : [2]
(i) A keyword used to call a package in the program.
(ii) Any one reference data type.
(b) What are the two ways of invoking functions? [2]
(c) State the data type and value of res after the following is executed: [2]
char ch = ‘t’;
res=Character. toUpperCase(ch);
(d) Give the output of the following program segment and also mention the number of times
the loop is executed: [2]
int a,b;
for (a=6, b=4; a< =24; a=a + 6)
{
if (a%b= =0)
break;
}
System, out .println(a);

(e) Write the output: [2]
charch= ‘F’;
int m= ch;
m=m+5;
System.out.println(m+ ” ” +ch);

Answers:

Advertisement

(a) (i) import
(ii) Array
(b) By Value and By Reference
(c) int type and value is 84.
(d) Output is 12. Twice.
In the loop : for (a = 6, b=4; a< =24; a = a+6), the value of a will be
incrementing as 6, 24 and upon incrementing the value to 42, the loop will terminate. Accordingly the loop has to execute two times.
But within the loop there is a condition : if(a%b = =0) break;
This means when remainder on dividing a by b comes out to be 0 (at 24/4 = 0), the condition breaks and from the above it is clear that value of a is incremented from 6 to 24 when the loop executes second time.
(e) 75 F

Question 3.

(a) Write a Java expression for the following : [2]
ax5 + bx3 + c
(b) What is the value of xl if x=5 ? [2]
x1 = + +x – X+ + + –x
(c) Why is an object called an instance of a class ? [2]
(d) Convert following do-while loop into for loop. [2]
int i = 1;
int d = 5;
do {
d=d*2;
System.out.println(d);
i+ + ; } while (i< =5);
(e) Differentiate between constructor and function. [2]

(f) Write the output for the following : [2]
String s= “Today is Test”;
System.out.println(s.indexOf(‘T’));
System.out.println(s.substring(0, 7) + ” ” + “Holiday”);

(g) What are the values stored in variables r! and r2: [2]
(i) double r1=Math.abs(Math.min(-2.83,-5.83));
(ii) double r2=Math.sqrt(Math.floor(16.3));

 (h) Give the output of the following code: [2]

String A = “26”, B=”100″;
String D =A+B+”200″;
int x = Integer.parselnt(A);
int y = Integer.parselnt(B);
int d = x+y;
System.out.println(“Result 1 = ”+D);
System.out.prinln(“Result 2 = “+d); ,

(i) Analyze the given program segment and answer the following questions : [2]
for(int i=3;i< =4;i+ +) {
for(int j=2;j<i;j+ +) {
System.out.print(” “); }
System.out.println(“WIN”); }
(i) How many times does the inner loop execute ?
(ii) Write the output of the program segment.

(f) What is the difference between the Scanner class functions nextQ and nextLine()? [2]

Answers:

(a) a.Math.pow(x,5) + b.Math.pow(x,3) +c;
(b) 6
(c) An object is a software bundle of related state and behavior. A class is a blueprint or prototype from which objects are created. An instance is a single and unique unit of a class.

(d) int i =1;
int d = 5;
for(i = 1; i < = 5; i+ +) {
d = d*2;
System.out.println(d);
}

(e) Constructors must be named with the same name as the class name. They cannot return anything, even void (the object itself is the implicit return).
Functions must be declared to return something, although it can be void.

(f) 0
Today i Holiday
(g) r1 = 5.83 .
r2 = 4.0
(h) Result 1 = 26100200
Result 2 = 126
(i) (i) Once
(ii) WIN
WIN

(j)next ( ) can read the input only till the space. It cannot read two words separated by space.
Also, next( ) places the cursor in the same line after reading the input.
nextLine( ) reads input including space between the words (that is, it reads till the end of line \n). Once the input is read, nextLine( ) positions the cursor in the next line.

 

Advertisement

Section – B (60 Marks)

Attempt any four questions from this Section.
The answers in this Section should consist of the Programs in either BlueJ 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.

Question 4.

Define a class ElectricBill with the following specifications : [15]
class : ElectricBill
Instance variables /data member :
String n – to store the name of the customer
int units – to store the number of units consumed
double bill – to store the amount to be paid
Member methods :
void accept ( ) – to accept the name of the customer and number of units consumed
void calculate ( ) – to calculate the bill as per the following tariff :

Read Next 👇 Click on Page Number Given Below 👇

Leave a comment