Topics 2.4 to 2.6 Nested if Statements, Compound Boolean Operators, and Comparing Boolean Expressions
Learning goals / AP CSA Alignment
By the end of this week, you should be able to:
- 2.4.A Develop code to represent nested branching logical processes and determine the result of these processes.
- 2.5.A Develop code to represent compound Boolean expressions and determine the result of these expressions.
- 2.6.A Compare equivalent Boolean expressions.
- 2.6.B Develop code to compare object references using Boolean expressions and determine the result of these expressions.
Watch
Find the Slides
Slides from the lecture series are available to teachers only through the Oracle Academy Communities. You must complete two steps to gain access to the community:
- Join Oracle Academy! It is free for institutions and Educators to join.
- Join the Community. Once you have become an Oracle Academy member, you can sign up to be a part of the community.
In the Oracle Academy Community, you will find slides and other resources in the Java category.
Learn
- Want to learn more? Check out tutorials 2.4 thru 2.6 for AP CSA Unit 2
- Check out the full course
Practice
Think you are ready? Try out some practice.
Topic 2.4 and 2.5
AP CSA Free Response
It's time for your first attempt at completing a practice free response question. This question works to scaffold your experience with free response questions and should be considered a first step. As we progress, you will find free response questions will become increasingly more complex.
Solutions for Teachers
Sample solutions and Scoring Guidelines are available to teachers only through the Oracle Academy Communities. You must complete two steps to gain access to the community:
- Join Oracle Academy! It is free for institutions and Educators to join.
- Join the Community. Once you have become an Oracle Academy member, you can sign up to be a part of the community.
In the Oracle Academy Community, you will find the Sample Solutions and Scoring Guidelines in the Java category.
Apply
- Pet Recommender - You have been asked to build a program that recommends whether a person should get a dog or a cat based on the following input values