Trending ▼   ResFinder  

icse 10th computer applications sample paperui

4 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
sotitrivikrama
  
+Fave Message
 Home > sotitrivikrama >

Formatting page ...

Sample Paper 2009 Class X Subject Computer Appli cations (Theory) 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 from this Section Question 1. (a) What is meant by inheritance? Give its two benefits. (b) What is the difference between break and continue statement. (c) What are the advantages function overloading? (d) What is the difference in private and protected access specifiers? (e) What is recursive function.Give an example. [10] Question 2. (a) What is data type? Give one example. (b) What will be the output of the following program segment? String name[ ] = { "Computer","Application }; System.out.println(name[0].length()); System.out.println(name.length); (c) What will be the result stored in x and y after evaluating the following: Assume that initially x = -2 and y = 5. (i) x = ++y x (ii) y + = x (d) Write java expression for the following algebraic expressions: (i) S = ut + (ii) V = (e) Write function prototype that return Boolean value and takes two characters as parameter. [10] Question 3. (a) Write the following statement using switch-case construct : [3] if( ch =='a' ) grade = 'A'; else if( ch =='b' ) grade = 'B'; else if( ch =='c' ) grade = 'C'; else if( ch =='d' ) grade = 'D'; else grade = 'E'; (b) Write a java statement to convert string of digits to double type. [2] (c) Conver the following segment into equivalent while loop [2] for( int i =10 ; i>= 1 ; i = i 2) System.out.println(i); (d) If x and y are int type variables, what will be the result of the expression x% y when x=- 12 and y = -11 [2] (e) What is the difference between String and StringBuffer class? [2] (f) Define the term Exception.What are the advantages of Exception handling? [3] (g) What will be the output of the following codes: [4] char chars[ ] = { 'a','b','c'}; String s1= new String(chars); String s2= "abc"; System.out.println(s2.compareTo(s1)); System.out.println(s2.equals(s1)); System.out.println(s1.length( )); System.out.println(s1.concat(s2)); (h) Give the output of the following expressions: [2] (i) If x = 8.99, calculate Math.floor(x); (ii) If x = 9.99, calculate,Math.ceil (x); SECTION B ( 60 Marks) Attempt any four questions from this Section. The answer in the Section should consists of the Program in BlueJ environment with Java. Each program should be written using Variable descriptions/Mnemonic Codes such that the logic of the program is clearly depicted. Flow-Charts and Algorithms are not required. 4. Write a program to computerize the billing operation of a telephone of a telephone company .The bill has to be generated based on the following conditions: Number of calls Amount per call First 50 calls free Next 100 calls 50 P per call Next 200 calls 80 P per call Rest of the calls Rs 1.20 per call A rent of Rs 120 is charged from every customer.A tax of 15% is charged on the sum of charges and rent.The total amount is tax added to the sum of charges and rent .Print the bill for a customer. 5. Write a program to using function called area() to output the area of circle (p*r2), where p=3.14 ( a ) square (side * side ) ( b ) rectangle (length * breadth ) Display the menu to output the area as per User s choice. 6. Define a class Teacher described as below Data member : Name:(name) Address:(address) Phone Number:(phno) Highest Qualification:(qualification) Subject Specialisation:(subject) Monthly Salary (msalary) Income Tax (IT) Member Method : 1 Default constructor 2 Accept() To Accept the details of a teacher. 3 Display() To display the teacher s detials 4 Increment() To increment the monthly salary by 5000 5 Compute() To compute the annual income tax as 5% of the annual salary above Rs 150000 Write a main method to create object of a class and call the above member method. 7. (a) Write a java program to print n terms of the fibonacci series as : 0,1,1,2,3,5,8 n terms (b) Write a program to accept a number form user and check it is prime or not. [ Prime number is divisible by 1 and itself e.g 3 it is divisible by 1 and 3 17 it is divisible by 1 and 17 ] 8. Write a program to accept 15 integer from the keyboard, assuming that no integer entered is a zero. Enter a number from keyboard and search in an array using Binary Search Technique. If the number is present display " 67 is found at 5 index number" If the number is 67 and stored at 5 index number in an array. Else display " Number is not present in the array". 9. Write a java program to input a string and print frequency of each character of the string. Example Input : COMPUTER APPLICATION OUTPUT occurs 1 times A occurs 2 times C occurs 2 times E occurs 1 times I occurs 2 times L occurs 1 times M occurs 1 times N occurs 1 times O occurs 2 times P occurs 3 times R occurs 1 times T occurs 2 times U occurs 1 times

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

sotitrivikrama chat