Trending ▼   ResFinder  

ICSE Prelims 2017 : Computer Applications (Stanes ICSE School, Coimbatore)

3 pages, 25 questions, 23 questions with responses, 43 total responses,    0    0
Nsk
stanes,  Coimbatore 
+Fave Message
 Home > nskstanes >   F Also featured on: School Page

Formatting page ...

Stanes School AFFILIATED TO COUNCIL FOR THE INDIAN SCHOOL CERTIFICATE EXAMINATION _____________________________________________________________ COMPUTER APPLICATIONS (Theory) (Two hours) 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 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) Attempt all questions Question - 1 a) What is meant by inheritance? Mention two advantages of it. b) What are the advantages of function overloading? c) What is the difference between private and protected access specifiers? d) What is impure function? Give an example. e) What is the difference between break and continue. [2] [2] [2] [2] [2] Question - 2 a) What is data type ? Give two examples. [2] b) What will be the output of the following program segment? [2] String name[] = { Computer , Applications }; System.out println(name[0].length()); System.out println(name.length); c) What will be the result stored in x and y after evaluating the following: [2] int x = -2, y = 5 1) x = ++y x; 2) y += x; d) What will be the output of the following: [2] int a[]={2,4,16,8}; for (int i=0;i<=1;i++) { int temp=a[i]; a[i]=a[3-i]; a[3-i]=temp; System.out.println(a[i]+"\t"+a[3-i]+"\t"); } e) Write function prototype for Sting that return a boolean value and takes two characters as parameters. [2] Question - 3 a) Write the following statement using switch-case construct: if(ch== a ) grade = A ; else if(ch== b ) grade = B ; else if(ch== c ) grade = C ; else grade = D ; b) Write a Java statement to convert String of digits to double type. c) Convert the following segment into equivalent while loop for(int i=10; i>=1; i=i-2) System.out.println(i); d) If x and y are int type variables, what will be the result of the expression x % y when x=-12 and y=-11 e) What is the difference between String and integer? 1 [2] [2] [2] [2] [2] NSK/ICSE2017/Trial2 f) What is a package? g) What will be the output of the following codes: char chars[] = {'a','b','c'}; String s1 = new String(chars); String s2 = "abc"; System.out.println(s2.compareTo(s1)); System.out.println(s2.equals(s1)); System.out.println(s1.length()); System.out.println(s1.concat(s2)); h) Give the output of the following expressions: a. If x = 8.99, calculate Math.floor(x); b. If x = 9.99, calculate Math.ceil(x); i) int n= -35; if(n>0 && n<20) n++; else n--; System.out.println(n); [2] [4] [2] [2] SECTION B (60 Marks) Attempt any four questions from this Section. The answers in this Section should consist of the Programs in either Blue J 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 4 Define a class Employee described as below Data members: name, basicSalary, da, ta, pf, grossSalary, incomeTax Member methods: Employee() Accept() Display() Calc() : Default constructor : To accept name and Basic Salary : To display all the details in a tabular form : To calculate the Gross Salary for the month. BasicSalary DA TA PF >=20000 50% 12% 10% <20000 and >=10000 51% 11% 8% <10000 52% 10% 7% grossSalary=(basicSalary + da + ta) pf Compute() : to compute the annual incomeTax as per the following table. Income Slab Income up to Rs 2,50,000 Income from Rs 2,50,000 Rs 5,00,000 Income from Rs 5,00,000 10,00,000 Income more than Rs 10,00,000 Tax Rate No Tax 10% 20% 30% Surcharge: 12% of income tax, where total income exceeds Rs.1 crore. Cess: 3% on total of income tax + surcharge. Write a main method to create object of the class and call the above member methods. 2 NSK/ICSE2017/Trial2 Question 5 Write a program to computerize the billing operation of a Taxi company based on the following conditions: Category Base Fare Distance Fare Ride Time Fare 6 per km till 10 km Micro 40 1 per min 12 per km after 10 km Mini 40 10 per km 1 per min Sedan 40 12 per km 1 per min A tax of 15% is charged on the sum of charges and rent. Print the bill for a customer. Question 6 Write a Java program to input a string and print the frequency of each character of the string. Example: Input: COMPUTER APP Output: A occurs 1 times C occurs 1 times E occurs 1 times M occurs 1 times O occurs 1 times P occurs 3 times R occurs 1 times T occurs 1 times U occurs 1 times Question 7 Write a program to input 10 integers and arrange them in ascending order using Selection Sort technique. Display the sorted numbers with the average value. Question 8 Write a menu driven program to perform the following.(Use methods) Input a number and check whether the number is Neon number. A number is said to be a neon number if sum of digits of square of a number is equal to number itself. Example: Input : 9 Output : 9 is a Neon number (9*9 = 81; 8+1=9) Find the smallest digit in a number entered by the user. Example: Input : 5342 Output : Smallest digit is 2 Question 9 Design a class to overload a function series() as follows. (Menu driven) 1! 2! 3! n! double series(int n) : ---- + ---- + ---- + . . . + ---1 2 3 n 1! 4! 7! 10! ---- + ---- + ---- + ---- + upto n terms a2 a5 a8 a11 (Use a separate method double fact(int x) to find the factorial of a number) double series(int a, int n) 3 : NSK/ICSE2017/Trial2

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2025 : Computer Applications (St. Michaels School, Durgapur)
by biswaa 
ICSE Class X Prelims 2025 : Computer Applications (Mary Immaculate School (MIS), Berhampore, Murshidabad)
by itsxoolkid 
ICSE Class X Prelims 2025 : Computer Applications (Aurobindo Patha Bhavan, Coochbehar)
by antara84 
ICSE Class X Prelims 2025 : Computer Applications (St. Augustine's Day School, Kolkata)
by ankushkum 

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sankalp Mukherjee

(9)

Ayush

(8)

Sdfg Sdfg

(7)

Bubai Maity

(6)

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

nskstanes chat