Trending ▼   ResFinder  

ICSE Predictive paper 2016 : Computer Applications (Professor Charles Francis Xavier Collage, New York)

4 pages, 27 questions, 22 questions with responses, 45 total responses,    0    0
Skaar
Professor Charles Francis Xavier Collage, New York
DEGREE OF DESTROY(DOD)
+Fave Message
 Home > sportysags >   F Also featured on: School Page

Formatting page ...

Computer Application/Paper 1/Page 1 of 4 Computer Applications (2 hours) GRADE: X Max Marks: 100 Revision Paper 1 Answers 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. SECTION A (40 Marks) Attempt all questions Q. 1. [10] 1. Which of the following are valid comments? a. /* comment*/ c. /*comment b. //comment d. */ comment */ 2. Name the primitive data type in Java that is : a. a 64-bit integer and is used when you need a range of values wider that those provided by int b. a single 16-bit Unicode character whose default value is \u000 3. Differentiate between Pure Functions and Impure Functions. 4. What is a wrapper class? Explain it with an example. 5. State any two types of Java programs. Q. 2. 1. What will be the output when a. value=-5 b. value=150 int sum=189, n=50; sum+=n+value>=150?500:1000; System.out.println(sum); 2. Differentiate between Formal Parameters and Actual Parameters. 3. int a = 60, x=5; float p=.5f; a*= ++x+ x++ % p; System.out.println(a + " " + x); 4. Define Abstraction. 5. Write the Java Expression for the following + This paper consists of 4 printed sides. [10] Computer Application/Paper 1/Page 2 of 4 Q. 3. Give the output of the following [20] 1. System.out.println(Math.floor(8.999)); System.out.println(Math.ceil(25.09)); System.out.println(Math.ceil(-25.25)); System.out.println(Math.floor(-10.69)); 2. What is the data type returned by the library functions: a. substring() b. indexOf() 3. public static void Q3_3() { for(int i=0;i<3;i++) { for(int j=0;j<2;j++) { int number = (int)(Math.random()*6); System.out.println(++number); } } } 4.Convert the following statement into if condition res= ((a+b>c || b+c>a || c+a>b)?10:25); 5. String str= Computer ; System.out.println(str.replace( a , Trial )); str= Applications ; System.out.println(str.replace( a , Trial )); 6. Define a constructor. Explain with an example parameterised constructor. 7. String str="ICSE COMPUTER APPLICATIONS"; System.out.println(str.substring(str.length()-1,str.length())); 8. Write the output of the following code snippet int i=1, f=5; do { f=f*i; i++; System.out.println(i+ " " +f); }while(i<=3 && f<=100); System.out.println(i+ " " +f); 9. void main(int opn) { switch (opn) { case 1: System.out.println("Computer"); break; case 2: This paper consists of 4 printed sides. Computer Application/Paper 1/Page 3 of 4 System.out.println("Applications"); case 3: System.out.println("ICSE"); default: System.out.println("Examination 2014-15"); break; }} What will be the output of the code if opn is a) 1 b)2 c)3 d)-1 10. Differentiate between static and non static data members. SECTION B (60 Marks) Attempt any four questions from this Section. The answers in this Section should consist of the Programs in either BlueJ environment or any program environment with Java as the base. 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. Q. 4. Write a program in Java to accept a string and convert each odd position character to Upper Case and each even position character to Lower case. Sample input : India IS my CouNtry Output : InDiA Is mY CoUnTrY Q. 5. A wholeseller offers discount to his retailers according to the following tariff: Goods Worth Discount Upto Rs. 5000 5% Greater than 5000 and upto 10000/10% Greater than 10000 and upto 20000 15% Greater than 20000/20% Write a program to accept the total sales and calculate the discount for purchasing goods. Program to display the output as shown below: Amount : Rs. 7500 Discount offered : 10% Discount Amount : Rs. 750 Amount Payable : Rs. 6750 This paper consists of 4 printed sides. Computer Application/Paper 1/Page 4 of 4 Q. 6. Design a class to overload a function area() as follows : use function overloading to compute the area of a cube, a sphere and a cuboid a) double area(double a , double b, double c) with three double arguments, returns the area of a scalene triangle using the formula: area = where s = b) double area(int a , int b, int height) with three integer arguments, returns the area of a trapezium using the formula: area = height (a+b) c) double area(double diagonal1 , double diagonal2) with two double arguments, returns the area of a rhombus using the formula: area = (diagonal1 * diagonal2) Q. 7. Write a program in Java to check a number entered by the user is a Happy number. A happy number is a number in which the eventual sum of the square of the digits of the number is equal to 1. Example: Hence, 28 is a happy number. Q. 8. Write a program in Java to combine two integer arrays into a third array and sort the third array in descending order using Selection Sort technique. Example: A [] = {4,55,6,7,88,34,23,56}; B [] = {8,9,7,5,4,-1,43} C []={88,56,55,43,34,23,9,8,7,7,6,5,4,4,-1} Q.9. Write a program in Java to display the following patterns a) b) 1 B L U E 2 3 B L U E 4 5 6 B L U 7 8 9 10 B L 11 12 13 14 15 This paper consists of 4 printed sides. B J

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Darshan Deshpande

(20)

Tashi Lhamo

(10)

Bhavesh Choudhari

(7)

Advait

(5)

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

sportysags chat