Java Midterm 2

Card Set Information

Author:
gianni11
ID:
207389
Filename:
Java Midterm 2
Updated:
2013-03-15 00:09:10
Tags:
midterm
Folders:

Description:
midterm 2
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user gianni11 on FreezingBlue Flashcards. What would you like to do?


  1. What is the String Class?
    holds a series of characters
  2. Class names should always begin with a _____
    Upper Case.
  3. What is the increment and decrement operators for loops?
    number++  OR ++number

    number--  OR  --number
  4. what is the difference between ++# and #++?
    pre = increment before rest of equation is evaluated.

    post = increment after equation has been evaluated.
  5. what is the syntax of while loop?
    • while (condition)
    • {
    • statement1;
    • statement2
    • ;statement3;
    • }
  6. Describe:  while (condition)
    {
    statement1;
    statement2;
    statement3;
    }
    will repeat while condition is true.
  7. while loop will test the condition ________ executing the loop.
    before
  8. What is the syntax of the do while loop?
    • do
    • {
    • statement(s);
    • }
    • while (condition);
  9. The do-while loop will execute the loop _______ testing the condition
    before
  10. What is the syntax of the for loop?
    • for (initialization; test; update)
    • {
    • statement(s);
    • }
  11. The for loop will execute the loop ______ the testing the condition
    after  (pre-test)
  12. The ______ section allows the loop to initialize its own control variable.
    initialiazation
  13. The _____ setion of the for statement acts in the same manner as the condition section of a while loop.
    test
  14. The ____________ section of the for loop is the last thing to execute at the end of each loop.
    update
  15. What are nested loops?
    the inner loop will execute it's  each time the outer loop executes once.

What would you like to do?

Home > Flashcards > Print Preview