Trending ▼   ResFinder  

ICSE Class IX Prelims 2020 : Computer Applications (Daffodils Concept School (DCS), Sindhanur, Raichur)

3 pages, 29 questions, 0 questions with responses, 0 total responses,    3    0
Srinivas Siva
Daffodils Concept School (DCS), Sindhanur, Raichur
x AND puc M Tech(CS)
+Fave Message
 Home > srini23 >   F Also featured on: School Page icse9

Formatting page ...

DAFFODILS CONCEPT SCHOOL ICSE Dec 19,2019 Class: IX Preparatory Examinations-I-2019-20 Sub: Computer Applications SECTION-A (Attempt all Questions) Time: 2hr Max. Marks: 100 Question 1: 1. What is the use of new operator? Give one example where new operator is used in java. [2] 2. What are escape sequences? List the known sequences with their functions. [2] 3. Write the size of the following integer data types both in terms of bytes and bits. [2] (a) int (b) short (c) long (d) byte 4. (a) Which package has defined the class system. (b) Write different types of comments with examples. [2] 5. (a) The return type of the following functions: (i) Math.sqrt (ii) Math.round (b) Create an object cricket of class sports. [2] Question 2: 1. What is the difference between switch and if-else statement? [2] 2. State the difference between: (i) = and == (ii) / and % [2] 3. Write one similarity and one difference between (i) for and while loop (ii) while and do while. [2] 4. What is token? Explain any two types of tokens with an example. [2] 5. What do you mean by precedence of operators? Arrange the following operators given below in order of higher precedence to lower precedence: (i) && (ii) % (iii) <= (iv) ++ [2] Question 3: 2( + )2 Write Java expression for (a) 2. (i) If a =5 and b=9; calculate the value of a+=a++ - ++b+a++%b++. (ii) What is the value of m after evaluating the following expression: m =9%++n+ ++n/2 When int m=10 ,n=6. Write the values stored in x and y if the following fragment code is executed. double a= 6.05; double b=14.74,c=18.3 double x=Math.abs(Math.ceil(a)); double y=Math.floor(Math.max( Math.ceil(b),Math.round(c)); What will be the out put of the following: int m=2,n=15; for(int i=1; i<5;i++); { m++; --n; } System.out.println( m= +m); System.out.println(n= +n); Find the output of the following segments, when (a) val=600 (b) val=1600 int val,sum,n=550; sum=n+val>1750?400:200 System.out.println(sum) Rewrite the following code segment in for loop. int y=55; while (y>0){ x=y%10; s=s+(x*10); y=y/10;} 3. 4. 5. 6. 2 (b) = ( + + ) 1. 2 3 [2] [2] [2] [2] [2] [2] 7. State the values of n and c. [2] char ch= b ; int n=ch+2; char c=(char)n; 8. Rewrite the following using if else: [2] Net=(salary>10000)?salary-(8.33/100)*salary: salary-(5/100)*salary; 9. What is infinite loop? Give an example. [2] 10. Is it necessary to use break statement in switch case statement? Explain. [2] SECTION-B (Attempt any four of the following) Question 4: [15] The Gulbarga Electricity Company charges from the consumers according to the units consumed per month but the amount is to be paid quarterly in advance as per the given tariff. To accept previous reading ,present reading and calculate the amount based on the units consumed. Units consumed Upto 100 units For next 200 units For next 300 units More than 600 units Charges 4.50 per unit 5.50 per unit 6.50 per unit 7.50 per unit Write a program to input consumer s name, consumer number and the unit previous reading, present reading. The program displays the following information at the time of receiving the money receipt as Gulbarga Electricity Company Money Receipt Consumers Number: Consumer s Name: Units Consumed: Monthly amount: Amount to be paid Quarterly: Question 5: [15] Write a program in java to enter a number and check whether the number is an Armstrong or not. A number is said to be an Armstrong, If the sum of cubes of digits is equal to the original number. Sample Input: 153. Sample output: 153 is an Armstrong number because 13+53+33=153. Question 6: [15] Write a menu driven program to find the volume of a cube, a sphere and a cuboid. For an incorrect choice, an appropriate error message should be displayed. (i) Volume of a cube=s*s*s 4 (ii) Volume of a sphere 3 3 (iii) Volume of a cuboid= lbh. Question 7: [15] Write a program to find the sum of the following series: 1 2 3 4 = 2 3 + 4 5 + . to n. Question 8: [15] Write a program in java to print the sum of the following series: (16 1) + (14 2) + (12 3) + (10 4) + (8 5) + (6 6) + (4 7) Question 9: [15] Write a menu driven class to accept a number from the user and check whether it is a neon number or a perfect number. (i) Neon number:A number is said to be Neon, if sum of the digits of square of a number is equal to the number itself. Sample input: 9 Sample output: 9*9=81, 8+1=9; 9 is a neon number. (ii) Perfect number: A number is called perfect if it is equal to the sum of its factors other than the number itself. Example: 6=1+2+3

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

srini23 chat