Page 93 - iPro_trackGPT_V5_Class8
P. 93

Tech Trivia                                                                Section A (Objective)



                 A.  Tick ( ) the correct option.

                     1.  Which of the following statement helps the program make decisions in Java?

                        a. Sequential                                  b. Conditional
                        c. Looping                                     d. Jump

                     2.  Which loop in Java always runs the instructions inside it at least once?

                        a. for                                         b. do while

                        c. while                                       d. All of these

                     3.  Which statements are used if you want to stop a loop before it finishes all its repetitions?
                        a. Iteration                                   b. Looping

                        c. Jump                                        d. Conditional

                     4.  Which error is cased when we try to divide a number by zero?

                        a. Syntax error                                b. Run time error
                        c. Compilation error                           d. Logical error

                     5.  Which errors cannot arise once the program is successfully compiled?

                        a. Run time                                    b. Logical

                        c. Syntax                                      d. All of these

                 B.  Write ‘T’ for true and ‘F’ for false.

                     1.  Break and start are the jump statements used in Java.                            ......................
                     2.  Syntax errors are also known as run time errors.                                 ......................

                     3.  Looping statements allow us to change the default flow of a program.             ......................

                     4.  The do-while loop checks the condition after running the instructions.           ......................
                     5.  The if…else…if statement helps test several conditions and run multiple
                        blocks of code.                                                                   ......................


                 C.  Fill in the blanks using the words given below:

                                                  Error, Semantic, Control, Continue, For



                     1.  The ........................ variable defines the duration until which the while loop will execute.
                     2.  Logical errors are also called ........................ errors.






                                                                Conditional, Looping and Jump Statements in Java  91
   88   89   90   91   92   93   94   95   96   97   98