List three techniques to avoid confusion when mixing AND and OR operators.

What will be an ideal response?


You can use parentheses to override the default order of operations.

You can use parentheses for clarity even though they do not change what the order of operations would be without them. For example, if a customer should be between age 12 and 19 or have a school ID to receive a high school discount, you can use the expression (age > 12 AND age < 19) OR validId = "Yes", even though the evaluation would be the same without the parentheses.

You can use nesting if statements instead of using AND and OR operators.

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT a SmartArt graphic type?

A) Matrix B) Object C) Picture D) Relationship

Computer Science & Information Technology

The ________ alignment begins evenly at the left margin and ends in an uneven right edge

Fill in the blank(s) with correct word

Computer Science & Information Technology

Suggest a technique by which a browser could detect and block clickjacking attacks

What will be an ideal response?

Computer Science & Information Technology

You can add a link to an image in an HTML document by enclosing the img element in an a element.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology