Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

to avoid confusion, you can use ___statements instead of using and and …

Question

to avoid confusion, you can use ___statements instead of using and and or operators.
o nested if
o range check
o trivial
o not
question 15
the ___ clause of the decision is the part that executes only when the tested condition in the decision is false.
o then
o endif
o else
o if

Explanation:

Brief Explanations
  1. Nested if statements can be used instead of AND/OR operators to make code more readable and avoid confusion. For example, instead of if (a > 0 && b < 10), one can use nested if like if (a > 0) { if (b < 10) { ... } }.
  2. In an if - else construct, the then (in some languages like pseudocode) part executes when the condition is true, and the else part executes when the condition is false. For example, if (condition) { // then part } else { // else part }.

Answer:

  1. A. nested if
  2. C. else