Email *
What are loops used for? *
1 point
What is a correct declaration of a for loop (assume no variables are previously declared)?
*
1 point
How many times will this for loop run?
for (int i = 0; i < 5; i++) {
    //code
}
*
1 point
How many times will this code print out "t"?

for(int i =0; i<10; i++){

    for(int j=0; j<10; j++) {

        System.out.println(“t”);

    }

}

*
1 point
Free response: please attempt these, if you really tried and couldn't figure it out submit "I don't know" and we will cover it in class.
Find the output of this code segment WITHOUT running the code in your IDE: (one line)

Hint: Use paper to track variables.
*
1 point
Captionless Image
Write a code that finds the sum of all even numbers from 1 to n (not including n) where n is an imputed number

Hint: Use Scanner to input n, think about the change of variables for each even number
*
1 point
A copy of your responses will be emailed to .
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy