ICSE 2010, Computer Application, Sample Question Paper 11, Class X

Add to Favourites
Post to:

http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com Sample Paper – 2010 Class – X Subject – Computer Application Answer to this paper must be written on the paper provided separately. 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) Attempt ALL questions. Q1. a) Differentiate between Pure and impure functions. [10] b) What is a constructor? What does it do? c) How is a ordinary compilation process different from Java compilation? d) Name four packages available in Java? e) What does a class encapsulate? Q2. a) Explain„?‟ operator. [10] b) How the visibility modifiers protected differ from private? c) In java various Math functions are defined in which class and under which package? d) Mention two different styles of expressing a comment in a program. e) What do you mean by temporary instances of a class? Q3. a) If a = 5, b=9 calculate the value of a+= a++ -++b +a [2] b) What will be the output of the following code: [2] import java.io.*; public class a { public static void main( String args[ ] ) throws IOException { int i,j=5; for(i=0;i<5;i++) j += i; System.out.println( j); } } c) What will be the output of the following code: [2] String s = “second revision”; String s1 = “examination”; s = s.replace(„s‟,‟r‟); s1 = s + s1; System.out.println( s ); System.out.println( s1 ); d) Write the corresponding Java expressions for the following: -[4] i) 2 -ye2y + 4y ii) 5a + b (x + y )5 Q4. a) What will be the output of the following: [4] String S1 = "Hi"; String S2 = "Hi"; String S3 = "there"; String S4 = "HI"; System.out.println(S1 + "equals" + S2 + "→" + S1.equals(S2)); System.out.println(S1 + "equals" + S3 + "→" + S1 .equals(S3)); System.out.println(S1 + "equals" + S4 + "→" + S1 .equals(S4)); System.out.println(S1 + "EqualsIgnoreCase" +S4 + "→" + S1.equalsIgnoreCase(S4)); b) Write the function of each of the following with an example: [4] i) endswith( ) ii) lastIndexOf( ) http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com c) What is size of boolean data type? [1] d) Which OOP principle implements function overloading? [1] No. of Printed Pages : 02 #1 SECTION B ( 60 Marks ) Attempt any four questions from this Section. The answers in this section should consist of the program in Blue J environment with Java. Each program should be written using Variable descriptions /Mnemonics Codes such that the logic of the program is clearly depicted. Flow-charts and Algorithms are not required. Q5. Using a switch statement, write a menu driven program to convert a given temperature from Fahrenheit to Celsius and vice versa. For an incorrect choice, an appropriate error message should be displayed. [15] (HINT : C = 5 9 × (F − 32) and F = 1.8 × C + 32) Q6. Write a program to compute and display the sum of the following series:-[15] i) 1! + 2 ! + 3 ! + 4! + ………….N ! ii) 1 – 3 + 5 – 7 + 9…………………….. -19 Q7. Write a program to input a string (in capital letters) and do the following: -[15] i) Find the total no. of vowels in the string. ii) Input a character from the user and find the no. of times it is present in the string. Example: Input : Enter the string : GSIS OOTY Enter a character : S Output : Total no. of vowels : 3 No of times of S : 2 Q8. Design class Bank with the following descriptions : [15] Data members : name : to store the name of the depositor acno : to store the account number type : to store type of the account bal : to store the balance amount in the account Member functions : Bank( ) : constructor to assign the data members as 0 or null depo( ) : to deposit an amount withdraw( int ) : to withdraw an amount after checking the balance ( Minimum balance should be Rs. 500 ) print( ) : to print the all the details Q9. Write a Program to declare an array of 100 integers and get the numbers from the user. Sort the first 50 numbers from the array in ascending order and sort the next 50 numbers in descending order. Display the sorted array. [15] Q10. Write a program to accept numbers in a 4x4 matrix, then print the all prime numbers present in the matrix with array Index value. [15] http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com SAMPLE DATA: INPUT: 16 15 1 2 6 4 10 14 9 8 12 5 3 7 11 13 OUTPUT: PRIME ROW INDEX COLUMN INDEX 2 0 3 3 3 0 5 2 3 7 3 1 11 3 2 13 3 3 Paper Submitted By: Mr. Sumanto Dutta Email Id : sumanto_d@yahoo.com Telephone No. 04232550371

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