• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/21

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

21 Cards in this Set

  • Front
  • Back

(____) operators are important for making decisions. They allow us compare numeric and char (chars are treated like numbers in C++) values to determine if one is greater than, less than, equal to, or not equal to another.

relational

Relational operators are (____) meaning they require two operands.

binary

Left to right (____) means that when two operators of same precedence are adjacent, the left most operator is evaluated first.

associativity

The integer values of the characters ‘a’ to ‘z’ range from (____) to (____)

97, 122

The integer values for ‘A’ to ‘Z’ range from (____) to (____)

65, 90

When a relational operator is used with (____), the integer value of each character of the left operand is compared to the integer value of each character of the right operand working from left to right.

strings

If you include the (____) header file in your program, you can access character testing functions

cctype

(____) variables are commonly named with an “is” prefix (such as isCold = true), but other common prefixes are "has", "should", and "can"

flag

Use an if/else statement if the two conditions are (____ ____) meaning if one condition is true the other condition must be false.

mutually exclusive

You can add a (____) else statement to the if/else if statement if you want to execute code if none of the if statements are true.

trailing



Use (____) operators to combine two or more relational expressions into one or to reverse the logic of an expression.

logical

The (_) operator performs a logical NOT operation.

!

When you combine multiple relational expressions by using the && or || operator, the expressions are evaluated left to right. As soon as the program can determine the result of the combined logical expression, it proceeds without evaluating any remaining sub-relational expressions, a process called (___ ___) evaluation.

short ciruit

For the logical OR operator, if the first expression is true, the second expression is not even tested. This process is called (____ ____) evaluation.

short circuit

For the logical AND operator, if the first expression is false, the second expression is not even tested. This process is called (____ ____) evaluation.

short circuit

A (____) of code is defined a set of statements enclosed within { and }.

block

The (____) operator provides an alternative way to implement if/else functionality.

conditional or ternary

Test expression ? expression for true: expression for false;




This is the syntax for the (____) operator.

conditional or ternary

The (____) statement provides functionality like that of the if/else if statement.

switch

For enum syntax, the integer assignment starts at the number (_)

0

enums are often declared (outside or inside) of main. This is because you often want to use your programmer defined data type throughout your whole program versus just a small block of code.

outside