Skip to content
Marlbridge

AP® Computer Science A · Unit 1 · Topic 1.3

Expressions and Output: Checklist (Computer Science A 1.3)

A self-check list for print and println, escape sequences, integer division, the remainder operator and operator precedence, linked to the guide and practice questions.

Work through the list without notes. If you cannot do a statement, follow its link, then come back. Guide = study guide; Practice = practice questions.

Understanding

  • I can explain the difference between print and println in terms of the cursor. (Guide: “Showing results”; Practice Question 1)
  • I can define a literal and a string literal, and say what an escape sequence is. (Guide: “String literals and escape sequences”)
  • I can state the result type of an operation on two int values and on a double and an int. (Guide: “Arithmetic expressions”; Practice Question 5)
  • I can explain what integer division and the remainder operator compute. (Guide: “Integer division” and “The remainder operator”; Practice Question 3)
  • I can say when an ArithmeticException occurs and that it is a run-time error. (Guide: “Dividing by zero”; Practice Question 6)

Skills

  • I can write a string literal that includes a double quote, a backslash or a new line, and say what it displays. (Guide: the escape-sequence table; Practice Questions 2 and 8)
  • I can evaluate an expression by hand using precedence, left-to-right order and parentheses, writing one step per line. (Guide: Worked example 1; Practice Questions 3, 4 and 5)
  • I can tell the output of a short mixed print/println program. (Practice Questions 1 and 8)
  • I can use / and % to split a quantity into whole groups and a remainder. (Guide: Worked example 2; Practice Question 7)
  • I can extract digits of a whole number using / and %. (Practice Question 9)

Reasoning

  • I can explain why double x = 7 / 2; stores 3.0, not 3.5. (Guide: “Common misconceptions”; Practice Question 10)
  • I can explain why 7 / 2 * 2.0 and 7 / 2.0 * 2 differ. (Guide: the arithmetic output listing)
  • I can find and correct a precedence bug in an average calculation. (Practice Question 10)

All ticked? Move on to the Topic 1.4 study guide, Assignment Statements and Input, or return to the course roadmap.

AP® and Advanced Placement® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website. Marlbridge is an independent tuition provider. It is not an authorized AP course provider, an AP school or an exam centre, and these resources are not official College Board materials. Reading them or doing simulations does not meet the laboratory requirement of an AP science course.