Sample PapersICSEClass 10Computer Applications

Free ICSE sample paper 2021

Free ICSE sample paper 2021 (Set 2): ICSE Class 10 Computer Applications sample paper with important questions for computer exam practice.

Updated
Sample Papers

class X ICSE sample papers for computer application free download

Java videos

In this page I have shared four sample papers for class X ICSE computer. They are for free download. Use the Download buttons below to get each paper as a PDF.

Number programs

Download the papers

ICSE Class 10 Sample Paper 9

PDF · 239 KB

Download PDF

ICSE Class 10 Sample Paper 10

PDF · 293 KB

Download PDF

ICSE Class 10 Sample Paper 11

PDF · 237 KB

Download PDF

ICSE Class 10 Sample Paper 12

PDF · 352 KB

Download PDF
Read the questions as text
ICSE Class 10 Sample Paper 9 SUB: COMPUTER CLASS X MARKS: 100 TIME: 2 hrs This paper is divided into two sections. You are to answer all the questions from Part I, and any four from Part II. PART I (40 marks) Question 1 [10] 1. Explain what is the job of return key word? [2] 2. Define polymorphism? [2] 3. Explain the term class with example? [2] 4. Define identifier with example; mention 2 naming rules for identifier?[2] 5. Explain the term type casting? [2] Question 2 [10] 1. Write mathematical operations for corresponding expression? [2] a. a2+b2 2. Differentiate“System.out.println ()” and“System.out.print ()” statements.[2] 3. Differentiate two kinds of data types? [2] 4. Identify keywords, identifiers, literals, &comments from the [4] following code // example class definition to demonstrate usage of ternary operator public class ternary{ public void work(){ int a=50; int b=20,c; c=(a>b)?a:b; System.out.println(“value of c=”+c);}} Question 3 [20] 1. What is the purpose of new keyword? [2] 2. Define function overloading? [2] 3. What is default constructor, and parameterized constructor? [2] 4. Differentiate between constructor and method [2] 5. What are wrapper classes? Give two examples? [2] 6. Explain 4 OOP principles? [4] 7. Write output of the following? [2] a. if x=7,y=2; i. x>>=y ii. x<<=--y; System.out.println(“value of x=”+x); System.out.println(“value of y=”+y); 8. Identify (class name, object name, constructor and parameter from the following) Calculator op=new Calculator(10,20); [2] 9. find the output of the following program [2] a. intval=1500,n=500; int sum=(n+val)>750?400:200; System.out.println(sum); b. intval=1600,n=550; int sum=(n+val)>1750?400:200; System.out.println(sum); PART II (60 marks) Question 4 [15] Write a menu driven program to accept a number and check and display whether it is a prime number or not OR an Armstrong number or not. (Use switch-case statement). (a) Prime number: A number is said to be a prime number if it is divisible only by 1 and itself and not by any other number. Example: 3, 5, 7, 11, 13 etc. (b) Armstrong number: An Armstrong number is a 3 digit number for which sum of cube of its digit is equal to the number. Example:153 as 153= 1+ 125+27 which 1^3+5^3+3^3. Question 5 [15] a. Write an OOP for class volumewhich has 3 functions for finding volume of three shapes i.e. circle, rectangle, square, this should be done using functions having parameters and no return type. [7] a. Write an OOP for class convert, using functions having both parameters & return type.First function is for converting distance from CM to Feet and second function is for converting KM to Miles. [8] Question 6 [15] Define a class named movieMagic with the following description: Instance variables/data members: int year – to store the year of release of a movie String title – to store the title of the movie. float rating – to store the popularity rating of the movie. (minimum rating = 0.0 and maximum rating = 5.0) Member Methods: (i) movieMagic() Default constructor to initialize numeric data members to 0 and String data member to “”. (ii) void accept() To input and store year, title and rating. (iii) void display() To display the title of a movie and a message based on the rating as per the table below. Rating Message to be displayed 0.0 to 2.0 Flop 2.1 to 3.4 Semi-hit 3.5 to 4.5 Hit 4.6 to 5.0 Super Hit Question 7 [15] Write a program that has a method integerPower (base, exponent) that returns the value of base exponent For example, integerPower (4, 3) calculates 43 (or 4 * 4 * 4). Assume that exponent is a positive, nonzero integer and that base is an integer. The method should use a for or while loop to control the calculation. Do not use any math-library methods. Question 8 [15] A cloth show room has announced the following festival discounts on purchase of items, based in the total cost of items purchased Purchase Discount% <Rs.2000 5% Between Rs.2001 & 5000 25% Between Rs.5001 & 10000 35% Above Rs.10001 50% Write a program to input total purchase, compute and display the amount to be paid after availing discount. (use any type of user define function) Question 9 [15] Write a program using Predefine Math functions to find answers for the following. 1. Find maximum number between two inputted numbers 2. Absolute value of a given number 3. Square root of a given number 4. Cube of given number. The above answers should be solved in a user define function called Mathematics. ―――――――――― ICSE Class 10 Sample Paper 10 SUB: COMPUTER CLASS X MARKS: 100 TIME: 2 hrs This paper is divided into two sections. You are to answer all the questions from Part I, and any four from Part II. SECTION A (40 Marks) Attempt all questions from this Section Question 1. a) Give the difference between call by value and call by reference b) Explain function overloading with an example. c) What is a keyword? Give two examples. d) Explain what is the job of return keyword? e) Mention two characteristic of java? [5*2=10] Question 2. [5*2=10] a) What is the difference between pure and impure function. b) What is the purpose of new keyword? c) Give the difference between actual parameter and formal parameter. d) What is the difference between unary and binary operator? e) What is the difference between a static member function and a not static member function? Question 3. [20] (a) What will be the output for the following program segment? [2] int a = 10,b=30,c=40; a= --b + c * a / 2; System.out.print("a" + a); System.out.print("b " +b ); (b) Write an equivalent Java expressions for the following expression : [2] ℎ = √2 + 2 (c) What will be the output for the following program segment? [4] (i) a. System.out.println(10%5) b. System.out.println(10/5) (ii) if a = 5 then What will be the value of a- - + ++a%4; (iii) System.out.println(10<10) (iv) System.out.println(10==10) (d) Rewrite the following if-else statement in terms of switch-case statements? [3] char code; if(code=='A') System.out.println("Excellent"); else if(code =='B' || code =='C') System.out.println("Good"); else if(code =='D') System.out.println("Poor"); (e) What do you understand by JVM? [2] (f)Write output of the following? [2] if x=7,y=2; x<<=--y; System.out.println(“value of x=”+x); System.out.println(“value of y=”+y); (g) What do you understand by primitive and non-primitive data type? [2] (h) Convert the following segment into equivalent for loop and do while loop. [3] public void display() { inti=10; while ( i !=0) { System.out.print(i +" "); i-- ; } } SECTION B (60 Marks) Attempt any four questions from this Section. The answer in the Section should consist of the Program in BlueJ environment with Java. Each program should be written using Variable descriptions/Mnemonic Codes such that the logic of the program is clearly depicted. Flow-Charts and Algorithms are not required. Question 4. [15] Design a class to overload a function series( ) as follows : i) double series(double n) with one double argument and returns the sum of the series, sum= 1/1 + 1/2 +1/3 + …. 1/n ii) double series(double a, double n) with 2 double arguments and returns the sum of the series, sum = 1/a2 + 4/a5 + 7/a8 + 10/a11+…… to n terms Question 5. [15] Given below is a hypothetical table showing the rates of income tax for male citizens below the age of 65 years: Taxable Income (TI) in Rs. Does not exceed Rs.1,60,000 Is greater than Rs. 1,60,000 & less than or equal to Rs. 5,00,000 Is greater than Rs. 5,00,000 & less than or equal to Rs. 8,00,000 Is greater than Rs. 8,00,000 Income Tax in Rs. Nil (TI- 1,60,000) x 10% [(TI-5,00,000) x 20%] + 34,000 [(TI-8,00,000) x 30%] + 94,000 Write a program to input the age, gender (male or female) and Taxable Income of a person. If the age is less than 65 years and the gender is male, compute and display the income tax payable as per the table given above. Question 6. [15] Write a menu driven program to : i) To find and display all the factors of a number input by the user (including 1and excluding the number itself). Example: Sampleinput: Sampleoutput: n =15 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: Sampleinput: n =5 Sampleoutput: 5!=1x2x3x4x5=120 For an incorrect choice an appropriate error message should be displayed. Question 7. [15] Write a menu driven program: i) To check and display whether a number input by the user is a composite number or not (A number is said to be composite, if it has one or more than one factor excluding 1 and the number itself). Example 4, 6, 8,9….. ii) To find the smallest digit of an integer that is input. Sample input : 6524 Sample output : Smallest digit is 2 For an incorrect choice, an appropriate error should be displayed. Question 8. [15] Using the switch statement, write a menu driven program to : i) Generate and display the first 10 terms of the Fibonacci series 0,1,1,2,3,5….The first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two. ii) Find the sum of the digits of an integer that is input. Sample Input : 15390 Sample Output: Sum of the digits = 18 For an incorrect choice, an appropriate error message should be displayed. Question 9. [15] Define a class taximeter having the following description: Data members/instance variables int taxino - to store taxi number String name - to store passenger's name int km - to store number of kilometers travelled Member functions: input () - to store taxino,name,km calculate() - to calculate bill for a customer according to given conditions Kilometers travelled(km) Rate/km ≤ 1 km Rs 25 1 < km ≤ 6 Rs 10 6 < km ≤ 12 Rs 15 12 < km ≤ 18 Rs 20 >18 km Rs 25 display()- To display the details in the following format Taxino Name Kilometres travelled Bill amount - - - - Create an object in the main method and call all the above methods in it. ―――――――――― ICSE Class 10 Sample Paper 11 SUB: COMPUTER CLASS:X MARKS: 100 TIME: 2 hrs This paper is divided into two sections. You are to answer all the questions from Part I, and any four from Part II. PART I (40 marks) Question 1 [10] 1. Define encapsulation? [2] 2. Explain the term object with example? [2] 3. Define identifier with example; mention 2 naming rules for identifier?[2] 4. What are wrapper classes? Give 2 examples? [2] 5. What is the purpose of new keyword? [2] Question 2 [10] 1. Differentiate two kinds of data types? [2] 2. Write mathematical operations for corresponding expression? [2] a. a2+b2 b. z=√(x2+y2-x/z) 3. Define recursive function? [2] 4. Identify keywords, identifiers, literals,& comments from the [4] following code // example class definition to demonstrate usage of ternary operator public class ternary{ public void work(){ byte a=10; int b=20,c; c=(a>b)?a:b; System.out.println(“value of c=”+c);}} Question 3 [20] 1. Explain the term type casting? [2] 2. Explain what is the job of return key word? [2] 3. Define function overloading? [2] 4. What is default constructor, and parameterized constructor? [2] 5. Differentiate between constructor and method [2] 6. Explain 4 OOP principles? [4] 7. Write output of the following? [2] a. if x=7,y=2; i. x>>=y ii. x<<=--y; System.out.println(“value of x=”+x); System.out.println(“value of y=”+y); 8. Identify (class name, object name, constructor and parameter from the following) a. Calculator op=new Calculator(10,20); [2] 9. find the output of the following program [2] a. int val=500,n=550; int sum=(n+va)l>1750?400:200; System.out.println(sum); b. int val=1600,n=550; int sum=(n+val)>1750?400:200; System.out.println(sum); PART II (60 marks) Question 4 [15] Write a program to solve 2 series as follows using 2 different functions as mentioned a. double seires(int n) to solve the series [8] S=a/1+a/2+a/3+a/4--------- a/n b. void series1(int n) to solve the series 0,3,8,15,24------ n [7] Question 5 [15] a. Write an OOP for class volume which has 3 functions for finding volume of three shapes i.e. circle, rectangle, square, this should be done using functions having parameters and no return type. [7] a. Write an OOP for class convert, using functions having both parameters & return type. First function is for converting distance from CM to Feet and second function is for converting KM to Miles. [8] Question 6 [15] Define a class student having the following description Data members String name-> to store name Int roll-> to store roll no. Int p,c,b-> to store physics, chemistry ,bio marks Double s-> to store percentage of science marks Member function void Input()-> to input details of student void Calculate()-> to calculate percentage science & marks, void Display()-> to display name,rollno,percentage having message that the student is a ranker if the percentage is >80 Question 7 [15] Write a program that has a method integerPower (base, exponent) that returns the value of base exponent For example, integerPower (3, 4) calculates 34 (or 3 * 3 * 3 * 3). Assume that exponent is a positive, nonzero integer and that base is an integer. The method should use a for or while loop to control the calculation. Do not use any math-library methods. Question 8 [15] A cloth show room has announced the following festival discounts on purchase of items, based in the total cost of items purchased Purchase Discount% <Rs.2000 5% Between Rs.2001 & 5000 25% Between Rs.5001 & 10000 35% Above Rs.10001 50% Write a program to input total purchase, compute and display the amount to be paid after availing discount. (use any type of user define function) Question 9 [15] Write a program using Predefine Math functions to find answers for the following. 1. Find maximum number between two inputted numbers 2. Absolute value of a given number 3. Square root of a given number 4. Cube of given number. The above answers should be solved in a user define function called Mathematics. ―――――――――― ICSE Class 10 Sample Paper 12 SUB: COMPUTER MARKS: 100 CLASS X TIME: 2 hrs This paper is divided into two sections. You are to answer all the questions from Part I, and any four from Part II. SECTION A (40 Marks) Attempt all questions from this Section Question 1. 1. What is the difference between abstraction and polymorphism? [2] 2. What is the difference between unary and binary operator? [2] 3. Explain function overloading with an example. [2] 4. What will be the output of the following code? [2] int m=5; int n=13; for(int i=1;i<=15;i++); m++; --n; System.out.println("m="+m); System.out.println("n="+n); 5. What is keyword? Give two example. [2] Question 2. [5*2=10] 1. Define the term bytecode. 2. What do you mean by type conversion? How is implicit conversion different from Explicit conversion? 3. What do you understand by JVM? 4. What do you understand by primitive and non-primitive data type? 5. Convert the following segment into equivalent for loop public void display() { int i=10; while ( i !=0) { System.out.print(i +" "); i-- ; } } Question 3. 1. Give two differences between switch statement and if-else statement. [5*2=10] 2. What is an infinite loop? Write an infinite loop statement. 3. If the value of a = 3, what does the expression below evaluate to, a + = a + + + + + a + a; System.out.println (a); 4. Rewrite the following program segment using the if-else statements. String grade = (mark>=90) ? “A” : (mark>=80) ? “B” : “C”; 5. State one difference between floating point literals float and double. Question 4. 1. Write a java expression for the following. Y= √c3-a2+b9 2. What are the final values stored in x and y below? double a= -2.15; [5*2=10] double b= 29.87; double x=Math.abs(Math.floor(a)); double y=Math.rint(Math.min(a,b)); 3. Give one example each of a primitive data type and a composite data type. 4. What is the use of default in a switch? 5. Explain the term object with example? SECTION B (60 Marks) Attempt any four questions from this Section. The answer in the Section should consist of the Program in BlueJ environment with Java. Each program should be written using Variable descriptions/Mnemonic Codes such that the logic of the program is clearly depicted. Flow-Charts and Algorithms are not required. Question 5 [15] Write a program to generate the following pattern. a. ****** **** *** ** * b. 1 12 123 1234 12345 Question 6 [15] Write a class in java to enter any number and print if it is a perfect number.[Hint: a number is said to be perfect if it is equal to sum of all its factors ex, 6=1+2+3, hence 6 is perfect number] Question 7. a. Using switch case create class which take month number 1-12 and prints the corresponding month in words [3- March, 12-December] [7] b. Write a class to input a number and print if it is a prime number or not. [8] Question 8. [15] Write a menu driven program to : i) To find and display all the factors of a number input by the user (including 1and excluding the 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!=1x2x3x4x5=120 For an incorrect choice an appropriate error message should be displayed. Question 9. [15] Create overloaded methods named void calc_Area ( ), that has been overloaded to perform the following functions • Area of circle • Area of Rectangle Write a menu driven program in Java to display the above 2 menus and execute the overloaded methods and display the Area in the respective functions, calc_Area (double) for Circle, calc_Area (double, double) for Rectangle [Area of circle=πr2, Area of rectangle=width * height] Question 10. [15] Define a class named movieMagic with the following description: Instance variables/Data members int year - to store the year of release of a movie String title - to store the title of the movie float rating - to store the popularity of a movie (minimum rating = 0.0 and maximum rating = 5.0) Member methods i) void accept() To input and store year, title and rating. ii) void display() To display the title of a movie, the year of release and a message based on the rating as per the table below: Rating Message to be displayed 0.0 to 2.0 Flop 2.1 to 3.4 Semi-hit 3.5 to 4.5 Hit 4.5 to 5.0 Super hit Write a main method to create an object of the class and call the above member methods.