| Hi, Guest [ Already a member ? Login ] [ New User Registration! ] | India | CBSE | IGNOU | Friends | Users Online : 1967 | Friday 22nd of August 2008 01:30:32 AM |
![]() |
|
ICSE Question Bank ICSE Guess > ICSE Papers > Question Bank > Class X > 2006 > Computer Applications General Instructions
SECTION A (40 Marks) Question 1 [10] (a) Define encapsulation. (b) Explain the term object using an example. (c) Define a variable. (d) What is a wrapper class? Give an example. (e) What is the purpose of the new operator? Question 2 [10] (a) State the two kinds of data types. (b) Write the corresponding expressions for the following mathematical operations:-
(c) Define an impure function. (d) Differentiate between if and switch statements. (e) What will be the output for the following program segment? Question 3 (a) What is meant by private visibility of a method? [2] (b) Find and correct the errors in the following program segment:- (c) Explain function overloading with an example. [4] (d) Find the output of the following program segment, when:
(e) What is a default constructor? [2] (f) What will be the output for the following program segment? (g) Differentiate between compareTo( ) and equals( ) methods. [2] (h) What is a package? Give an example. [2] (i) Explain the function of a return statement. [2] SECTION B (60 Marks) Attempt any four questions from this Section. Question 4 Write a program to calculate and print the sum of odd numbers and the sum of even numbers for the first n natural numbers. Question 5 A cloth showroom has announced the following festival discounts on the purchase of items, based on the total cost of the items purchased:- Total cost Discount (in Percentage)
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. [15] Question 6 Consider the following statement:- Question 7 Write a program that outputs the results of the following evaluations based on the number entered by the user. Question 8 The marks obtained by 50 students in a subject are tabulated as follows:- Name Marks
Write a program to input the names and the marks of the students in the subject. Calculate and display:-
Question 9 Write a program to accept 15 integers from the keyboard, assuming that no integer entered is a zero. Perform selection sort on the integers and then print them in ascending order. [15]
|
||||||||||||||||||||||||||||
|
About Us - Success Stories - Guest Book - Education Forum - Contact Us - Help - Links - Advertise With Us - Terms of Service - Privacy Policy Add ICSE Guess.com to your online bookmark site © 2003-2007, ICSEGuess.com Website Designing, Website Development, Search Engine Promotion, Web Hosting By: DreamzSop Advertising Private Limited |