AP Computer Science Final Study Pack
These are the banked questions for AP Computer Science. you can do it friend yes we can #TheStruggle
Terms in this set (59)
An _____ is the name of a variable, method, or class.
You can change the value of a variable by using the ______ operator.
Complete the following code, which sets bIGRiver to the String object "MISSISSIPPI".
String river = "Mississippi"
String bigRiver = _______
A method name is ______ if a class has more than one method with the same name (but different parmeter types)
The ____ operator, folowed by a class name and parameters, is used to construct new objects.
Complete the following code, which replaces all occurences of "issipp" in "Mississippi" with "our".
String river = "Mississippi";
A _____ is a storage location in the computer's memory that has a type, a name, and cotnents.
According to convention, variable and method names should begin with a ______ letter.
A _____ is a collection of classes with a related purpose.
The ____ of a class specifies what you can do with its objects.
??? we,,, just don't know.... study hard.... #TheStruggle
_______ are entities in your program that you manipulate by calling methods.
The _____ paramter of a method is the object on which the method is invoked.
When an instance field is declared within the _______ access specifier, this means that the field can only be accessed by the methods of the same class and not by any other method.
The _____ statement statement is used to specify the value that a method returns to its caller.
The Java virtual machine contains an agent called a _____________________ that periodically reclaims objects when they are no longer used.
The name of the constructor is always the same of the name of the _____
The public constructors and methods of a class form the public ____ of the class.
In the statement below, amount is referred to as the _____parameter:
public void deposit(double amount)
Documentation _____ can be used to describe the classes and publuic methods of programs.
Each object of a class has its own set of _______
The black boxes from which a program is manufactured are called ______
Numerical ___ are values that do not change and that have a special significance for a computation
The ____ operator is called the assignment operator
A string lenthof zero is called the empty string and is written as_____
The _______ method is used to extract part of a string
String positions are counted with ____
The ___ character is used as an escape character in Java.
The value of x after following sequence of statements is ____: x--; x++;
Java uses the _____ encoding chem to demote international characters
Math.____ returns the larger of x and y.
Complete the following code, which reads the next floating-point number.
Scanner in = new Scanner(System.in);
System.out.print("Enter price: ")
double price = ______;
In order to display drawing in a frame, you should define a class that extends the ________ class.
When a window is shown for the first time, the _________ method is called automatically.
Use a ____ to recover the graphics 2D object from the Graphics parameter of the paintComponent method.
Complete the following statement, which constructs an ellipse:
Ellipse2D.Double ellipse = new ______ (x, y, width, height);
The ______ method of the Graphics2D class can be used to draw a string anywhere in a window.
The ______ class extends the Graphics class in Java.
Place drawing components inside the _____ method. That method is called whenever the component needs to be repainted.
In Java, colors are specified by defining their _____, ____, and _____ values.
Red, blue, and green
____ is the nickname for the graphical user interface library in Java.
To draw a line in ava, you should use an object of the ______ class.
To run an applet, you need a _______file with the applet tag.
You view applets with the _____ or a Java enabled browser.
To compare the contents of objects, you must use the ______ methods.
_____ _are combinations of keystrokes that allow you to carry out tasks that are more commonly carried out by using the mouse.
The _____ type has two values: true and false.
______ law shows how to simplify expressions in which the not operator is applied to terms joined by the && or || operators.
You should use the _____ operator to test whether an object reference is a null reference.
The _____ reference indicates that a strig variable refers to no string at all.
A conditional statement such as if(x>=0) y = z; is called a ____ statement
In Java, the ambiguous else is also called the _____ else
An _____ type has a finite set of values.
While traversing the characters in a string, the bounds are ______
One common method for indicating the end of a data set is a _______, a value that is not part of the data.
A loop that runs forever and can be stopped only by killing the program or restarting the computer is called an __________
A loop which requires you to go halfway into it before knowing whether or not to terminate is often called a ____________
loop and a half
In Java, unsophisticated programmers falsely believe that all for loops have ______ bounds
In the _____ loop header, you can declare multiple variables, as long as they are of the same type and you can include multiple update expressions, separated by commas.
The ___ loop is executed at least once.
YOU MIGHT ALSO LIKE...
Computer Science Test 1
BP CH 7 - Classes & Objects
CH 3+4 Java
THIS SET IS OFTEN IN FOLDERS WITH...
AP Computer Science A - Review 1
AP Computer Science Terms
AP Computer Science Final
AP Computer Science