Trending ▼   ResFinder  

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

5 pages, 35 questions, 29 questions with responses, 48 total responses,    2    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 compound statement? Give example. [2] b) Differentiate between methods and constructors. [2] c) Write the prototype of the function named count which takes a sentence and a character and returns the frequency of the characters in the sentence. [2] d) i) Name the keyword that makes the variable constant in a program. ii) Name the keyword that returns to function call [2] e) Write the java expression for c= (a2+5b5)/(7a3) [2] Question 2. a) Give the output of the following segment double x=7.3, y=8.1, z=-2.4; 1 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-1 [2] System.out.println(Math.max(x,(Math.min(y,z)))); System.out.println(Math.ceil(Math.min(x,z))); b) Predict the output of the following program segment. [2] for(int i=15;i>1;i-=2) { if(i>10) System.out.println(i++); else System.out.println(--i); } c) Predict the output of the following program segment. int i=1; while(i++<=1) { i++; System.out.print(i+ ); } [2] d) Rewrite the following program segment using ternary operator. if(a<=b) [2] c=b-a; else c=a-b; e) What will be result stored in the variable a after evaluating the following int a=5,b=3; c = (a++)*(--b + --a)+(a+b) [2] Question 3. a) Write the default values of i) float ii) boolean [2] b) Differentiate between continue and break statements. [2] c) Arrange the below operators in descending order /,=,++,!= [2] d) What do u know about this keyword? [2] 2 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-1 e) Define Data Encapsulation. [2] f) Name the type of the casting shown by the following examples. [2] (i) double x=15.2; int y=(int) x; (ii) int x=12; long y=x; g) Differentiate between = and == operators. Give example. [2] h) Differentiate between instance variable and class variable. [2] i) What is scope of variable? [2] j) Differentiate between pass by reference and pass by value. [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. Write a program to generate the following patterns based upon the user s choice. a) 1 14 149 1 4 9 16 1 4 9 16 25 b) 1 4 9 16 25 1 4 9 16 149 14 1 3 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-1 [15] Question 5. A home appliances shop announces a yearend sales discount based on the amount of purchase. [15] Amount of purchase in Rs 0-5,000 5,001 - 10,000 10,001- 20,000 More than 20,000 Discount 0.0% 8.0% 12.0% 15.0% GST 18.0% 18.0% 18.0% 18.0% Write a program to input the total amount of purchase and display the amount to be paid. Note : Amount to be paid = (amount of purchase-discount) + GST. Question 6. Design a class Stringfun to overload a function change() as follows. [15] (i) void change(String s) with one argument that changes the string to upper case. (ii) void change(String s, char c) with two arguments that replaces the vowels in the string s with the character stored in c. (iii) void change(String s1, String s2) with two arguments that interchanges the values of both strings. Question 7. Design a class Supermarket with the following description. [15] Instance Variables/Data Members: String name to store the name of the customer. int invoice - to store the invoice number. int quantity - to store the quantity of the product. double rate - to store the rate of the product. double bill - to store the total bill. 4 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-1 Member Functions: void accept() - to store the name, invoice number, quantity and rate void generate() - to calculate the bill amount(quantity * rate). void show() to display the purchase details which includes customer name, invoice number, quantity, rate of the product and total bill - Question 8. Write a program in Java to check whether it is a palprime or not. (Palprime is a number if it is prime as well as a palindrome). [15] Examples: 101, 131, 313 Question 9. Using switch statement, write a menu driven program to perform the following: [15] a) To print the sum of the series S = 1 + (22/2) + (32/3) + (42/4) + .. + (n2/n) b) To print the sum of the series S = 1/2 + 3/4 + 5/6 + 7/8 + + 19/20. 5 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-1

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Rg

(27)

Tubhyam Mehta

(10)

Affaf Raghib

(7)

Mary Winslet

(4)

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

thejtthomas chat