Home works and Assignments Online

Home » Class XI » IP XIA,D

IP XIA,D

Date of submission: 04.01.2011

Mrs. Hema C.N., PGT, Comp. Sc.

    1. Why do we need methods/ functions?
    2. What are comments? In java which symbol is used for commenting?
    3. What do you mean by method prototype?

      4. Write the prototype for defining the following method.

    “ The method FindInterest ( ) takes 3 float type variables p, r and t as  

      arguments and returns  a double type variable.”   

     5. Difference between passing by value and passing by reference?

    6. Define a method validate( ) that will accept age of a person as argument  and

             returns true if the age is in between 18 and 40 otherwise it returns false.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: