Syntax / Output Worksheet

Syntax / Output Worksheet

<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>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us