Trending ▼   ResFinder  

ICSE Prelims 2016 : Computer Applications (Saifee Golden Jubilee English Public School, Kolkata)

6 pages, 36 questions, 31 questions with responses, 42 total responses,    0    0
Sumbul Ahmad
Saifee Golden Jubilee English Public School, Kolkata
+Fave Message
 Home > tyslene >   F Also featured on: School Page icse_prelims

Formatting page ...

SELECTIONS CLASS X 2015-2016 COMPUTER APPLICATIONS (Theory) (Two hours + 15 mins) 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 question 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 Question 1. (a) Java is a platform. Expound. [2] (b) Name any two characteristic features of Java. [2] (c) What is protected access specifier. [2] (d) Explain what is ArrayOutOfBounds error. [2] (e) What are wrapper classes. [2] Question 2. (a) Name the Java keyword that: (i) is used for dynamic memory allocation to reference data types (ii) is used to declare class variables. [2] (b) Differentiate between : i) Call by reference and Call by Value. [2] ii) mutable and immutable functions. [2] iii) class variable and instance variable. [2] (c) What is the character set followed by java? How is it different from ASCII character set ? [2] Question 3. (a) Explain the following statement. [2] public static void main(string args[]) (b) Write the java expression for 5+3e2-a2df [2] (c) String s1="IT IS FUN LEARNING"; [4] (d) String s2 = "COMPUTER APPLICATIONS"; (i) System.out.println(s1.substring(0).concat(s2.substring(0,4)) (ii) System.out.println(s2.substring(2,10)); (iii) System.out.println(s2.replace('O', 'o')); (iv) System.out.println(s2.charAt(s1.indexOf('U') + s2.indexOf('E'))); (c) Write a Java statement to: [2] (i) Extract the second last character of a word stored in the variablewrd. (ii) Check if the second character of a string 'str' is in uppercase Question 4. (a) What will the following functions return when executed? [2] (i) Math.pow (4, Math.sqrt(9)) (ii) Math.rint(62.27) (b) State the function of hasNextLine() with example. [2] (c) Consider two arrays int m[]={1,2,3,4,5,11,12,15,16} and int n[]={1,0,6,9,4,8,2,5} what will be the value of given elements: [2] i) m[2+2] ii) n[m[2]] (d) Complete the blanks with appropriate statements: [4] int beg = (1) ; int end= (2) ; int mid; int index=-1; while( (3) ) { mid= (4) ; if( (5) ) { index= (6) ; return index; } else if ( (7) ) begin= (8) ; else end=mid-1; } return index; 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. Question 5. [15] A class PigLatin has been defined to find piglatin of a string,which is extracting all the characters from the front of a string till a vowel is not found.Concatenate the extracted characters to the end of the remaining string and add a AY .Some members of the class are given below: Eg: Input : LONDAY Output : ONDAYLAY Class name : PigLatin members/instance variables : strn : string to store the entered string. Member functions/methods : PigLatin ( ) : constructor to assign \0 to strn PigLatin(string) : constructor to assign str to strn PgLatn () : to find and display the piglatin of the string entered Question 6. [15] Define a class TaxPayer having the following description Data members/instance variables : pan : to store the personal account number name : to store the name taxincome tax : to store the taxable income : to store the tax Member functions : TaxPayer() : default constructor void input() : to accept the pan, name and taxable income void accept() : calculate the tax for the person as per the given conditions. Total Annual Taxable Income Tax Rate Upto 100000 No Tax From Rs. 100001 to Rs. 150000 Rs. 150000 10% of the income exceeding From Rs. 1500001 to Rs. 250000 exceeding 150000 Above Rs. 250000 exceeding 250000 Rs. 5000 + 20% of the income Rs. 25000 + 10% of the income void display() format : to display the details of the TaxPayer as per the given PAN NUMBER NAME ____________ ______ TAXABLE INCOME _______________ TAX _______ Question 7. [15] Write a menu-driven program i) ii) to input two numbers x and y and print their HCF. Eg. If x = 9 and y = 6, then HCF or GCD is = 3. to input two numbers and find out whether they are amicable or not. Amicable numbers are those numbers whose sum of divisors are equal to the other number respectively. Eg. 220 = 1+2+4+5+10+11+20+22+44+55+110 = 284 284 = 1+2+4+71+142 = 220 Question 8 [15] WAP to input an array that contains positive, negetive and zero. Swap the positive element at the beginning of the array followed by negetive without changing their sequence e.g: input 3, 5, -5, 7, 0, -2, -1, 4, 8, -3 Output : 3, 5, 7, 4, 8, 0, -5, -2, -1, -3 Question 9 [15] WAP to define class to overload a function named perimtr() as follows: float perimtr(float a) with one float argument returns the perimeter of the square using the formula perimeter=4*a float perimtr(float a, float b) with two float arguments returns the perimeter of the rectangle using the formula perimeter=2(a+b) float perimtr(Int r) with one float argument returns the perimeter/circumference of the circle using the formula perimeter=2 r Question 10 [15] WAP to initialize two arrays empName and spouseName of size n each. empName stores names of employees and spouseName stores the name of the spouse. Sort the array empName in descending order re-arranging the corresponding positions of the spouseName as well .Display the arranged arrays. Define necessary functions.

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2025 : Computer Applications (Aurobindo Patha Bhavan, Coochbehar)
by antara84 
ICSE Class X Prelims 2025 : Computer Applications (GS Shetty International School (GSSIS), Mumbai)
by venisha211 
ICSE Class X Prelims 2025 : Computer Applications (St. Augustine's Day School, Kolkata)
by ankushkum 
ICSE Class X Prelims 2025 : Computer Applications (Mary Immaculate School (MIS), Berhampore, Murshidabad)
by itsxoolkid 

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sidhant

(8)

Samriddha Roy

(7)

Rishabh Rathi

(7)

Ritwik Lal

(6)

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

tyslene chat