AP Computer Science A
AP CSA
Every day in this course is built to give you a real shot at passing the AP Computer Science A exam. You read code, trace it, predict it and write it, the same way the exam asks. If you work hard in class, the work fits in class.
How a day works
Do Now
A warm-up the moment you sit down: one item from an earlier day, one exam-style question, one quick trace.
Demonstration
Chromebooks open. Mr. Muggivan works the examples, and you follow along on the same problems.
We Do / You Do
Part A with help, then Part B on your own, built like exam items. Stretch jobs if you finish early.
Exit Ticket
A few exam-style items that show what you learned today. Open only in the last 15 minutes of class.
Your codes
Each block ends in a code, like DN-1.2-K4Q-X7M: Do Now, Week 1, Tuesday.
Click Copy & Submit Code. The course form opens with your code filled in. Submit it, and Google emails you a copy. That email is your record.
Never share a code. Three codes a day: Do Now, We Do / You Do, Exit Ticket.
Missed class?
The Do Now and We Do / You Do for every day stay open. Open the day below and do them, any time, from any device. Late codes still count.
Exit tickets only open in class. They show what you can do on the day.
Week 1
Tue Jan 5
An algorithm is a set of steps in a set order, and a Java program is an algorithm the compiler turns into bytecode that the JVM runs.
Wednesday · 1.3Wed Jan 6
A Java program is a class with a main method, and when it goes wrong the error is compile-time (the compiler rejects it), run-time (it stops partway), or logic (it runs but does the wrong thing).
Thursday · 1.4Thu Jan 7
A variable is a named storage spot with a type: int holds whole numbers, double holds real numbers, boolean holds true or false, and a String variable refers to an object that holds text.
Friday · 1.5Fri Jan 8
print stays on the line and println ends it; a string literal prints what is between its quotes, with \" \\ and \n for a quote, a backslash and a new line; and int / int keeps only the whole part, while % gives the remainder.
Week 2
Mon Jan 11
An assignment statement works out the value on the right side first, then stores it in the variable on the left, replacing the old value.
Tuesday · 2.2Tue Jan 12
A cast changes a value's type: (int) cuts off the decimal part and (double) turns an int into a double, and every number type has limits on how big and how exact it can be.
Wednesday · 2.3Wed Jan 13
x += 5 is a short way to write x = x + 5, and comments are notes for people that Java skips when it runs the code.
Thursday · 2.4Thu Jan 14 · Quiz day
A class's documentation lists its attributes, the data it keeps, and its behaviors, what it can do, so you can use a class without seeing its code.
No personal information is collected on these pages. Finishing a block records an anonymous code and score.