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();
Información del documento
- Subido en
- 7 de febrero de 2023
- Número de páginas
- 9
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas