Tuesday, September 26, 2017

ICSE Computer Applications 2016 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. fourth edition of book (2016 release) includes 2016 board paper solution.

Good news!!


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

Additionally: Complimentary shipping for 25+ copies in a single order to a single address within India.
Note: No further negotiation in terms of discount will be possible with Pothi.com as  discounts are standard.


1.    Pothi.com:
2.   flipkart : 
3.    Amazon India :
4.    dial a book :  
   

ICSE Paper – 2016
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.


Question 1.                                                                                             [2x5=10]

a) Define Encapsulation.                       
b) What are keywords? Give an example.                                                                                                    
c) Name any two library packages.               
d) Name the type of error (syntax, logical or runtime error) in each case given below:                                        
      i) Math.sqrt(36-45)               ii)  int a;b;c;           
e) If int x[]={4,3,7,8,9,10}; what are the values of p and q ?
               i) p = x.length                  ii)  q = x[2]+x[5]*x[1]


Question 2.                                                                                             [2x5=10]
a)  State the difference between == operator and equals() method.
b) What are the types of casting shown by the following examples:  
i) char c = (char) 120        ii)  int x = ‘t’;
c) Differentiate between formal and actual parameter.
d) Write a function prototype of following.
A function PosChar which takes a string argument and a character argument and returns an integer value.
e) Name any two types of access specifiers.
                            

Question 3.                                                                                  [2x10=20]

a) Give the output of following string functions.
i) “MISSISSIPPI”.indexOf(‘S’) +“MISSISSIPPI”.lastIndexOf(‘I’)
ii)  “CABLE”.compareTo(“CADET”);

b) Give the output of following Math functions
i) Math.ceil(4.2)     ii)  Math.abs(-4)

 c) What is a parameterized constructor?                             
 d) Write down Java expression for T = A2+B2+C2              
 e)  Rewrite the following using ternary operator:
               if(x%2==0)
          System.out.print(“EVEN”);
          else
          System.out.print(“ODD”);


  f)  Convert the following while loop to the corresponding for loop:
          int m = 5, n = 10;
          while (n>=1)
{
                    System.out.println(m*n);
n--;
}

 g)  Write one difference between primitive and composite data types.
 h) Analyze the given program segment and answer the following questions:    
i)                Write output of the program      
ii)              How many times does the body of the loop gets executed.

               for(int m = 5;m<=20;m+=5)
               { if (m%3 == 0)
                              break;
                  else
                  if (m%5 == 0)      
                     System.out.println(m);  
              continue;
  }


 i) Give the output of following expression:   
a += a++ + ++a + --a + a--; when a=7    

j)  Write the return type of following library functions:
i)                isLetterOrDigit(char)      
ii)              replace(char, char)

              
              


                         
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 BookFair with the following description:     [15]
          Instance variables/data members:
          String Bname          - stores the book name
          double price            - stores price of the book.
                   
          Member Methods:
          BookFair()               - default constructor to initialize data
 members.       
void input()             - to input and store the name and price of the book.
void calculate()      - to calculate price of the book after discount. Discount is calculated based on following criteria.

Price
Discount
Less than or equal to Rs1000
2% of price
More than Rs1000 and less than or equal to Rs3000
10% of price
More than Rs3000
15% of price

 void display()       -To display the name and price of the book after discount. Write a main method to create an object of the class and call the above member methods.

Q5. Using switch statement write a menu driven program for the following.  [15] 
a)    Print Floyd’s triangle

b) Display following pattern
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
I
I C
I C S
I C S E

For an incorrect option, an appropriate error message should be displayed.         

Q6. Special words are those words which starts and ends with the same letter [15]   Example: EXISTENCE, COMIC, WINDOW       
Palindrome words are those words which read the same from left to right and vice versa.
Example: MALAYALAM, MADAM, LEVEL, ROTATOR, CIVIC      
All palindromes are special words but all special words are not palindromes.
Write a program to accept a word check and print whether the word is a palindrome or only a special word.

Q7. Design a class to overload a function SumSeries() as follows:           [15]                      
(i) void SumSeries (int n, double x) with one integer argument and one double argument to find and display the sum of the series given below:
s = x/1 – x/2 + x/3 – x/4 + x/5 ……. To n terms.
         
(ii) void SumSeries() To find and display the sum of the series given beow:
S = 1 + (1X2) + (1X2X3) + ……… + (1X2X3X4……X20)
            
Q8. Write a program to accept a number and check and display whether it is a Niven number or not.                                                                             [15]          (Niven number is that number which is divisible by its sum of digits)
Example:
Consider number 126. Sum of digits is 1+2+6=9 and 126 is divisible by 9            
     
Q9. Write a program to initialize the Seven Wonders of the World along with their locations in two different arrays. Search for a name of the country input by the user. If found, display the name of the country along with its wonder, otherwise display “Sorry Not Found!”
Seven Wonders – CHICHEN ITZA, CHRIST THE REDEEMER, TAJMAHAL, GREAT WALL OF CHINA, MACHU PICCHU, PETRA, COLOSSEUM
Locations – MEXICO, BRAZIL, INDIA, CHINA, PERU, JORDAN, ITALY
Example: Country Name: INDIA         Output: INDIA - TAJMAHAL
      Country Name: USA            Output: Sorry Not Found!

No comments:

Post a Comment