Sample Paper ICSE Class 10 Computer Applications Set E

Sample Papers

Students can refer to the following Sample Paper ICSE Class 10 Computer Applications Set E 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 E with Answers

Practice Paper 2 Examinations
Computer Applications

 This Paper is divided into two Sections.
 Attempt all questions from Section A and Section B.
 The intended marks for questions or parts of questions are given in brackets [ ]
 The submission of the solution set of this paper will start at 1:30 PM
 The link for submission is provided in the description box of the same video.

Section-A [40 Marks]

Question 1. (a) Write an expression in java for cos x+y2. [2]
(b) Write the primitive data types that represent the integer numbers. [2]
(c) What is the return type of a constructor? What will not be the return type of a function, if it returns a value? [2]
(d) Write the following condition using ternary operator: [2] If amount is greater than 1000 and less than 10000, the commission is Rs. 4000 else it is 0.
(e) Write two advantages of using functions in a program.

Question 2. (a) Which unit of the class get called, when the object of a class is created? [2]
(b) How many value can be returned from a function? [2]
(c) If m = -14 and n = -3, what is the value of m % n? [2]
(d) Define a method named ‘calculator’ that accepts two short type variables as its arguments and returns an integer value. [2]
(e) State the total size in bytes of each of the arrays – [2]
(i) a[4] of char data type (ii) p[4] of float data type

Question 3. (a) Write a java statement to create an object ‘barbie’ for a class ‘toy’. [2]
(b) Write the output (assume a as 0). [2] if (a > 0 && a < 20) a++; else a – -; System.out.print(a);
(c) Write the output of the following – [2] System.out.println(Math.rint(Math.abs(-15.6)));
(d) What is logical operator? Name any two logical operators. [2]
(e) What is the purpose of default in a switch construct

Question 4. (a) Write the output of – [2] boolean k; k =(“BLUEJ”.length()>”JAVA”.length())? true:false; System.out.println(k);
(b) Write down the syntax for the following – [2] To return the first occurrence of ‘a’ in the word “applications”
(c) Convert the following into for loop- [2]
int h=0,j=4;
j – =2;
} S
(d) Define the keyword public in the statement public static void main(). [2]
(e) Can an identifier name be same as that of a keyword?

Section -B [15x 4 = 60 Marks]
[Attempt all questions from this Section]
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 5. Define a class Candidate with the following descriptions:
Data Members:

• RNo(Registration Number) of type long
• Name of type String
• Score of type float
• Remarks of type String Member methods:
(i) A function ENTER() to allow user to enter values for Rno, Name, Score
(ii) A member function Remark() to assign the remarks as per the score obtained by a candidate. Score range and the respective remarks are shown as follows:

Sample Paper ICSE Class 10 Computer Applications Set E

(iii) A function DISPLAY() to allow user to view the content of all data members. Also create a main() method to create an object and call the functions. [15

Question 6Use switch statement, write a menu driven program to:
(i) To find and display all the factors of a number input by the user (including 1 and excluding number itself.) Example: Sample Input : n=15. Sample Output : 1,3,5
(ii) To find and display the factorial of a number input by the user(the factorial of a non-negative integer n ,denoted by n!, is the product of all integers less than or equal to n. Example: Sample Input : n=5 Sample Output : 5!=1×2×3×4×5=120. For an incorrect choice, an appropriate error message should be displayed.

Question 7. Write a program to input 10 numbers into a float type array and arrange the numbers in descending order using Bubble Sorting technique.

Question 8. Write a program to input two characters from the keyboard. Find the difference (d) between their ASCII codes. Display the following messages:
If d=0 : both the characters are same.
If d<0 : first character is smaller.
If d>0 : second character is smaller.
Sample Input :
Sample Output :
First character is smaller (since d= (67-80) = -13)