Tuesday, February 19, 2013

ICSE Computer Applications 2012 board paper

ICSE Java Complete Reference book is currently available as print on demand and can be bought from online stores. Please check the discounts offered by different websites. second edition of book (2013 release) includes 2013 board paper solution.

Good news!!


Discount is offered on 25+ copies. For more details write to info@pothi.com


ICSE Paper – 2012
Class – X
Subject – Computer Applications
             

 (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) Give one example each of a primitive data type and a composite data type?        [2x5=10]
      b) Give one point of difference between unary and binary operators?                                    
      c) Differentiate between call by value or pass by value and call by reference
           or pass by reference.                                                                                         
      d) Write a Java expression for √(2as + u 2)
      e) Name the type of error (syntax, runtime or logical error) in each case given below?          
           i)    Division by a variable that contains a value of zero.
           ii)   Multiplication operator used when the operation should be division.
           iii)  Missing semi colon.
Q2.a)  Create a class with one integer instance variable. Initialize the variable using:     [2x5=10]
             i)    default constructor.
             ii)   parameterized constructor.
      b) Complete the code below to create an object of Scanner class.                            
          Scanner sc = --------- Scanner ( ------ );
      c) What is an array? Write a statement to declare an integer array of 10 elements.            
      d) Name the search or sort algorithm that:                                                               
           (i)  Makes several passes through the array, selecting the next smallest item in
                 the array each time and placing it where it belongs in the array.
           (ii)  At each stage, compares the sought key value with the key value of middle
                 element of the array.                       
      e) Differentiate between public and private modifiers for members of a class?                       

Q3.a) What are the values of x and y  when the following statements are executed?    [2x10=20]
int a = 63, b=36;
boolean x = (a > b) ? true : false
int y = (a < b) ? a : b
      b) State the values of n and ch?                                                                              
             char c = ‘A’;
             int  n = c + 1;
             char ch = (char) n;
      c) What will be the result stored in x after evaluating the following expression?            
            int x = 4; x+=(x++) + (++x) + x;

      d) Give the output of following program segment: sentence                                         
           double x = 2.9, y = 2.5; 
           System.out.println(Math.min(Math.floor(x),y));
           System.out.println(Math.min(Math.ceil(x),y));
      e) State the output of the following program segment                                                           
          String s = “Examination”;
            int n = s.length();                     
           System.out.println(s.startsWith(s.substring(5,n));
           System.out.println(s.charAt(2) == s.charAt(6));
      f)  State the method that.                                                                                          
            i)  Converts a string to a primitive float data type.
            ii)  Determines if the specified character is an uppercase character.
      g) State the data type and values of a and b after the following segment is executed. 
           String s1 = “Computer”, s2 = “Applications”                                  
           a = (s1.compareTo(s2))
           b = (s1.equals(s2))
      h) What will the following code output?                                                                        
             String s = “malayalam”
System.out.println(s.indexOf(‘m’));
System.out.println(s.lastIndexOf(‘m’));
      i)  Rewrite the following program segment using while instead of for statement           
            int f=1, i;
            for(i=1;i<=5;i++)
            {f*=i; System.out.println(f);)  
      j)  In the program given below, state the name and the value of the                               
i)    method argument or argument variable.
             ii)   class variable.
             iii)  local variable.
             iv)  instance variable.

            Class myClass
            {
              static int x = 7;
              int y = 2;
              public static void main (String args[])
              {
                myClass obj = new myClass();
                System.out.println(x);
                obj.sampleMethod(5);
                int a = 6;
                System.out.println(a);
              }
              void sampleMethod(int n)
             {
                System.out.println(n);
                System.out.println(y);
             }
          }


SECTION B (60 Marks )
Attempt any four questions from this Section.
The answers in this section should consist of the program in Blue J environment with Java as the base. Each program should be written using Variable descriptions / Mnemonics Codes such that the logic of the program is clearly depicted.
Flow-charts and Algorithms are not required.


Q4. Define a class called Library with the following description:                                     [15]
       Instance variables/data members:
          int acc_num        - stores the accession number of the book
          String title           - stores the title of the book
          String author       - stores the name of the author

       Member Methods:
          void input()         - to input and store the accession number, title and author.
          void compute()    - to accept the number of days late, calculate and display the fine
                                          charged at the rate of Rs 2 per day.        
          void display()      - to display the details in following format:.

          Accession Number          Title                 Author
          ------------------------                       -----                   ---------

        Write a main method to create an object of the class and call the above member
         methods.
           
