This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Upper Case letters start with the internal representation of a. 48 b. 64 c. 65 d. 97 e. 122 1112. Given two strings string1 and string2, write the expression that compares the two of them. Write this in an if statement. I will start it for you… if ( ) 13. When the compare takes place, what ‘type’ is returned from the comparison of the two strings? (write in your answer) one word: 1416. Write a while loop that sums the first 100 positive integers. Start with 1. 1719. Same as previous problem. Use a for loop. 2022. Same; use a do…while loop 2325. What output is produced by the following code fragment? int num = 87, max = 25; if (num >= max*2) System.out.println (“apple”); System.out.println (“orange”); System.out.println (“pear”); Output is: 2628…What output is produced by the following code fragment? int num = 0, max = 20 while (num<max) { System.out.println (num); num += 4; } output:...
View
Full Document
 Summer '08
 ROGGIO,R
 Logic, int num, arithmetic operators, a. arithmetic operators

Click to edit the document details