Comp 121
Chapter 4 Study Guide
Chapter 4
What is the integer value of the following expressions, 5 <= 9, ‘D’ > ‘Z’?
What are the symbols for the AND and OR operators? When do they evaluate as true?
What is the general form of the if-else statement?
What is the keyword bool used for?
How do you indicate the beginning of a block and the ending of a block? What is the scope of a variable?
What is the value of the expression age=30? What is the value of the expression age==30?
How does the compiler determine which if an else should be paired with when executing a program?
What is the general form of the switch statement? What are the four keywords associated with the switch statement and how are they used?
What is a syntax error?