<p> Name : ______Date : ______</p><p>Computer Science - Syntax / Output Worksheet 1 </p><p>DIRECTIONS : Fill in each blank with the correct answer/output. </p><p>1. All java statements are terminated with a ______.</p><p>2. An open ______must have a close ______.</p><p>3. ______is the newline character.</p><p>4. ______is the tab character.</p><p>5. ______is used for a one line comment.</p><p>System.out.print( "one" ); // LINE 1</p><p>System.out.print( "o\tne" ); // LINE 2</p><p>System.out.print( "on\te" ); // LINE 3</p><p>System.out.print( "on\\e" ); // LINE 4</p><p>System.out.print( 4 + 3); // LINE 5</p><p>System.out.print( 3 + " " + 4 ); // LINE 6</p><p>System.out.print("\" quotes \""); // LINE 7</p><p>System.out.print( "\\\\t\\a\\"); // LINE 8</p><p>System.out.print( "\\a\\b\\c" ); // LINE 9</p><p>System.out.print( 3 + " " + 4 + 5); // LINE 10</p><p>System.out.print( 3 + 4 + " " + 5 + 6); // LINE 11</p><p>© A+ Computer Science – Syntax / Output Worksheet – www.apluscompsci.com</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages1 Page
-
File Size-