Monday, 14 September 2015

ICSE COMPUTER APPLICATION PRACTICE PAPER 5

Class – X
Subject –  Computer Application
This paper is divided into two sections Section A and Section B. Section A is compulsory.Attempt all questions from it. Answer any FOUR  questions from Section B. The intended marks for each question is given in braces []

 


  SECTION A                                          [40 Marks]
     Attempt ALL questions

Question 1.
a)     Give the difference between call by value parameter and call by reference                       [2]
b)    Mention the difference between static & non-static functions.                                          [2]
c)     What is an  literal?                                                                                                         [2]
d)    What is composite datatype?                                                                                         [2]
e)     (i)What are objects? How they are created in a class?                                                      [2]
(ii)What are exception? List some of the most common types of exception
      that might occur in Java?                                                                                         [2]
Question 2.
a)     What is the result produced by 2 – 10*3 + 100/11? Show the steps.                                 [2]
b)     Write the output for:                                                                                                     [2]
i)              Math.ceil(-15.0)
ii)             Math.floor(-16.5)
     c)    Write an expression in Java for sin x +2ab b                                                              [2]
c)     Differentiate between XOR(^) and compliment (~) operator.                                             [2]
d)    Differentiate between pure and impure function.                                                              [2]
e)      Differentiate between initialization and dynamic initialization?                                          [2]
Question 3.
a)     Explain temporary instance of a class.                                                                           [2]
b)    Identify the output for the following code snippet with logic:                                           [3]
for(int I=2;I<15;I++)
{
            while(I<6)
                        continue;
            System.out.println(I*+2);
}
c)     Consier the following:                                                                                                    [3]
int [][]twod = { {-3,4,0,7},{3,8,-8,9}};
Find the value of :
i)              twod.length
ii)             twod[1].length
iii)            twod[0][3]
iv)            Math.pow(twod[0][0], twod[1][1])
    d) Given String a = ”A” ,  b  = ”a” , c = “malayalam”; What is the output?                                   [2]       
(i)         System.out.println (a.compareTo(b));
                        System.out.println (a.equals(b));
(ii)            System.out.println (c.indexOf(‘a’,2));
            System.out.println (c.indexOf(‘a’,3));
Question 4.
a)     If   a = -3, b = -8, c=0, find the output for:                                                                                  [4]
i)              ++a – b++ + c-- + ++b * (--c) *3
ii)             c-- + b++ + a-= 2 - ++c +a
iii)            Predict the output for:                                                                                       [2]
i)              System.out.println(“eight = “ + 3 + 5);
ii)             System.out.println(“six = “ + (2+4));
b)     What is the advantage of user defined package?                                                                       [2]
c)     Write the difference of :                                                                                                            [2]
i)              ‘+’ and ‘++’    ii)  x++ and ++x
                                   

SECTION B                                             [60 Marks]

Answer any FOUR questions in this section. Each program should be written in such a way that it clearly depicts the logic of the problem. This should be achieved by using mnemonics and comments  in the program. Give the variable list used in the program.
Flowcharts and algorithms not required.

Question 5.

Write a program to input a sentence from user and print every alternative characters (leaving space, vowel and numbers) of it (starting from first character).
e.g; Sample Input  : DISARI PUBLIC SCHOOL, HALDIA 22
              Sample output: DSRLCSHLI-
(Note: all alternate characters are underlined, output contains all of them except space, vowel and numbers).                                                                                                                    [15]

Question 6:

Define a class for Electricity Board that initializes the data members using constructors. Data members: month, name of the consumer, consumer number, previous meter reading, present meter reading and net bill.
Methods:
i)         Calculate the number of units consumed in the month.
ii)       Calculate  the charge based on the  number of units consumed
                  No of units                              Charge
                  first 100 units                          90 paisa per unit
                  next 120 units                          Rs. 1.45 for every additional unit
                  otherwise                                 Rs.  2.25 for every additional unit
iii)      Calculate net bill - a meter rent of Rs. 100 is charged from each consumer. A tax of 12% is charged on the sum of the rent and the bill amount. The total amount is calculated by adding tax to the sum of the amount and the rent. If the consumer is working in the board, he will get a concession of 3.5 % on the total amount.
iv)     Display the details of the consumer.
Question 7.

   Write a program to generate first 20 terms  of the Fibonocci series in an array and then print out those
    which are prime . Use a function that checks
    whether   a number is prime number or not
         output           2          5          etc

Question 8.

  Input a number from the user within 30 and print its roman equivalent. [15]
      e.g; Sample Input  : 12
        Sample output: xii

Question 9.

Write a program to input 20 numbers from the user at a row and display pair of numbers those are consecutive. The program must not use the concept of array.
      e.g; Sample Input  :  3, 5, 6, 7, 19, 50, 51, 77, ….
             Sample output:  Consecutive numbers are –
                                                      5 And 6
                                                      6 And 7
                                                      50 And 51         etc.


2 comments:

  1. Solutions for these questions

    ReplyDelete
  2. Vegas Sands Casino | SEGA
    This towering Las Vegas casino sits on the north 샌즈카지노 side of the 메리트카지노총판 desert choegocasino sands of the Nevada desert. It boasts an impressive 5,000 square-foot casino,

    ReplyDelete