0% found this document useful (0 votes)
139 views3 pages

Icse Class 9 Computer Applications 2018

Uploaded by

buddhadebbanik29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
139 views3 pages

Icse Class 9 Computer Applications 2018

Uploaded by

buddhadebbanik29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
Std. Final Term Examination 2017-2018 : 1x Subject : COMPUTER APPLICATIONS Full Marks : 100 Time : SECTION A (40 Marks) Question 1 a) What do you mean by fall through programming technique. b) Explain the term ‘assignment’ with an example. c) Explain infinite loop with an example. d) What is Inheritance. e) Name the package used for Scanner ? Question 2. Write difference among the following functions: - (a) CharactertoUpperCase() and Character.toLowerCase() (b) State the difference with an example between a rint() and random() (c) CharacterisLetter() and CharacterisLetterOrDigit() (@) formal and actual parameters ? (2) max() and min() Question 3. Write output of the following for(int ‘System.out printin() < 6; i++) int n=243; while(n>0) { System.out.printin(n%10); nen/10; ) char System.out.printin(x+x) System. out printin({int)x+(int)x); char ch="r; System. out printin(Charcter.isLetter(ch)); int 10; int c=(++a*b/2)*4; System.out print(a+"it"+<); [2x5=10] Question 4 Convert the following loops [2¥ex4=10] a) forli=t0;is=1;i-) ‘System.out.printin(). (convert in do-while loop) b) int n-67; while(n>0) { rem=n%10; ‘System.out printin(rem); 10; ) (convert in for loop) ©) int das; do { ‘System.out printin(d) d=d/10; ) while(d>=46); (convert into while) 4d) write output of the following int 1,0; for(ra4;r>=1 -) { for(e=3;e>=1 jc) { System.out print(c); ) System.out.printin(); ) SECTION B (60 Marks) Attempt any four questions from this Section. Each program should be written using Variable descriptions/Mnemonic Codes such that the logic of the program is clearly depicted. Question 1. [15] Create a class Salary that is described as belo\ Class Name Salary Data members basicPay, specialAlw, conveyanceAlw, gross, pf, netSalary, AnnualSal(All double type data) Member methods Accept) = to accept annual salary from the user SalaryCall)- to calculate other allowances and salaries as given: specialAlw = 25% of basic salary. gross = basicPay + specialAlw + conveyanceAlw. netSalary = gross - pf. display() to special allowance, gross, netsalary and the annual salary in different lines Question 2. [15] Design a class to pattern in which the uer will enter and option among 1 to 3 If option is 1 print | If option is 2 print | If option is 3 print 12345 1 1 2345 10 23 345 101 456 45 1010 78910 5 10101 Question 3. 115] Write a program to accept 3 different name sand print the largest name with its length Question 4. [15] Write a program to accept any 1 option among ‘a’ or Ip and an individual number. If the option is ‘a’ then check number is Armstrong or not. If the option is ‘p' then check number is palindrome or not. Question 5. [15] Write a program to accept a word from the user and change the case of the alphabets in the given word as in example. Enter - RayBan Output - rAYDAN Question 6. 115] Write aprogram to accept any one option among 1 or 2. If option is 1 print sum of following series 214 4! + 6l.....ill nl If option is 2 print sum of following series 0434841 54.....uill

You might also like