Trending ▼   ResFinder  

ICSE Prelims 2018 : Computer Applications

2 pages, 3 questions, 0 questions with responses, 0 total responses,    0    0
arokyanathan
  
+Fave Message
 Home > arokyanathan >

Formatting page ...

ST JUDE S PUBLIC SCHOOL AND JUNIOR COLLEGE, KOTAGIRI COMPUTER APPLICATIONS SECTION A: MARKS :100 Question 1: (a) Name any four tokens of Java. [2] (b) Give the difference between actual parameter and formal parameter. [2] (c) What is an identifier? [2] (d) Write an expression in Java for . [2] (e) What is the result produced by 2 10*3 + 100/11? Show the steps. [2] Question 2: (a) What is the difference between local variable and instance variable? [2] (b) int x =20, y = 10, z; What is the value of z in z = ++x * (y ) y ?Show the steps [2] (c) What is the purpose of default in a switch? [2] (d) Give the difference between linear search and binary search. [2] (e) What will be the output of the following code? float x = 7.87; System.out.println(Math.ceil(x); System.out.println(Math.floor(x); [2] Question 3: (a) State the difference between if-else if ladder and switch...case. [2] (b) Explain the concept of constructor overloading with an example. [2] (c) What will be the output of the following program segments? (i) String s = application ; int p = s.indexOf( a ); System.out.println(p); System.out.println(p+s); [2] (ii) String st = PROGRAM ; System.out.println(st.indexOf(st.charAt(4))); [2] (iii) int a = 0; if(a>0 && a<20) a++; else a-- ; System.out.println(a); (iv) int a= 5, b = 2,c; if (a>b || a ! = b) c = ++a+--b; System.out.print(c+ +a+ +b); (v) int i = 1; while(i++<=1) { i++; System.out.print(i + ); } System.out.print(i); (d) (e) (f) [2] [2] [2] Differentiate between isUpperCase(char) and toUpperCase(char). [2] What is the difference between a constructor function and a member function of a class? [2] What is the difference between a static member function and a member function which is not static ? [2] SECTION B (60 Marks) Question 4: class Name : salarycalulation Data members: name String Basicpay, specialalw, conveyancealw, gross, pf, netsal, annualsal (all double data type ) Member methods: (i) salarycalulation () : a constructor to assign name of the employee(name), basic salary(basicpay), of your choice and conveyance allowance (conveyancealw) as Rs 1000.00 Question 5: Question 6: Write a menu driven(switch case) program to find the sum of the following series depending on the user choosing 1 or 2 1. S=1/4+1/8+1/12.........upto n terms 2. S=1/1!-2/2!+3/3!.......upto n terms where ! stands for factorial product of all integers from 1 to that number, e.g. 5! = 1 x 2 x 3 x 4 x 5 [15] Question 7: Write a program to accept a sentence and convert and print number of consecutive letter pairs that exists. Eg: IT WAS NOT TOUGH FOR HIM TO RESIDE ABOVE THE HILL output: number of consecutive pair of characters: 6 Question 8 : Write a program to create an array to store 10 integers and sort them using bubble sort print the largest integer and the smallest integer in that array. [15] Question 9: [15]

Formatting page ...

Related ResPapers
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 (M. P. Birla Foundation Higher Secondary School (MPBFHSS), Kolkata)
by dimpy97 
ICSE Class X Prelims 2025 : Computer Applications (Smt. Lilavatibai Podar High School (LPHS), Mumbai)
by tannystudiez 

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

arokyanathan chat