Back to Tutorials
Sample PapersICSEClass 10Computer Applications

ICSE computer applications sample paper

Trushna Tejwani6 January 2023
Sample Papers

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]

  1. The default initial value of character data type.
  2. a) " "
  3. b) ‘\u0000'
  4. c) false
  5. d) ' '
  6. Looking at the image identify to which category of loop it belongs to choose the right two options.
  7. a) Infinite Loop
  8. b) Finite Loop
  9. c) Null Loop
  10. d) Empty Loop
  11. A function which returns a value to its caller module. It also doesn't change the states of an object.
  12. Impure Methods
  13. Pure Function
  14. Accesser Method
  15. Both (b) and (c)
  16. 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)

  1. 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.
  2. a) Non-parameterised constructor
  3. b) Constructor
  4. c) Parameterised constructor
  5. d) Copy Constructor
  6. What is not true about the constructor?

a)A constructor has the same name as the class name

  1. b) The constructor is used only to initialize the data members
  2. c) The constructor is automatically called while creating an object
  3. 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:

  1. iteration
  2. sequence
  3. selection
  4. none

VIII. Which of the following statement is exit controlled loop?

  1. for
  2. while
  3. do-while
  4. if-else
  5. ________ package is necessary to be imported in order to use scanner class.
  6. java.util
  7. java.io
  8. java. Math
  9. none
  10. Token is a set of characters separated by _______.
  11. Keywords
  12. Separators
  13. Delimiters.
  14. None
  15. Name the movement of control from one line to other in a program.
  16. Control the flow
  17. Flow of Control
  18. Controlling the flow
  19. None of the above
  20. The condition when the break statement is not used after each case statement, and where the control executes the next case.
  21. Through the Fall
  22. Falling through
  23. Failing through
  24. Fall Through
  25. The case which gets executed when the value doesn't match with any of the cases listed in the switch case.
  26. By default case
  27. default
  28. return
  29. Return
  30. Suppose you compile the class HelloClass. What will be the name of the Bytecode file ?
  31. HelloClass.java
  32. HelloClass.class
  33. HelloClass.obj
  34. None of the above
  35. While declaring the main method, which keyword comes first ?
  36. public
  37. class
  38. object
  39. None of these
  40. A package contains:
  41. tags
  42. classes
  43. data
  44. arrays

XVII . Each primitive data type belongs to a specific:

  1. block
  2. object
  3. wrapper class

none

  1. Automatic conversion of primitive data into an object of wrapper class is called:
  2. autoboxing
  3. explicit conversion
  4. shifting
  5. none
  6. A function may be associated with:
  7. return
  8. call
  9. promote
  10. none
  11. A function body is enclosed within a pair of:
  • { }
  1. [ ]
  2. ( )
  3. 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                    @    #    @    #