Trending ▼   ResFinder  

ICSE Board 2008 : Computer Applications

3 pages, 31 questions, 33 questions with responses, 72 total responses,    0    0
Sdfg Sdfg
 (CLICK here to add Text) 
+Fave Message
 Home > sdfg >   F Also featured on: icse

Formatting page ...

ICSE - 2008 COMPUTER APPLICATIONS SECTION - A Attempt all questions from this section. Question 1. (a)Mention any two attributes required for class declaration.. (b) State the difference between token and identifier. (c) Explain instance variable. Give an example. (d) What is inheritance and how is it useful in Java? (e) Explain any two types of access specifier. 10 Question 2. (a)What is meant by an infinite loop? Give an example. (b) State the difference between = = operator and equals( ) method. (c) Differentiate between actual parameter and formal parameter. (d) What is the use of exception handling in Java? (e) Differentiate between base and derived class. 10 Question 3. (a) Explain the function of each of the following with an example: i) break; 4 (ii) continue; (b) Convert the following segment into equivalent for loop { int i, x = 0; while(i<=20) 2 System.out.print( i + ); x++; } (c) If a = 5, b = 9 calculate the value of a + = a++ - ++b + a 2 (d) Give the output of the following expression. (i)If x = -9.99, calculate Math.abs(x); (ii)If x = 9.0, calculate Math.sqrt(x); 2 (e) If, String x = Computer ; String y = Applications ; 4 What do the following functions return for; (i)System.out.println( x.substring(1, 5) ); (ii)System.out.println( x.indexOf( x.charAt(4))); (iii) System.out.println( y + x.substring(5)); (iv)System.out.println( x.equals(y)); (f) If, array[ ]={ 1, 9, 8, 5, 2 }; (i)What is array.length( )? (ii)What is array[2]? 2 (g) What does the following mean? Employee staff = new Employee( ); 2 (h) Write a Java statement to input / read the following from the user using the keyboard. 2 (i) Character. (ii) String. ICSE 2008 Board Debugging Shell

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sdfg Sdfg

(21)

Manav Thakkar

(18)

Soham Bhatt

(6)

Sk154

(4)

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

ICSE Q&A - Ask and Answer
sdfg chat