Page 78 - Viva ICSE Computer Studies 8 : E-book
P. 78

E.  Answer the following questions.

                         1.  What is a class?
                         2.  What are operators? Explain relational operators.

                         3.  What is a variable? How is variable diff erent from constant?
                         4. Explain diff erent types of constants.

                         5.  Explain class declaration with an example.


                     Building Values and Life Skills


                     Kareena has written a program in Java. Suggest her the way to compile and run the program.




                     Testing Knowledge


                     Sheena is writing a program to calculate the average of fi ve subjects. Which operator will she use to
                     perform the task at hand?



                     Linking Knowledge


                     Science: Give a few examples of a class and objects falling under the subject of Science.







                                 Lab Fun


                      Write a Java program to print your name, class, roll number and result.































                     66
   73   74   75   76   77   78   79   80   81   82   83