Exam (elaborations) java programming
1. What output is produced by the following lines? String s = "Hello" + "Joe"; Sln(s); 2. Write Java statements that will cause the following to be written to the screen: One two buckle your shoe. Three four shut the door. 3. What is the difference between Sln and S ? 4. What is the output produced by the following lines? Sln(2 + " " + 2); Sln(2 + 2); 5. What output is produced by the following code? String aString = "Jelly beans"; Sln("START0"); Sf("START%sEND %n", aString); Sf("START%4sEND %n", aString); Sf("START%13sEND %n", aString); Sln();
Document information
- Uploaded on
- February 7, 2023
- Number of pages
- 9
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers