Page 100 - 2617_JSSPS_C-6
P. 100

Recap



                            A computer program can be defined as a collection of instructions to perform a specific task.
                            The process of writing a program is called program coding or programming.

                            There are mainly two types of programming languages: procedural and object-oriented.
                            Java is an object-oriented and high-level programming language.
                            Java follows the Write Once Run Anywhere (WORA) principle.

                            BlueJ is an IDE designed for beginners.
                            An identifier is the name given to an object in a Java program.
                            Keywords are the reserved words that cannot be used as identifier names as they carry a special
                          meaning for the Java compiler.

                            A data type is used to define the size and type of value that a variable can store.
                            A literal denotes a constant value.
                            Variables are the memory locations used to store values.

                            A comment is a statement in a Java program that is not executed by the Java compiler.
                            An  operator is  a symbol  that  tells  the  compiler  to  perform specific  mathematical or  logical
                          calculations.




                                                 Assess Yourself


                     Choose the correct option.


                      1.  Which of the following symbols are used to write comments in Java?

                                a. //                                         b. /** and */

                                c. /* and */                                  d. All of these

                      2.   Which of these is not a feature of the Java language?
                                a. It is a case-sensitive language            b. It is a platform-dependent language


                                c. It is a robust language                    d. It is an object-oriented language

                      3.   Who is the developer of Java?

                                a. Guido van Rossum                           b. James Gosling

                                c. Mitchel Resnick                            d. None of these

                      4.  Which of the following variables is invalid?

                                a. Sudha_Gupta                                b. __abc123

                                c. Ridhi@tel                                  d. mygood_book






                 98     Premium Edition-VI
   95   96   97   98   99   100   101   102   103   104   105