ap computer science a exam 2020 cheat sheet


PDF
List Docs
PDF 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

PDF 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

Share on Facebook Share on Whatsapp











Choose PDF
More..











ap computer science a exam 2020 date ap computer science a exam 2020 format ap computer science a exam 2020 reddit ap computer science a exam 2020 review ap computer science a exam 2020 sample questions ap computer science a exam 2020 sample questions answers ap computer science a exam 2020 time ap computer science a exam date

PDFprof.com Search Engine
Images may be subject to copyright Report CopyRight Claim

Cheat Sheet : All Cheat Sheets in one page

Cheat Sheet : All Cheat Sheets in one page


CISSP Cheat Sheets : cissp

CISSP Cheat Sheets : cissp


Computer Science Midterm 2 Cheat Sheet by Paloma - Download free

Computer Science Midterm 2 Cheat Sheet by Paloma - Download free


Cheat Sheets for Data Visualization Techniques

Cheat Sheets for Data Visualization Techniques


Data Structures with Python Cheat Sheet - Intellipaat

Data Structures with Python Cheat Sheet - Intellipaat


Collection] 11 Python Cheat Sheets Every Python Coder Must Own

Collection] 11 Python Cheat Sheets Every Python Coder Must Own


Python Scikit-learn Cheat Sheet

Python Scikit-learn Cheat Sheet


AWS Cheat Sheet - Intellipaat Blog

AWS Cheat Sheet - Intellipaat Blog


Java Cheat Sheet

Java Cheat Sheet


8 Best Python Cheat Sheets for Beginners \u0026 Intermediate Learners

8 Best Python Cheat Sheets for Beginners \u0026 Intermediate Learners


Collection] 11 Python Cheat Sheets Every Python Coder Must Own

Collection] 11 Python Cheat Sheets Every Python Coder Must Own


CHEAT SHEET - SCIENCE \u0026 SOCIAL SCIENCE CLASS 10 BY BHAI KI PADHAI

CHEAT SHEET - SCIENCE \u0026 SOCIAL SCIENCE CLASS 10 BY BHAI KI PADHAI


Excel Formula Cheat Sheet 2019

Excel Formula Cheat Sheet 2019


The essential Angular 9 cheat sheet 2020

The essential Angular 9 cheat sheet 2020


Data Wrangling with Pandas Cheat Sheet - Docsity

Data Wrangling with Pandas Cheat Sheet - Docsity


Machine Learning Cheat Sheets - KDnuggets

Machine Learning Cheat Sheets - KDnuggets


How to Make the Perfect Cheat Sheet – Girl Knows Tech

How to Make the Perfect Cheat Sheet – Girl Knows Tech


Java Cheat Sheet

Java Cheat Sheet


Cheat Sheets for AI  Neural Networks  Machine Learning  Deep

Cheat Sheets for AI Neural Networks Machine Learning Deep


PDF] Computer Science Formula Book

PDF] Computer Science Formula Book


How to Make the Perfect Cheat Sheet – Girl Knows Tech

How to Make the Perfect Cheat Sheet – Girl Knows Tech


Microsoft Exam AZ-900 Cheat Sheet - TestPrep Training Blog

Microsoft Exam AZ-900 Cheat Sheet - TestPrep Training Blog


Online AP Test Cheat Sheets - 2020 AP Test Prep - EarlyScores

Online AP Test Cheat Sheets - 2020 AP Test Prep - EarlyScores


python-cheat-sheet-dataquestpdf

python-cheat-sheet-dataquestpdf


Microsoft Azure Cheat Sheet - Whizlabs Blog

Microsoft Azure Cheat Sheet - Whizlabs Blog


9 MATLAB Cheat Sheets for Data Science and Machine Learning

9 MATLAB Cheat Sheets for Data Science and Machine Learning


20+ Helpful Python Cheat Sheet of 2021 - RankRed

20+ Helpful Python Cheat Sheet of 2021 - RankRed


Cheat Sheet : All Cheat Sheets in one page

Cheat Sheet : All Cheat Sheets in one page

Politique de confidentialité -Privacy policy