AP Computer Science A · Lesson 1.3 · Unit 1 · CED topic 1.3

Expressions and output

Name:   Date:  

1 Why this lesson matters

Read the opening paragraph and the "Required content" box on the lesson page. In your own words, explain each objective below.

3.A. Develop code to generate output and determine the result that would be displayed.

3.B. Develop code to utilize string literals and determine the result of using string literals.

3.C. Develop code for arithmetic expressions and determine the result of these expressions.

2 Displaying output

Read this section. In your own words, summarize the main idea.

3 Arithmetic expressions

Read this section. In your own words, summarize the main idea.

4 Worked example

Read the "Worked example" box. Then, without looking back, try writing your own answer below.

Trace the values and say what is printed.

5 Exam focus: avoid this mistake

Read the "Exam focus" box, then restate it in your own words.

6 Sum it up

In two or three sentences, explain this lesson's main idea to someone who has not read it.