Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password

Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

AP Computer Science vocab and review for Semester 1 Midterm

Quiz yourself by thinking what should be in each of the black spaces below before clicking on it to display the answer.
        Help!  

Question
Answer
show Error in program that won't let it run  
🗑
show Error that runs, but doesn't work the way we wanted it to  
🗑
show Program runs/compiles, but then error occurs  
🗑
show Something happening, during the run of the code  
🗑
Casting   show
🗑
show A type of division to say the remainder  
🗑
Math Class Methods   show
🗑
show Char, String, boolean, int, double  
🗑
show int x = (int)(Math.random()*101);  
🗑
Rounding to nearest whole number formula   show
🗑
Difference between System.out.print() and System.out.println()   show
🗑
final   show
🗑
show Int is a whole number, double is decimals  
🗑
Postfix Operations   show
🗑
Prefix Operations   show
🗑
show An entity in code, sometimes representing an object or concept from the real world, that has a set of attributes and behaviors. The attributes hold specific values; some of them can change while the program is running  
🗑
show Describe features of the class, become fields  
🗑
null   show
🗑
show Non - static variables that are declared in the class, outside of methods and constructors, however, the constructor typically takes them in  
🗑
Constructor   show
🗑
show Same name as the class name  
🗑
Methods   show
🗑
show operator used to create new objects, it assigns the reference and defines an instance of an object  
🗑
No-args Constructor   show
🗑
Reference   show
🗑
show no return type needed for method, used in method declaration  
🗑
show The parameters used in calling a method or class  
🗑
Formal Parameter   show
🗑
Accessor Method   show
🗑
show Variable that holds two value types, either true or false  
🗑
show Logic part, which based on the condition, tells the computer which way the program should go  
🗑
relational operators(list them)   show
🗑
logical operators(list them)   show
🗑
DeMorgan's Laws (list them)   show
🗑
short-circuit evaluation   show
🗑
show equal to relational operator, if you apply the == to object types, you aren't comparing the object values, but their references, or addresses in memory  
🗑
nested if/else statement   show
🗑
String class equals() method   show
🗑
show compareTo() method is used to compare alphabetical order, parameter is a String, Returns negative if the String comes before the parameter, returns 0 if String is equal to the parameter, returns positive int if the String comes after the parameter.  
🗑
show Initialization, testing, change  
🗑
show To set a variable to a value for the first time.  
🗑
show Either an operator used for adding 1 to an integer variable, x++ or x+=1, or the process of adding an amount of numbers to your variable in the loop  
🗑
decrement   show
🗑
break   show
🗑
show Repetition of a process, in this case, a loop. A full iteration of a loop is a full run-through of it, and going back to the condition to test if it should run again.  
🗑
show Loop within another loop, inside loop must completely finish before outer loop does  
🗑
do while loop   show
🗑
show A loop, which, when the condition evaluates to true, the body of the loop executes. It will keep iterating, until the condition is false.  
🗑
for loop   show
🗑
show A more or less compact, general, and abstract step-by-step recipe that describes how to perform a certain task or solve a certain problem. Existed long before computers.  
🗑
show Formal notation to help with recording algorithms.  
🗑
show Graphical representation of an algorithm. Parallelograms represent input and output, rectangles represent processing steps and diamonds represent conditions checked.  
🗑
Copy Constructor   show
🗑
show No-args Constructor that is automatically made if you do not have one made for your class/object. all values default  
🗑
This   show
🗑
primitives passed "by value"   show
🗑
parameters of object type passed "by reference"   show
🗑
show Tells method what to return, can be used like a break  
🗑
overloaded method   show
🗑
show Static fields are also called class variables, and they are shared by ALL objects of the class, static implies that the values of the fields do not change each instance, but if a change is made to a static field it changes it for every instance,  
🗑
show Some details of a class are kept hidden from the class's clients, providing as little info to the runner/client class as possible.  
🗑
encapsulation   show
🗑
show Method's name and parameter list, the signature of a method call must match the signature in the header for the code to compile.  
🗑
static method   show
🗑
null pointer exception   show
🗑
precondition   show
🗑
postcondition   show
🗑
show A variable that holds multiple values of the same data type.  
🗑
show Index used to reference individual compartments(single part/value of an array). Subscript can be number, variable, or an expression in square brackets.  
🗑
array .length   show
🗑
ArrayIndexOutOfBoundsException   show
🗑
Syntax for declaring a 1-D array   show
🗑
show To access each element of an array, once and processing that element, the for each loop structure can easily traverse  
🗑
show Loop structure that is made for traversing an array, or accessing each element of an array.  
🗑
code to total the contents of an int or double array   show
🗑
show int [] array = {90, 23, 72, 9832, 93939};  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: 25oparedes
Popular Computers sets