Q5. Given below is a hypothetical table showing rates of income tax for the male
        Citizens below the age of 65 years:                                                    [15]                                                        
Taxable Income (TI) in Rs
Income Tax in Rs
Does not exceed Rs 1,60,000
NIL
Is greater than 1,60,000 and less than or equal to Rs 5,00,000
(TI - 1,60,000) X 10%
Is greater than 5,00,000 and less than or equal to Rs 8,00,000
[(TI - 5,00,000) X 20%]  + 34,000
Is greater than 8,00,000
[(TI - 8,00,000) X 30%]  + 94,000

Write a program to input the age, gender (male or female) and taxable income of a person.
If the age is more than 65 years or the gender is female, display “wrong category”. If the age is less than or equal to 65 years and the gender is male, compute and display the income tax payable as per the table given above.

Q6. Write a program to accept a string. Convert the string to uppercase Count and output the number of double letter sequences that exist in the string.
Sample Input: “SHE WAS FEEDING THE LITTLE RABBIT WITH AN APPLE”    
Sample Output: 4                                                                                             [15]

Q7. Design a class to overload a function polygon() as follows:                            [15] 
a)     void polygon (int n, char ch)    –  with one integer argument and one character type argument that draws a filled square of side n using the character stored in ch.                                 

b)     void polygon (int x, int y)    –  with two integer arguments that draws a filled rectangle of length x and breadth y, using the symbol ‘@’

c)     void polygon() – with no arguments that draws a filled triangle shown below.

Example:
             i)    Input value of n =2, ch = ‘O’.
                  Output:                               OO
                                                            OO      
             ii)   Input value of n =2, y = 5.
                  Output:                               @@@@@
                                                            @@@@@

             iii)   Output:                              *
                                                            * *
                                                            * * *
Q8. Using the switch statement, write a menu driven program to:                             [15]           
i)    Generate and display the first 10 terms of the Fibonacci series
      0, 1, 1, 2, 3, 5…..
The first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two.  

ii)    Find the sum of the digits of an integer that is input:
            Sample Input:   15390
            Sample Output: Sum of the digits = 18
    
       For an incorrect choice, an appropriate error message should be displayed.  

Q9. Write a program to accept the names of 10 cities in a single dimension string array and their STD (Subscribers Trunk Dialing) codes in another single dimension integer array. Search for a name of a city input by the user in the list. If found, display  “Search Successful” and print the name of the city along with its STD code, or else display the message “Search Unsuccessful, No such city in the list”.   [15]         



                                         

Thursday, February 14, 2013

Computer Applications ICSE board


Computer Applications ICSE board

The subject of Computer Applications for ICSE board has gained high popularity and this subject lays total emphasis on programming aspects in Java language.

This book is to help ICSE students learn fundamental concepts of computing using object oriented approach in one computer language. It covers all syllabus of ICSE Computer Applications subject. Questions after every chapter, assignments, and almost all programs are solved which are required for board exam. Previous year board papers solved and unsolved for ICSE X are included along with some guidelines on how to approach exams.

Other books available from Swapnil are given below:
ICSE Computer Applications for STD IX
ICSE Computer Applications for STD X
Getting Started with Java and Board Paper for ICSE X

ICSE Java Complete Reference is a special edition that contains all above listed books combined together. All topics are covered, and they have been designed with a balance between the theory, practicals and paper solving techniques. This book gives an in-depth study of the topics, with the worksheets providing practical and thought-provoking extension work. This should be particularly useful for those who intend to achieve high scoring results. 

ICSE Java Complete Reference book is currently available as print on demand and can be brought from online stores. Please check the discounts offered by different websites.

1.    Pothi.com:
2.    infibeam :
3.    flipkart : 
4.    homeshop18 : 
5.    indiaplaza : 
6.    dial a book : 

ICSE Java Complete Reference book is currently available as print on demand and can be bought from online stores. Please check the discounts offered by different websites. second edition of book (2013 release) includes 2013 board paper solution.


Good news!!


Discount is offered on 25+ copies. For more details write to info@pothi.com