KnowledgeBoat Logo
LoginJOIN NOW

Computer Applications

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:

(a) Which of the following is not a decision making statement?

  1. if - else
  2. if
  3. break
  4. if-else-if

(b) 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

(c) Which of the following is called as multiple branching statement?

  1. if and only if
  2. switch
  3. control
  4. shift

(d) Which of the following is not a component of multiple branching statement?

  1. break
  2. default
  3. case
  4. pause

Java Conditional Stmts

12 Likes

Answer

(a) break

(b) nested conditional statement

(c) switch

(d) pause

Answered By

6 Likes


Related Questions