Sample Paper ICSE Class 10 Computer Applications Set F

Sample Papers

Students can refer to the following Sample Paper ICSE Class 10 Computer Applications Set F with Answers provided below based on the latest syllabus and examination guidelines issued for ICSE Computer Applications. All specimen papers have been prepared covering all chapters given in ICSE Computer Applications book for Class 10. You should also refer to ICSE Class 10 Computer Applications Solutions.

Sample Paper ICSE Class 10 Computer Applications Set F with Answers


COMPUTER APPLICATIONS

Std : 10 Max. Marks : 100
No. of Questions : 09
Duration : 2 hours No. of Printed sides : 05

[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.

The 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)
(Answer all questions)

Question I
(a) Identify the literals listed below: [2]
(i) “b” (ii) true
(iii) 32.8d
(iv) ‘4’

(b) Name the OOP’s principle that is implemented by the following: [2]
(i) a Super class and a Sub class
(ii) multiple functions in a class having same name and different signature

(c) Explain the term ‘byte code’, in brief. [2]
(d) Name the Java keyword for the following: [2]
(i) To create an object of a class.
(ii) To declare a variable as a class variable

(e) Write any two characteristics of a constructor. [2]

Question 2
(a) Define Exception. Identify the following as a syntax error, run-time error or logical error: Math.sqrt (25-29);
(b) Explain the fall through situation, in brief. [2]
(c) Name the following: [2]
(i) A package of Java containing wrapper classes.
(ii) Data type returned by compareTo()
(d) Class is called a user defined data type. Comment. [2]
(e) Identify each one of the following as a static method or non-static method: [2]
(i) Math.abs()
(ii) str.lengt() where str is an object or a String class

Question 3
(a) Study the given loop and answer the questions that follow: [2]
int x = 10, y = 20
do [ ++x; y = x ; } while (x<10);
(i) How many times the loop will run?
(ii) What would be the resultant value stored in y?

(b) What would be the value of x after evaluating the expression given below? [2]
x – = (x – – ) – ( – – x + x + +);
where x is given as 8

(c) Write the output of the following program code: [2]
char ch;
String s = “WebWorld”;
for(int i=0;i<s.length();i++)
{
  ch = s.charAr(i);
  for(int j = 1:j<=2 j ++)
  if(Character is UpperCase(ch))
           System.out.print(ch);
else
           System.out print(“$”);
System.out.print(“\n”);
}

(d) Rewrite the following program segment using if-else structure instead of ternary operators; [2]
double rate = units >= 100 ? 2.5 : units >= 50? 1.8 : 1.5;

(e) Write the output of the following code fragment: [2]
String s1 = “123”
String s2 = “58”;
int x = Integer value()f(s1);
double y = Double value()f(s2);
System.out.println(“x=”+x);
System.out.println(“y=”+y);

(f) Name the type casting seen in the following examples: [2]
(i)  char c = ‘m’;
      int a = c;
(ii) double b = 15.2;
      Int x = (int)b;

(g) Write one point difference between private and public access specifiers. [2]
(h) What would be returned by Math.cell(3.78) and Math.abs(Math.rint( 51.2)) [2]
(i) Write a Java expression for the following:

(j) Given the String array as,
String ar{} = {“Eglish”,”Physics”,”Geography”,”Maths”,”Computers”};
What would be returned by the following: [2]
(i)     ar[1]substring(0,5); concat(ar[2] substring(2));
(ii)    ar[4] endsWith(“s”);

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 .

Question 4 [15]
Create a class ‘ACRoom’ that will model a room that needs to be cooled by an Air Conditioning Unit.
Following is the description of the class:
Instance variable / data members:
String Rname        : To store the type of a room in the house
double Rlength      : Length of the room in feet
double Rwidth       : Width of the room in feet
long capacity        : Air conditioning capacity for the room
Member methods  :
ACRoom()            : Non-parameterized constructor to initialize numeric data values to 0.0 or 0 and String data members to “”
void accept()        : To input and store Rname, Rlength, Rwidth
void calCapacity() : To calculate the area of the room (length x width) in square feet to decide the air conditioning capacity for the room.

sample paper icse class 10 computer applications set f

void display () : To display all details of the room such as type, length, width and air conditioning capacity of the room.
Write main method to create an object of the class and call the above member methods.

Question 5 [15]
A number that is smaller than the sum of its factors excluding the highest factor is said to be an abundant number.
Example : Number = 12
Sum of its factors excluding the highest factor = 1 + 2 + 3 + 4 + 6 = 16
Write a program to print all abundant numbers in the range 1 to n (both inclusive) where n is to be accepted in the program. Print the output with the appropriate message.

Question 6 [15]
Write a program to input ten integers in an array. Using switch case statement perform the appropriate operation as per the choice selected by user from the following menu:
          1. Print the factorial of each number from the array.
          2. Print the sum of only odd numbers from the array.
For incorrect choice number, an appropriate error message should be displayed.

Question 7 [15]
Define a class to overload a function check() as follows:
void check(int, int)               – To check and print if the first is divisible by second or not with an appropriate message.
void check(char,char)            – To check the numeric values of both the characters and print the character with higher numeric values.
void check(String,char)         – To check and print the number of times the character occurs in the string.
Write main method to call the above methods.

Question 8 [15]
Write a menu driven program to perform the following operations on the word that is accepted:
   1.   Check if the word is palindrome or not.
   2.   Print the letters of the words in the following pattern:
         M
        MO
        MON
        MONE
        MONEY
        (If the word entered is “MONEY”)
         For incorrect choice, an appropriate message should be displayed.

Question 9 [15]
Write a program to input the first name of a person. Make an array of the letters existing in the name. Arrange the elements of this array in ascending order using Bubble sort technique. Print the sorted array along with the name of the person.