ap computer science a exam 2020 cheat sheet
Java Quick Reference
AP Computer Science A Java Quick Reference Author: College Board Subject: AP Computer Science A Java Quick Reference Keywords: AP Computer Science A Java Quick Reference; 2020 Updates; teacher resources; exam resources; course resources; student resources; exam information; course information; Created Date: 4/17/2019 8:31:51 PM |
Quick Reference AP Computer Science A
Appendix A Java Quick Reference Appendix B Testable API Appendix C Testable |
What is AP Computer Science a?
AP Computer Science A is an introductory college-level computer science course. Students cultivate their understanding of coding through analyzing, writing, and testing code as they explore concepts like modularity, variables, and control structures. This is the core document for this course.
What percentage of AP Computer Science a questions cover 2D arrays?
About 7.5–10% of the questions on your exam will cover 2D Arrays. two-dimensional (2D) array is an array of arrays, often thought of as a rectangular array of values, with rows and columns. For the purposes of AP Computer Science A, all 2D arrays are rectangular, so that each row has the same length.
What percentage of AP exam questions cover Java objects?
On your AP exam, 5–7.5% of questions will cover the topic Using Objects. As mentioned, all values in Java belong to either a primitive type or a reference type.
Content of Appendixes
Appendix A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Java Quick Reference Appendix B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testable API Appendix C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testable
class java.lang.Integer
Integer(int value) int intValue() Integer.MIN_VALUE Integer.MAX_VALUE secure-media.collegeboard.org
class java.lang.Math
static int abs(int x) static double abs(double x) static double pow(double base, double exponent) static double sqrt(double x) static double random() secure-media.collegeboard.org
class (implements Comparable)
public Location(int r, int c) constructs a location with given row and column coordinates public int getRow() returns the row of this location public int getCol() returns the column of this location public Location getAdjacentLocation(int direction) returns the adjacent location in the direction that is closest to direction public int getDire
info.gridworld.grid.Grid interface
int getNumRows() returns the number of rows, or -1 if this grid is unbounded int getNumCols() returns the number of columns, or -1 if this grid is unbounded boolean isValid(Location loc) returns true if loc is valid in this grid, false otherwise Precondition: loc is not null put(Location loc, E obj) puts obj at location loc in this grid and ret
class (extends Actor)
public Rock() constructs a black rock public Rock(Color rockColor) constructs a rock with color rockColor public void act() overrides the act method in the Actor class to do nothing info.gridworld.actor.Flower class (extends Actor) public Flower() constructs a pink flower public Flower(Color initialColor) constructs a flower with color initia
Bug.java
package info.gridworld.actor; import info.gridworld.grid.Grid; import info.gridworld.grid.Location; import java.awt.Color; /** * A Bug is an actor that can move and turn. It drops flowers as it moves. The implementation of this class is testable on the AP CS A and AB Exams. */ public class Bug extends Actor { /** * Constructs a red bug. */ publ
BoxBug.java
import info.gridworld.actor.Bug; /** * A BoxBug traces out a square “box” of a given size. The implementation of this class is testable on the AP CS A and AB Exams. */ public class BoxBug extends Bug { private int steps; private int sideLength; /** * Constructs a box bug that traces a square of a given side length. * @param length the side lengt
Critter.java
package info.gridworld.actor; import info.gridworld.grid.Location; import java.util.ArrayList; /** * A Critter is an actor that moves through its world, processing other actors in some way and then moving to a new location. Define your own critters by extending this class and overriding any methods of this class except for * When you override the
ChameleonCritter.java
import info.gridworld.actor.Actor; import info.gridworld.actor.Critter; import info.gridworld.grid.Location; import java.util.ArrayList; /** * A ChameleonCritter takes on the color of neighboring actors as it moves through the grid. The implementation of this class is testable on the AP CS A and AB Exams. */ public class ChameleonCritter extends Cr
Location Class (implements Comparable)
public Location(int r, int c) public int getRow() public int getCol() public Location getAdjacentLocation(int direction) public int getDirectionToward(Location target) public boolean equals(Object other) public int hashCode() public int compareTo(Object other) public String toString() NORTH, EAST, SOUTH, WEST, NORTHEAST, SOUTHEAST, NORTHWEST, SOUTH
Grid Interface
int getNumRows() int getNumCols() boolean isValid(Location loc) put(Location loc, E obj) remove(Location loc) get(Location loc) ArrayList getOccupiedLocations() ArrayList getValidAdjacentLocations(Location loc) ArrayList getEmptyAdjacentLocations(Location loc) ArrayList getOccupiedAdjacentLocations(Location l
Actor Class
public Actor() public Color getColor() public void setColor(Color newColor) public int getDirection() public void setDirection(int newDirection) public Grid getGrid() public Location getLocation() public void putSelfInGrid(Grid gr, Location loc) public void removeSelfFromGrid() public void moveTo(Location newLocation) public void act(
Rock Class (extends Actor)
public Rock() public Rock(Color rockColor) public void act() secure-media.collegeboard.org
Flower Class (extends Actor)
public Flower() public Flower(Color initialColor) public void act() secure-media.collegeboard.org
Bug Class (extends Actor)
public Bug() public Bug(Color bugColor) public void act() public void turn() public void move() public boolean canMove() secure-media.collegeboard.org
Critter Class (extends Actor)
public void act() public ArrayList getActors() public void processActors(ArrayList actors) public ArrayList getMoveLocations() public Location selectMoveLocation(ArrayList locs) public void makeMove(Location loc) secure-media.collegeboard.org
ChameleonCritter Class (extends Critter)
public void processActors(ArrayList actors) public void makeMove(Location loc) secure-media.collegeboard.org
Appendix G — Index for Source Code
This appendix provides an index for the Java source code found in Appendix C. secure-media.collegeboard.org
C5 C5 C5
getActors() processActors(ArrayList actors) getMoveLocations() selectMoveLocation(ArrayList locs) makeMove(Location loc) secure-media.collegeboard.org
AP Computer Science A Java Quick Reference
Java Quick Reference. Accessible methods from the Java library that may be included in the exam. Class Constructors and Methods. Explanation. String Class. |
AP Computer Science Principles Exam Reference Sheet
The code in block of statements is executed once for each assignment of item. AP Computer Science Principles Exam Reference Sheet. V.1 |
AP Computer Science Principles Course and Exam Description
2020 College Board. 205 APPENDIX 1: AP CSP Exam Reference Sheet ... Crystal Furman Director |
AP Computer Science Principles - Student Handouts (Effective Fall
Includes the Exam Reference Sheet. Effective V.1 |
Errata Sheet for AP Computer Science A Course and Exam
Teachers can print out the individual page in order to update their printed CED binders. • The Java Quick Reference sheet (p. 209) was updated. The “Math class” |
AP Computer Science Principles Curriculum Framework 2020-2021
The use of linked lists is outside the scope of this course and the AP Exam. AAP-1.D.7. The exam reference sheet provides the notation. [value1 value2 |
APPENDIX A - AP Computer Science Java Subset
The Java Quick Reference contains a list specifying which. Standard Java classes interfaces |
AP Computer Science Principles Course and Exam Description
2020 College Board. 205 APPENDIX 1: AP CSP Exam Reference Sheet ... Crystal Furman Director |
AP Computer Science A Study Guide
On your AP exam 5–7.5% of questions will cover the topic Using Objects. As mentioned |
AP Computer Science A 2021 Free-Response Questions
Assume that the classes listed in the Java Quick Reference have been imported where appropriate. Unless otherwise noted in the question assume that parameters |
Resource AP Computer Science A Java Quick Reference—2020
Java Quick Reference Accessible methods from the Java library that may be included in the exam Class Constructors and Methods Explanation String Class |
AP Cram Sheet - Garfield Computer Science
AP Computer Science – Cram Sheet • System out println – don't abbreviate as SOP • No user input – never write in nextLine() , in nextInt() , etc • Don't make up |
McQueen AP Computer Science A 2020 -2021
2020 -2021 Instructor you will be well prepared to take the AP Computer Science A exam USING any kind of unauthorized device, study aid, or cheat sheet |
AP® Computer Science Principles - Pearland ISD
Syllabus 2020 - 2021 We will be using the Code Computer Science Principles parts: performance tasks and the end-of-course AP® Exam Both Obey all campus and district codes of conduct • Obey the honor code No cheating |
Overview-presentation-ap-exams-home PPT_V2
For example, here are the Monday, May 18, AP Biology Exam local start times for 2D, 3D, or Drawing, Computer Science Principles Print or copy by hand the 2020 Question 1 Music Theory Answer Sheet Download at Attempts to cheat will be detected immediately during testing or will be identified in June and July |
Codecombat cheat sheet - Squarespace
Complete all levels of the Computer Science 3 course Aug 12 2020 CodeCombat For Combat on PC GameFAQs has 17 cheat codes and secrets On both through course assessment and end of course exam students will exhibit their |