Page 96 - iprime_V2.2_class8
P. 96

E.  Application-based questions.

                     1.  Dilip wants to create a Java program to check whether he can vote or not.
                         Which type of Java statement can help him do this?


                     2.  Naveen wants to display his name on the screen 20 times. Suggest him a type of
                         statement in Java that can help him do so.
                                                                                                    Computational Thinking

                  Higher Order Thinking Skills (HOTS)
                     1.  Write a Java program that takes an integer number from the user between 1 and 7.
                         It displays the weekday name.
                     2.  Rewrite the given Java code using while loop.
                         public class Fun {

                           public static void main(String[] args) {

                             int n = 5;
                             // for loop

                             for (int i = 1; i <= n; ++i) {
                               System.out.println("Java is fun");

                             }
                           }

                         }





                    Crack The            Code

                                                                                                       Critical Thinking
                  Find nine terms related to Java statements and errors.

                                                C   O   N    T    I  N    U   E    L   L

                                                O   V   D    E   F    A   U    L   T   T
                                                N   H    L   U    I   F   D   R   M    I

                                                D    I  O    E   R    R   O   R    G   T
                                                I   N   O    R   B    R   E   A    K   E

                                                T   T    P   L   E   O    I   H    R   R
                                                I   E    I   I   P    L   H   E    A   A

                                                O   R   N    S   W    I   T   C    H   T
                                                N   F   G    U   N    I   X   G    I   I

                                                A   A   N    X   R    E   S   G    O   O
                                                L   J   U   M    P    I   N   G    N   N



                  94     iPRIME (Ver. 2.2)–VIII
   91   92   93   94   95   96   97   98   99   100   101