ICSE Computer Applications 2011 Previous Year Question Paper for Class-10

ICSE Computer Applications 2011 Previous Year Question Paper Solved for Class-10 Step by Step Solutions of ICSE Computer Applications 2011 for preparation of board exam. You can get the idea of solving . Visit official website cisce for detail information about ICSE Class-10 Computer Application .

ICSE Computer Applications 2011 Previous Year Question Paper Solved for Class-10

Try Also other year except Computer Application 2011 Solved Question Paper ICSE Previous Year for practice Because only Computer Application 2011  Solved Question  Paper ICSE  Previous Year is not enough for preparation of upcoming council exam.


ICSE Computer Applications 2011

Advertisement

(Two Hours)
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)

(ICSE Computer Applications 2011 Previous Year Question Paper Solved for Class-10)

(Attempt all questions)

Question 1:
(a) What is the difference between an object and a class ? [2]
(b) What does the token ‘keyword’ refer to, in the context of Java ? Give an example for keyword. [2]
(c) State the difference between entry controlled loop and exit controlled loop. [2]
(d) What are the two ways of invoking functions ? [2]
(e) What is the difference between / and % operator ? [2]

Answer-1:
(a)

Class Object
A class is a template or blueprint or layout according to which object of that class are created. An object is an instance of class.
A class will not exist in memory An object will exist in memory.

(b)

Keywords are reserved words, which have special meaning to Java compiler. They form the vocabulary of the language Keywords can not be used as identifier. e.g., class, if, char, new, int etc.

(c)

Entry control loop Exit control loop
In these loops the test condition is evaluated before each iteration. In these loops, condition is evaluated after each iteration.
This type of loop can not executed, even once if condition is evaluated to false at first time. This type of loops always executed at least once even if the condition is false.

Advertisement

(d)

Two ways to call a function are : 1. Call by value, 2. Call by reference.

(e)

/ operator % operator
This is called division operator. This is called modulus operator.
This operator calculates quotient of two nos.

e.g. : int x = 10; y = 5, z;

z = x/y;

value of z will be 2.

This operator calculates remainder of two nos.

int x = 10„ y = 5, z;

z = x % y;

value of z will be 0.

/ can operate on integer as well as real nos. % can operate on integer only.

Question 2:
(a) State the total size in bytes, of the arrays a [4] of char data type and p[4] of float data type. [2]
(b)

(i) Name the package that contains Scanner class.

(ii) Which unit of the class gets called, when the object of the class is created ? [2]

(c) Give the output of the following:
String n=”Computer Knowledge”;
String m=”Computer Applications”;
System. out.println(n. substring(0,8). concat(m. substring(9)));
System.out.println(n.ends With(“e”)); [2]

(d) Write the output of the following :
(i) System.out.println(Character.isUpperCase(‘R’));
(ii) System.out.println(Character.toUpperCase(‘j’); [2]

(e) What is the role of keyword void in declaring functions ? [2]

Answer-2:
(a) Size of char a[4] is 4 × 2 = 8 Bytes.
Size of float p[4] is 4 × 4 = 16 Bytes.

(b)

(i) Java.util
(ii) Constructor.

Advertisement

(c) Computer Applications
true.

(d)

(i) true
(ii) J.

(e) At the time of function declaration void signify that function has no return type, that means function will not return any value.

Question 3:
(a) Analyse the following program segment and determine how many times the loop will be executed and what will be the output of the program segment ?
int p= 200;
while(true)
{
if(p<100)
break;
p=p-20;
}
System.out.println(p); [2]

(b) What will be the output of the following code ?
(i) int k=5, j=9;
k+= k++ – ++j +k;
System.out.println(“k=”+k);
System.out.println(“j=”+j); [2] (ii) double b =-15.6;
double a = Math.rint(Math.abs(b)); –
System, out. println(“a=”+a); [2]

(c) Explain the concept of constructor overloading with an example. [2]

(d) Give the prototype of a function search which receives a sentence sentnc and a word wrd and returns 1 or 0 ? [2]

(e) Write an expression in Java for [latex s=2]z=\frac { 5{ x }^{ 3 }+2y }{ x+y } [/latex]. [2]

(f) Write a statement each to perform the following task on a string :
(i) Find and display the position of the last space in a string s.
(ii) Convert a number stored in a string variable x to double data type. [2]

(g) Name the keyword that
(i) informs that an error has occurred in an input I output operation.
(ii) distinguishes between instance variables and class variables. [2]

(h) What are library classes ? Give an example. [2]

(i) Write one difference between Linear Search and Binary Search. [2]

Answer-3:
(a) Output : 80.
The loop will be executed 6 times.

(b) (i) k = 5 + 5 – 10 + 6
= 10-10 + 6
= 6.
output : k = 6
j = 10
(ii) a = 16

(c) When more than one constructor are defined in a class provided they differ in their signature, it Is known as constructor overloading.
Example:

public class Demo
{
   private int rollNum;
   //We are not defining a no-arg constructor here

   Demo(int rnum)
   {
      rollNum = rollNum+ rnum;
   }
   //Getter and Setter methods

   public static void main(String args[])
   {
      //This statement would invoke no-arg constructor
      Demo obj = new Demo();
   }
}

Output:

Exception in thread "main" java.lang.Error: Unresolved compilation 
problem:The constructor Demo() is undefined

(d) int search (String sentnc, String wrd)

(e) Expression in Java :
z = ((5 * Math.pow (x, 3)) + (2 * y))\(x + y);

(f)

(i) String s = “this is to test”;
int p;
p = s.
lastIndexOf (“ ”);
System.out.println(p);
(ii) String x = “10.2”;
double d;
d = string.valueOf (x);

(g) (i) throws IOException.
(ii) static keyword.

(h) Library classes are pre-defined classes which are provided by Java System. There is thousands of library classes and each class contains various functions. These classes provide an effective support to programmers in developing their programs.
e.g., Java.lang, Java.util

(i) 

Linear Search Binary Search
Linear search can be performed on unsorted arrays. Binary search can be performed on only sorted arrays.

SECTION B (60 Marks)

(ICSE Computer Applications 2011 Previous Year Question Paper Solved for Class-10)

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.

Read Next 👇 Click on Page Number Given Below 👇

Leave a comment