0% found this document useful (0 votes)
67 views4 pages

Icse 2006 Computer Application Class 10

Icse 2006 Computer Application Class 10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
67 views4 pages

Icse 2006 Computer Application Class 10

Icse 2006 Computer Application Class 10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
\ fe ars COMPUTER APPLICATIONS - 2006 Y é6ars uestion Question (Theory) Paper.com Paper.com (Two Hours) per. 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 speni 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 parts of questions are given in brackets []. SECTION A (40 Marks) Avempt all questions. Question 1 0) (@ Define encapsulation. (b) Explain the term object using an example. (© Define a variable, (@ What is a wrapper class? Give an example. (© What is the purpose of the new operator? Question 2 0) (@ State the two kinds of data pes. (6) Write the corresponding expressions for the following mathematical operations: @r+b pzenttye- 2 (z=xty : (©) Define an impure fiction. (d) Differentiate between ifand switch statements, (©) What will be the outp ut for the following program segment? String s = new String(“abe"); System. out printin{s.toUpperCase()); Question 3 (2) What is meant by private visibility ofa method? (b) Find and correct the errors in the following program segment:- int nf ] = (2,4.6,8,10), for (int i= 0;1<= 5,144) System.out.println("nf" +i+"] (© Exphain fiaetion overloading with an example. (@) Find the output of the following program segment, when: (i) val = 500 int val, sum, n = 550; sum=n + val > 1750? 400 : 200; System.out.printle(surn); Gi) val= 1600 {nt val, sum, n = 550; gum =n + val>1750? 400 : 2005 System.out printin(sum); (@) What is a default constructor? (8 What will be the output for the following program segment? int 2=0,b = 30, ¢= 40; a=" bte" +b; System.out.println("a =" + 2); (f Differentiate between compareTo( ) and equals( ) methods. (b) What is a package? Give an example. (@ Explain the function of a rena statement. Y uestion Paper.com Ouesti QI Q (4 oO al y (21 1 2 Q] SECTION B (60 Marks) uestion Paper.com Years Question 4 Write a program to calculate and print the sum of odd numbers and the sum of even 05] numbers for the first n natural numbers. “The integer n is to be entered by the ser. Question 5 A cloth showroom has announced the following festival discounts on the purchase of 05] items, based on the total cost of the items purchased:- Total cost Discount (in Percentage) Less than Rs. 2000 % Rs, 2001 to Rs, 5000 25% Rs, 5001 ta Rs. 10000 35% Above Rs. 10000 50% Write a program o input the total cost and to compute and display the amount to be paid by the customer after availing the discount, Question 6 Consider the following statement:- 05] "January 26 is celebrated as the Republic Day of India”. Write a program to change 26 to 15, January to August, Republic to independence and finally print “August 15 is celebrated as the Independence Day of India” Question 7 5] Write a program that outputs the results of the following evaluations based on the mumber entered by the user. ( Natural logarithm of the number Gi) Absolute value of the number Gil) Square root of the number (iv) Random numbers between 0 and 1. Question 8 The marks obtained by 50 students in a subject are tabulated as follows: [Name | Marks O13) ‘Write a program to input the names and the marks of the students in the subject. Calculate and display (The maximum marks in the subject are 100) () The subject average marks ( subject average marks = subject otal / 50 ) Gi) The highest mark in the subject and the name of the student. Question 9 Write aprogram to accept 15 integers from the key board, assuming that no integer entered 1s) is a zero, Perform selection sort on the integers end then print them in ascending order. Y gars uestion Paper.com

You might also like