English

Java, like all other programming languages uses some statements that allow us to check a condition and execute certain parts of a code depending on whether the condition is true or false. - Computer Applications

Advertisements
Advertisements

Question

Java, like all other programming languages uses some statements that allow us to check a condition and execute certain parts of a code depending on whether the condition is true or false. Such statements are called conditional statements. We can also use a conditional statement within another conditional statement. The inner conditional statement is executed only when the outer condition is true. The conditional statement can also be a multiple branching statement. 

Based on the above discussion, answer the following questions:

  1. Which of the following is not a decision making statement?
    1. if-else
    2. if
    3. break
    4. if-else-if 
  2. A conditional statement used within another conditional statement is known as ______.
    1. nested conditional statement
    2. embedded conditional statement
    3. accumulated conditional statement
    4. None of the above
  3. Which of the following is called as multiple branching statement?
    1. if and only if
    2. switch
    3. case
    4. pause
  4. Which of the following is not a component of multiple branching statement?
    1. break
    2. default
    3. case
    4. pause
Answer in Brief

Solution

  1. iii. break
  2. i. nested conditional statement
  3. ii. switch
  4. iv. pause
shaalaa.com
  Is there an error in this question or solution?
Chapter 1.1: Nested Loop - EXERCISES [Page 151]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.1 Nested Loop
EXERCISES | Q II. 4. | Page 151
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×