ICSE Computer Application, Sample Question Paper 1, Class XII

Add to Favourites
Post to:

ICSE -2006 COMPUTER APPLICATIONS SECTION A Attempt all questions from this section. Question 1. (a) (b) (c) (d) (e) Define Encapsulation. 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? 10 Question 2. (a) State the two kind of data types. (b) Write the corresponding expressions for the following mathematical operations:-(i) a2 + b2 (ii) z = x3 + y3 – xyz 10 (c) Define an impure function. (d) Differentiate between if and switch statements. (e) What will be the output for the following program segment? String s = new String(“abc”); System.out.println(s.toUpperCase( )); Question 3. (a) What is meant by private visibility of a method? (b) Find and correct the errors in the following program segment:-int n[ ] = ( 2, 4, 6, 8, 10 ); for(int i=0; i<=5; i++) System.out.println(“n[ ” + i + “ ] = ” + n[i] ); (c) Explain function overloading with an example. (d) Find the output of the following program segment, when: (i)val = 500 (ii)val = 1600 int val, sum, n=550; sum = n + val > 1750 ? 400 : 200; System.out.println(sum); (e) What is a default constructor? (f) What will be the output for the following program segment? int a = 0, b = 30, c = 40; a = --b + c++ + b; System.out.println(“a = ” + a); (g) Differentiate between compareTo( ) and equals( ) methods. (h) What is a package? Give an example. (i) Explain the function of a return statement. 22 42 22 222 ICSE 2006 Board – Debugging Shell SECTION B Attempt any four questions from this section. The answer 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 description/Mnemonic codes such that the logic of the program is clearly depicted. Question 4. Question 5.Write a program to calculate and print the sum of odd numbers and the sum of even numbers 15 for the first n natural numbers. The integer n is to be entered by the user. A cloth showroom has announced the following festival discounts on the purchase of items, 15 based on the total cost of the items purchased:-Total costDiscount ( in percentage ) Less than Rs 20005% Rs 2001 to Rs 500025% Rs 5001 to Rs 1000035% Above Rs 1000050% Write a program to input the total cost and to compute and display the amount to be paid by the customer after availing the discount. Consider the following statement :-“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”. Write a program that output the results of the following evaluations based on the number entered by the user. (i)Natural Logarithm of the number (ii) Absolute value of the number (iii) Square root of the number (iv) Random numbers between 0 and 1. The marks obtained by 50 students in a subject are tabulated as follows:-NameMarks 15 Question 6. Question 7. 15 Question 8. 15 .... ....Write a program to input the names and marks of the students in the subject. Calculate and display:-(i) The subject average marks ( subject average marks = subject total /50 ) (ii) The highest mark in the subject and the name of the student (The maximum marks in the subject are 100) Question 9. Write a program to accept 15 integers from the keyboard, assuming that no integer entered is 15 a zero. Perform selection sort on the integers and then print them in ascending order. ICSE 2006 Board – Debugging Shell

Description
This content is useful for ICSE Students

Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
62 Followers

Your Facebook Friends on WizIQ

Explore Similar Courses

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect