Computer Science (ICSE Sample Papers – X)

Download ICSE Computer Science Sample Papers Class X (10th) 2008


Sample Paper – 2008

Class – X

Subject – Computer Applications

            

Set – I

Section – I (40 Marks)

 

( Class : X )                                                                ( Two Hours)

 

Answer to this paper must be written on the paper provided separately.

This paper is divided into two sections.

Attempt ALL questions from Section A and any FOUR questions from Section B.

The intended marks for questions or parts of questions are given in brackets[ ].

 

 

SECTION A ( 40 Marks)

Attempt ALL questions.

 

  Q1. a) Differentiate between pure and impure functions.                                                                     [10]

                b) What is friendly access of class members?

                c) What is Data Abstraction?

                d) How is a ordinary compilation process different from Java compilation?

                e) Name four packages available in Java?

               

         Q2. a) What is an exception? What is exception handling?                                                                  [2]

                b) Differentiate between pure and mixed expression.                                                                    [2]

                c) What is type casting?                                                                                                                  [2]

                d)  What is the use of [ ] and ( ) operator ?                                                                                     [2]

                e)  What do you mean by rvalue and lvalue?                                                                                  [2]

      

        Q3. a)  Write the corresponding Java expressions for the following: -                                                   [4]

                    i) 2 - ye2y + 4y   ii) 5a + b (x + y )5

 

   b) Suppose A,B,C are integer variables where A = 3, B = 3, C = 5 and X,Y,Z are the floating point

        variables where X = 8.8, Y = 3.5, Z = -5.2. Determine the value of the following expressions :

        

i)                    A % C

ii)                  ( A * C ) % B

iii)                X / ( X+Y )

iv)                X / Y

v)                  (int) X % (int) Y                                                                                                                        [5]

 

                c)  Name the library function used to compare two strings lexicographically.                               [1]

 

          Q4. a) State the final value of q at the end of the following program segment:                                  [5]

                                 int m, n , p, q = 0;

         for (m = 2; m <= 3;  + +m )

            {

                    for (n = 1; n <= m;  + +n )

                       {

                         p = m + n – 1;

                           if ( p % 3 = = 0)

                              q + = p;

                              else

                                q + = p + 4;

                          }

                            }

 

                 b)  What will be the output of the following code:          

                        import java.io.*;

                        public class a

                          {

                              public static void main( String args[ ] ) throws IOException

                               {

                                   byte x = 64, y;

                                   y = (byte) (x << 2);

                                  system.out.println( y);

                         }

                          }[2]


Download Attached PDF

  « Mathematics (ICSE Sample Papers – X) Physics (ICSE Sample Papers – X) »  

  Posted on Thursday, January 15th, 2009 at 4:52 PM under   Geography | RSS 2.0 Feed