Q&A Notes: Branching


Answer these questions in a text document and upload to Canvas. Answer with whatever programming language you'd like.


  1. What is a boolean expression? What can its values be?
  2. The contents of an if statement are executed when the CONDITION evaluates to…
  3. Write out the form of an if statement.
  4. Write out the form of an if/else statement.
  5. Write out the form of an if/else if statement.

Fill out the relational operators:

Name Operator
Greater than  
Greater than or equal to  
Less than  
Less than or equal to  
Equal to  
Not equal to  

Fill out the logic operators:

Name Operator
and  
or  
not  

Author: Rachel Wil Sha Singh

Created: 2023-09-26 Tue 22:56

Validate