Page 7 - IP
P. 7

2.   (a)     Identify the invalid variable names. Sate the reason if invalid.                1

                   (i)    Marks Unit


                   (ii)   Product_1


                   (iii)   Sales123

                   (iv)   2Marks



           (b)     Write the data type of variables that should be used to store :                 1

                   (i)    Marks of students


                   (ii)   Grades of students (Grade can be ‘A’ or ‘B’ or ‘C’)



           (c)     Write  examples  of  any  two  properties  and  any  two  methods  of
                   jButton component.                                                              2



           (d)     Write the purpose of HTML. Distinguish between <P> tag and <BR>
                   tag.                                                                            2




           (e)     Distinguish  between  ComboBox  and  ListBox.  When  would  you

                   prefer using them over Radiobutton and Checkbox ?                               2


           (f)     Rewrite the following code using switch statement :                             2


                              if (code == ‘A’)

                                allowance = 3500;
                   else if (code ==’B’)

                                allowance= 3200;

                   else

                                allowance =2000;


      90                                             3                                        P.T.O.
   2   3   4   5   6   7   8   9   10   11   12