Week 1 Objectives


At the end of this week's classes you should

KNOW:

BE ABLE TO:

Sample Quiz Questions:

  1. State the order of evaluation of the operators in the following C statement and show the value of x after the statement is performed:
    x = 2 % 2 + 2 * 2 - 2 / 2;
    
  2. Write a syntactically-correct C Boolean expression for the following English expression:
    the value of x is neither 5 nor 12
    
  3. Use a for-loop to calculate the sum of all the even numbers between 2 and 100, inclusive (the values 2 and 100 should be included in the sum).