Long-Term Learning

Learn efficiently and remember over time.

Start Long-Term Learning

Get personalized study reminders at intervals optimized for better retention.
Track your progress on this set by creating a folder
Or add to an existing folder

Add this set to a folder

  • How does an if-else statement work?

    if (expression)
    {block of code}
    {block of code}

    How does a switch statement work?

    switch (expression)
    {case value1:
    program statement;
    program statement;

    Whenever a relational expression is evaluated in objective-c, it is given the value

    1 if the expression is satisfied and 0 if the expression is not satisfied.

    How do you negate (or flip) the value of a relational expression?

    ! (not)

    What is the boolean type in objective-c?


    The conditional operator in objective-c is a ______ operator.

    ternary (it takes in three operands)

    Show how the conditional operator works.

    condition ? : expression1 : expression2

    If the result of the condition is true, then expression1 is evaluated and returned. If the result of the condition is false, then expression2 is evaluated and returned.

    Please allow access to your computer’s microphone to use Voice Recording.

    Having trouble? Click here for help.

    We can’t access your microphone!

    Click the icon above to update your browser permissions above and try again


    Reload the page to try again!


    Press Cmd-0 to reset your zoom

    Press Ctrl-0 to reset your zoom

    It looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.

    Please upgrade Flash or install Chrome
    to use Voice Recording.

    For more help, see our troubleshooting page.

    Your microphone is muted

    For help fixing this issue, see this FAQ.

    Star this term

    You can study starred terms together

    NEW! Voice Recording

    This is a Plus feature