Page 93 - iPlus_Ver_2.0_class_8
P. 93

E.  Competency-based/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.  Your friend Naveen wants to display his name on the screen 20 times. Suggest him a type of
                        statement in Java which can help him do so.
                     3.  Assertion (A): Conditional statements in Java allow you to execute different code blocks based
                        on specified conditions.
                        Reason (R):  They  enhance  the  flexibility  and  control  of  a  Java  program,  providing  branching
                        based on logical tests.
                         (a)  Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A)
                         (b)  Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of
                           Assertion(A)

                         (c) Assertion (A) is true and Reason (R) is false
                         (d) Assertion (A) is false and Reason (R) is true
                     4.  Assertion (A): Looping statements in Java are used to execute a block of code repeatedly.
                        Reason (R): They help streamline repetitive tasks and keep code concise by iterating through a
                        specified range.

                         (a)  Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A)
                         (b)  Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of
                           Assertion(A)
                         (c) Assertion (A) is true and Reason (R) is false
                         (d) Assertion (A) is false and Reason (R) is true

                                                                                  #Problem Solving & Logical Reasoning
                          Crack The Code                                          #Digital Literacy



                   Find the 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





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