Trending ▼   ResFinder  

ICSE Class X Prelims 2019 : Computer Applications (Don Bosco Senior Secondary School, Vaduthala, Kochi, Ernakulam)

4 pages, 39 questions, 39 questions with responses, 116 total responses,    3    0
Tiara Elizabeth
Indian Certificate of Secondary Education (ICSE), New Delhi
10th
+Fave Message
 Home > thejtthomas >   F Also featured on: School Page icse

Instantly get Model Answers to questions on this ResPaper. Try now!
NEW ResPaper Exclusive!

Formatting page ...

COMPUTER APPLICATIONS (Theory) (Two Hours) Answer to this paper must be written on the paper provided separately. You will not be allowed to write during the first 15 minutes. This time is to be spent in reading the question paper. The time given at the head of this paper is the time allowed for writing the answers. 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 part of questions are given in brackets[]. Section A (40 Marks) (Attempt all questions) Question 1. a) What is default constructor? Give example. b) Differentiate between implicit conversion and explicit conversion. c) public class sales { int invoice=1234; static pro_code; public ststic void main() { sales s= new sales(); int price=1000; s.show(price); } void show(int pr) { System.out.println(invoice); System.out.println(pro_code); System.out.println(pr); } } Name the following from the above code: (i) class variable (ii) local variable (iii) instance variable (iv) method variable d) i) Name the keyword that refers to the currently invoking object. ii) Name the keyword that makes the member accessible from all classes inside or outside the package. e) Write the java expression for z= (5 2 + 3 2 ) + 10 1 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-III [2] [2] [2] [2] [2] Question 2. a) What is null loop? Give example. [2] b) Predict the output of the following program segment. [2] l=s.length(); String sen="An apple a day"; System.out.println(s.substring(0,s.indexOf(' '))+s.substring(s.lastIndexOf(' '),s.length())); c) Predict the output of the following program segment. [2] int a=5,b=3,c=7,d=0; d=a++/3 * b-- + a++ % ++c; System.out.println(d); d) Predict the output: [2] int n[]={1,2,3,5,7,9,13,16}; System.out.println(Math.pow(n[4]),n[1]); System.out.println(Math.sqrt (n[5]),n[7]); e) Write the advantages of using functions in a program. [2] Question 3. a) Write the output of the following: i) System.out.println(Character.isLetterOrDigit( 4 )); ii) System.out.println(Character.toUpperCase( y )); b) Name the type of errors (i) Division operator is used to find the sum of two numbers. (ii) Division by a variable that contains a value of zero. c) Define keywords. Name any two keywords in java. d) Write the output of the following: if int a=6,b=3,c=7,d=3; i) (a<b || c>b) ii) (b>=d && a<c) e) What is inheritance? What is the advantage of inheritance? f) Write the function prototype which takes two strings as parameter and returns a boolean value. g) Write the output of the following code: int i,j; char ch; for(i=65;i<=70;i++) { ch=(char)i; j=ch; System.out.println(j); } System.out.println(); h) What do the following statements do? (i) computer com=new computer(10,20); (ii) com.fun(10,20); i) Name two jump statements and their use? j) Differentiate between pure methods and impure methods. 2 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-III [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] Section B (60 Marks) Attempt any four questions from this Section. The answers in this Section should consist of the Programs in either Blue J environment or any other program environment with Java as the base. Each program should be written using Variable description/Mnemonic codes so that the logic of the program is clearly depicted. Flow-Charts and Algorithm are not required. Question 4. [15] Write a program to accept numbers in a single dimensional array of size N . Create another string array of size N-1 to accept valid mathematical symbols like (+, -, /, %, * ). Calculate and display the result by performing the operations by using the symbols stored in the string array on the values stored in the integer array. Example: int Arr[]={1,2,3,4} String Sym[]={ + , / , * } The result is 4. ((1+2)/3)*4 Question 5. [15] Write a program to input a number and print whether the number is a Emirp number or not. (An Emirp number is a number which is prime backwards and forwards. Example: 13 and 31 are both prime numbers. So 13 is a Emirp number.) Question 6. [15] Write a program to accept a sentence from the user and convert it to uppercase and display the isograms words available in the sentence and also display the frequency of such words. Note : Isograms words are words without the repetition of characters. Example: Enter the string An apple a day keeps the doctor away THE ISOGRAMS ARE AN A DAY THE No of ISOGRAM words in the string is = 4 Question 7. Define a class Marginfree with the following description: Instance variables/ data members: String custnm to store the name of the customer. int mobno to store the mobile number of the customer. double cuspoints to store the points of the customer. double pur to store the amount of purchase. 3 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-III [15] Member methods: Marginfree(String, int) parameterized constructor to initialize the name and the mobile number of the customer. void getinput() to input the amount of purchase from the customer. void compute() to calculate and store the points in the variable cuspoints for the amount of purchase as per the table below. Purchase amount(in Rs) <=1000 Points (in percentage) 0% 1001 to 3000 0.5% of the amount of purchase 3001 to 5000 0.75% of the amount of purchase 5001 to 10000 1.25% of the amount of purchase void getbill() to display the bill in the following format. Cus. Name Mobile Purchase Points Added Question 8. [15] Write a program to overload a function calculate() as follows: void calculate(int m, int g, int h) with three integer arguments to calculate the Potential Energy using the formula PE=mgh. void calculate(int m, int v) with two integer arguments to calculate the Kinetic Energy using the formula KE= mv2 void calculate(double u, double t, double a) with three double arguments to the distance covered by the body using the formula S=ut+ at2 Question 9. [15] Write a menu driven program to perform the following: (Using switch statement) a) to find the sum of the series using function 3 4 5 +1 = 2 + +. . 2 3 4 b) to find the sum of the series using function ( 1) ( 2) ( 3) ( 9) = + + + + + +1 +2 +3 +4 + 10 4 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-III

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Nisarg Bhavsar

(67)

Rg

(61)

Aquaman- King o...

(25)

Vignesh Natarajan

(16)

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

thejtthomas chat