ICSE computer applications sample paper
ICSE computer applications sample paper (Set 2): ICSE Class 10 Computer Applications sample paper with important questions for computer exam practice.
Java ICSE computer applications
CLASS –X COMPUTER APPLICATIONS TIME -2HR MARKS – 100
1) ANSWER TO THIS PAPER MUST BE WRITTEN ON THE PAPER PROVIDED SEPARATELY.
2) A TOTAL FOUR QUESTIONS ARE TO BE ATTEMPTED FROM SECTION B.
4)THE INTENDED MARKS FOR THE QUESTIONS OR PARTS ARE GIVEN IN BRACKETS.
SECTION –A
Question 1 MCQ [20x1=20]
- The default initial value of character data type.
- a) " "
- b) ‘\u0000'
- c) false
- d) ' '
- Looking at the image identify to which category of loop it belongs to choose the right two options.
- a) Infinite Loop
- b) Finite Loop
- c) Null Loop
- d) Empty Loop
- A function which returns a value to its caller module. It also doesn't change the states of an object.
- Impure Methods
- Pure Function
- Accesser Method
- Both (b) and (c)
- The type of variable which are a common copy for each object.
(a)Class Variables
(b)Instance variables
(c) Static Variables
(d) Both (i) and (iii)
- A constructor that is used to initialise the instance variables of an object by copying the initial values of the instance variables from another object.
- a) Non-parameterised constructor
- b) Constructor
- c) Parameterised constructor
- d) Copy Constructor
- What is not true about the constructor?
a)A constructor has the same name as the class name
- b) The constructor is used only to initialize the data members
- c) The constructor is automatically called while creating an object
- d) The constructor needs return type
VII. When the statements are repeated sequentially a number of times in a program, the construct is known as:
- iteration
- sequence
- selection
- none
VIII. Which of the following statement is exit controlled loop?
- for
- while
- do-while
- if-else
- ________ package is necessary to be imported in order to use scanner class.
- java.util
- java.io
- java. Math
- none
- Token is a set of characters separated by _______.
- Keywords
- Separators
- Delimiters.
- None
- Name the movement of control from one line to other in a program.
- Control the flow
- Flow of Control
- Controlling the flow
- None of the above
- The condition when the break statement is not used after each case statement, and where the control executes the next case.
- Through the Fall
- Falling through
- Failing through
- Fall Through
- The case which gets executed when the value doesn't match with any of the cases listed in the switch case.
- By default case
- default
- return
- Return
- Suppose you compile the class HelloClass. What will be the name of the Bytecode file ?
- HelloClass.java
- HelloClass.class
- HelloClass.obj
- None of the above
- While declaring the main method, which keyword comes first ?
- public
- class
- object
- None of these
- A package contains:
- tags
- classes
- data
- arrays
XVII . Each primitive data type belongs to a specific:
- block
- object
- wrapper class
none
- Automatic conversion of primitive data into an object of wrapper class is called:
- autoboxing
- explicit conversion
- shifting
- none
- A function may be associated with:
- return
- call
- promote
- none
- A function body is enclosed within a pair of:
- { }
- [ ]
- ( )
- under a rectangular box
Question 3
Write a program to input a letter. Find its ASCII code. Reverse the ASCII code and display the equivalent character.
Sample Input: Y
Sample Output: ASCII Code = 89
Reverse the code = 98
Equivalent character: b
Question 4
Using the switch statement, 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 a 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 inputs: 6524
Sample output: Smallest digit is 2
For an incorrect choice, an appropriate error message should be displayed. [15]
Question 5
Define a class named Fruit Juice with the following description: [15]
Instance variables / data members :
int product_code — stores the product code number
String flavour — stores the flavour of the juice (E.g. orange, apple, etc.)
String pack_type — stores the type of packaging (E.g. tetra-pack, PET bottle, etc.)
in pack_size — stores package size (E.g. 200 ml, 400 ml, etc.)
in product_price — stores the price of the product
Member methods :
(i) FruitJuice() — Default constructor to initialize integer data members to 0 and String data members to.
(ii) void input( ) — To input and store the product code, flavour, pack type, pack size and product price.
(iii) void discount( ) — To reduce the product price by 10.
(iv) void display() — To display the product code, flavour, pack type, pack size and product price.
Question 6
A Pre-Paid taxi charges from the passenger as per the tariff given below:
Distance
Rate
<tbody>
Up to 5 km
₹ 100
For the next 10 km
₹ 10/km
For the next 10 km
₹ 8/km
More than 25 km
₹ 5/km
</tbody>
Write a program to input the distance covered and calculate the amount paid by the passenger. The program displays the printed bill with the details given below:
Taxi No. :
Question 7
Write a program in Java to input a number from user. Check and print whether given number is corona number or not.
(A number is a corona number whose all digits are odd.)
Question 8
Print the following pattern:-
1 @
2 3 @ #
4 5 6 @ # @
7 8 9 10 @ # @ #
Related Posts
Continue learning with these related articles

User-Defined Methods in Java for ICSE Class 10: Parameters, Return and Overloading
ICSE Class 10 Computer Applications notes on user-defined methods: method prototype and signature, formal and actual parameters, return types, call by value vs call by reference, pure and impure methods, static methods and method overloading, with programs.

String Methods in Java for ICSE Class 10: 25 Output Questions with Answers
ICSE Class 10 Computer Applications practice on String class methods: length, charAt, indexOf, lastIndexOf, substring, replace, trim, compareTo, equals and more, with 25 board-style output questions and step-by-step answers.

Special Number Programs in Java for ICSE: Armstrong, Spy, Neon, Disarium, Pronic and More
Every special number asked in ICSE Computer Applications – prime, perfect, Armstrong, palindrome, automorphic, neon, spy, Niven, duck, buzz, Disarium, special and pronic numbers – with definitions, examples and one complete Java program that checks them all.