Page 39 - IP
P. 39

(f)    Many of the programming brains has shifted their focus from Proprietary software  4
                          to Free and Open software. Mention any two freedom offered by Free software.
                          Going  with  the  flow,  Sandhya  has  downloaded  a  software  from  the  internet
                          which can be freely distributed and used by anyone but the source code is not
                          available. Is it Freeware or free software? Justify your answer as well.
                          Similarly Premjith wants to install a software on his system that can help him to
                          create, edit and save office documents  but  he does  not  want  to  purchase the
                          software. Suggest him a good software for the same.

                  Ans:    Any two freedom offered by Free software are:
                          The freedom to run the program for any purpose.
                          The freedom to redistribute copies.
                          (1  Mark for each correct freedom)

                          It is Freeware as freeware software are freely distributed and used by anyone
                          but the source code is not available while source will be available with Free
                          software.
                          (1  Mark for correct answer)

                          Openoffice.org
                          (1  Mark for correct answer)

          2.      (a)      Ruby, a class XI student has just started learning java programming. Help her in  4
                          the following:
                          i. Explain her the concept of variable and data type by suitable example.
                          ii. Help her in understanding the difference between assignment operator and
                          comparison operator with the help of appropriate example.

                  Ans:   i. Variables are named storage location to store values temporarily which can be
                          changed during program execution.

                          Data type states the way the values of that type are stored, the operations that
                          can be done on that type and the range for that type.

                          For example:
                          int marks;
                          In the above statement, int is the data type and marks is the name of variable
                          which store values temporarily.

                          (1  Mark for correct answer)
                          (1  Mark for correct explanations)

                          ii. Assignment operator (=) is used to assign any value in a variable/constant
                          while comparison operator (= =) is used to compare values.

                          For example:
                          int marks=90;
                          In the above statement value 90 is assigned to the variable named marks.

                          if(marks==40)
                          jTextField1.setText(“Just Pass”);
                          In the above if statement, value of marks is being compared with 40.

                          (1  Mark for correct answer)
                          (1  Mark for correct explanations)


                                                            2
   34   35   36   37   38   39   40   41   42   43   44