Monday, 16 May 2011



ICSE X Computer Application Q-Paper 3
Computer Application
Grade:  X
Max. Marks  : 80
Time  : 2hr
This paper is divided into two Sections.
The intended marks for questions or parts of question are given in brackets [ ].
________________________________________________________________________________
                                                             SECTION - A  ( 40 Marks )

This paper is divided into two sections.
Attempt all questions from Section A and any four questions from Section B.


Q.1.     (a) What do you understand by IDE ?
            (b) Give any two use of new keyword.
            (c) Define a Null constant.
            (d) What is function's signature ?
            (e) What is composite datatype ?

Q.2.     (a) What do you know about final keyword ?
            (b) Write two ways to initialize a string "Computer Applications".
            (c) Differentiate between & and && operators ?
            (d) Differentiate the following statements :
(i)                 student Amit = new student();
(ii)               student Sumit = new student(84,98,91);
(e) What do you understand by command line arguments ?

Q.3.     (a) Define a function compute() , which receive the value of  three variables a,b,c and return the value of d variable.
            Where a/d = b/c + c/b                                                                          [3]
            (b) Write java statements to perform the following tasks :
(i)                 convert int type variable (x) to string.
(ii)               check if a character (c) is a space(blank)                     [2]
(c) Write the java expression for the following arithmetic expression :


                                                                                                            [2]
(d) Evalute the following java expressions :
(i)                 4/5+3*3%10-8*(-2)
(ii)               int a=5,b=3;
b  += (b+a)/(++b-a++)-a-b;
System.out.print(a+"\t"+b);                                         [2]
(e) Define a function (only) reverse(), which receive a string as parameter and return its reverse.                                                                            [3]
(f) Find errors in the following program segment and write the correct form :
            public cal(int,int)
            {
                        int z;
                        z (+=) (++x)-(--y)
                        return (x,y,z);
                        System.out.print(x+" "+y+" "+z);
            }                                                                                              [3]
(g) Is the following for loop is correct or not ? If  loop is correct then write its use and if incorrect then write its correct form.
            For(;;)                                                                                      [2]


(h) Predict the output of following code :
            int[] a = {9,4,3,7,0};
            for (I=0;I<=3;I++)
            a[I+1] = ( a[I]%2==0 ? ++a[I] : --a[I] );
            System.out.print(a[I]+" ");                                                      [3]





SECTION - B  (  60 Marks )

Attempt any four questions from this Section.
The answers in this Section should consist of the Program in BlueJ environment with Java. Each program should be written using Variable description


Q.4.     Write a program to find the sum of the following series :
            1                      1                                                          1
        1*2*3              2*3*4                                            (n-2)*(n-1)*n
                                                                                                            [15]

Q.5.     Write a program to input category of a person and compute his/her income tax belonging to one of the following category :
Category         Taxable Income (Rs.)              Income Tax (Rs.)
A                     below or equal to 50000         Nil
B                     50001 to 60000                       10% of (Income - 50000)
C                     60001 to 150000                     1000 + 15% of (Income - 60000)
D                     above 150000                          15000 + 20% of (Income - 150000)
                                                                                                            [15]



Q.6.     Write a program to print the following format :
            Abcdef……..z
            Bcdef……z
            Cdef……z
            Def……z
            .
            .
            .
            Xyz
            Yz
Z
                                                                                                            [15]

Q.7.     Store the following numbers in two single dimensional arrays :
            A[] = 2,3,7,-8
            B[] = 9,-1,-4,6
            Write a program that merge A and B arrays in a third array C as follows :
            C[] = 2,9,3,-1,7,-4,-8,6
                                                                                                            [15]

Q.8.     Store final examination marks of 40 students in three subjects Maths , Science and Computer Applications in a double dimensional array. Write a program in java to determine the following :
(i)                 Highest marks in Computer Applications
(ii)               Average marks obtained by each student
[15]

Q.9.     Write a program to enter a string and convert its characters as given below:
B/b ->  A/a , C/c -> B/b , …….., Z/z -> Y/y  , A/a -> Z/z
1 -> 0 , 2 -> 1 , ……… , 9 -> 8 , 0 -> 9
blank (' ') -> $
Rest of the characters should not change.
For example :
Input string :     I.C.S.E. Examination 2007
Output string :   H.B.R.D.$Dwzlhmzshnm$1996
                                                                                                            [15]

By Prof. Mahendra Kanojia

Related Posts :



0 comments:

Confused? Feel free to ask

Post a Comment