New

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

  • The general format of the for statement is

    for (n = 0; n<=200, ++n) {program statement};

    The relational operators have _____ precedence than all arithmetic operators

    lower

    How to use NSLog to right justify within a number of spaces?

    %2i (where 2 is the number of spaces or column width)

    How do you read user input from terminal?

    scanf("%i", &variableName);

    To omit a field from a for loop simply...

    Use a semicolon with no expression

    True or False. You can have multiple expression for any of the fields in a for loop.

    True.

    True or False. A variable defined in the for loop field is known only inside the loop.

    True. It is called a "local" variable and is inexcessible outside the loop.

    What is the syntax of a while loop?

    while (expression) {program statements};

    A ___ statement can always be translated into an equivalent ____ statement.

    For While

    What is the syntax of the do-while statement?

    do {program statement} while (expression);

    Execution of the ____ statement causes the program to immediately leave the loop it is currently executing

    break

    In order to bypass a group of statements in a loop but continue with the loop thereafter use...

    The continue statement.

    How do you left justify in field width specification?

    %-2i (where 2 is the width of the column)

    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

    Example:

    Reload the page to try again!

    Reload

    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