AP Computer Science A Ultimate Guide

studied byStudied by 1251 people
3.6(25)
get a hint
hint

Polymorphism

1 / 141

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

142 Terms

1

Polymorphism

________ uses those methods to perform different tasks.

New cards
2

Recursion

________ has a similar idea to a loop, but it functions a bit differently.

New cards
3

Arrays

________ can store primitive or object data types.

New cards
4

Computer Science

An official name that pertains to the world of computers, and coding.

New cards
5

Programming style

A specific way that someone programs

New cards
6

commenting

Comments on the code, they don’t execute anything, but are their to improve the readability of the program for anyone looking at it

New cards
7

interpreter

enables the computer to understand the code

New cards
8

binary

the languages that computers understand, 0’s and 1’s

New cards
9

compiling

the process where the interpreter translates the java code into binary

New cards
10

logical error

something is incorrect with the logic behind the code, and it doesn’t give the provided output

New cards
11

string literal(string)

this is a type in java used to represent words, or sentences

New cards
12

escape sequence

a piece of code that begins with a backslash that indicates specific characters

New cards
13

assign

this sets values to a variable

New cards
14

assignment operator

The equal sign, =, that assigns a value to something

New cards
15

variable

used to store information to referenced, so that it can be manipulated in the program

New cards
16

concatenation operator

+ sign that is used between 2 entities to combine them

New cards
17

primitive data

the basic types of data used in java

New cards
18

integer

(int) it represents an integer number

New cards
19

double

(double) it represents a number that can be positive, negative, or zero and can contain decimals, or be fractions

New cards
20

boolean

(boolean) a representation of a value that is either true or false

New cards
21

character

(char) represents any single character that can be represented on the computer anywhere from special characters, letters, numbers, and spaces

New cards
22

precedence

the order of operations in java

New cards
23

strongly typed

meaning that java makes you define the variables data type

New cards
24

casting

has a higher precedence than all the other operators, and is used to convert the output that is produced

New cards
25

increment operator

used to increase the value of a number by 1

New cards
26

decrement operator

used to decrease the value of a number by 1

New cards
27

object

an entity or data type that we create in java.

New cards
28

class

they contain instance fields or data that belong to the object and methods that are used to manipulate the data

New cards
29

Precedence

the order of operations in java

New cards
30

static variable

the variable belongs to the class itself, and is initialized only once at the start of the execution

New cards
31

immutable

the state of the object doesn’t change since it has been initialized

New cards
32

Method usage

when using methods of a class, remember the parameters used to call the method need to match the data types of the arguments of the defined method

New cards
33

if

this is used as a subjective statement, it works hand in hand with conditional statements

New cards
34

conditional statement

used to control the flow of the program, and is based entirely on conditions

New cards
35

flow control

New cards
36

equality operator

(==), checks if something is equal to the other

New cards
37

truth value

the truth value, either true or false, for an expression

New cards
38

compound condition

multiple conditions put together

New cards
39

&&

logical and

New cards
40

||

logical or

New cards
41

!

logical not

New cards
42

==

is equal to

New cards
43

!=

isn’t equal to

New cards
44

trace table

used to easily trace values, and their outputs based on the code

New cards
45

blocking

used to execute more than one statement based on a condition

New cards
46

loop

used for when programmers want a statement to execute repeatedly

New cards
47

nested loop

a loop that is found inside a loop

New cards
48

while loop

while the condition is true the loop continues to execute, otherwise it exits the loop

New cards
49

infinite loop

the loop isn’t structured correctly, or there is an error in the logic which causes the loop to execute forever

New cards
50

for

loop

New cards
51

loop

used for when programmers want a statement to execute repeatedly

New cards
52

nested loop

a loop that is found inside a loop

New cards
53

while loop

while the condition is true the loop continues to execute, otherwise it exits the loop

New cards
54

infinite loop

the loop isn’t structured correctly, or there is an error in the logic which causes the loop to execute forever

New cards
55

for

loop

New cards
56

class

When a group of statements, such as control structures, are all put together to be referred to this

New cards
57

source code

this is the java programming file that hosts the code

New cards
58

method

a block of code that, when called, performs specific actions mentioned in it

New cards
59

driver class

a class in charge of running other classes

New cards
60

object class

the parent classes of all the java classes

New cards
61

header

where you tell Java what value type, if any, the method will return

New cards
62

constructor

a special method used to initalize objects

New cards
63

instance variables(fields)

a variable that is specific to a certain object

New cards
64

return type

the primitive type in which data should return

New cards
65

parameters

the variables listed as a part of the method decleration

New cards
66

precondition

a condition that must be true for your method code to work

New cards
67

postcondition

a condition that is true after the method runs

New cards
68

static

it belongs to the class rather than to a specific instance

New cards
69

class

When a group of statements, such as control structures, are all put together to be referred to this

New cards
70

source code

this is the java programming file that hosts the code

New cards
71

method

a block of code that, when called, performs specific actions mentioned in it

New cards
72

driver class

a class in charge of running other classes

New cards
73

object class

the parent classes of all the java classes

New cards
74

header

where you tell Java what value type, if any, the method will return

New cards
75

constructor

a special method used to initalize objects

New cards
76

instance variables(fields)

a variable that is specific to a certain object

New cards
77

return type

the primitive type in which data should return

New cards
78

parameters

the variables listed as a part of the method decleration

New cards
79

precondition

a condition that must be true for your method code to work

New cards
80

postcondition

a condition that is true after the method runs

New cards
81

static

it belongs to the class rather than to a specific instance

New cards
82

array

holds many items of the same type

New cards
83

initializer list

the values that you instantiate in an array

New cards
84

index numbers

locations that are used to assign to each element found in the array

New cards
85

traverse

the way an element in a data structured is accessed, or modified

New cards
86

null

the default value for every object

New cards
87

NullPointerException

since null isn’t a valid object, the code performed on null will result in this

New cards
88

Sequential search

goes in order through each value until the desired one is found

New cards
89

Binary search

requires an ordered list of values, and every time it cuts the list of values in half until it finds the desired value

New cards
90

selection sort

the selection sort searches and swaps

New cards
91

merge sort

uses recursion, this type of sort divides and conquers, the array gets split into 2 pieces and then it is sorted, the 2 sorted pieces than come together to form one sorted list

New cards
92

recursion

using a method to call itself

New cards
93

insertion sort

the array is split into a sorted and unsorted part, the values from the unsorted part are placed at the correct position in the sorted part

New cards
94

2D Arrays

an array that holds items in a 2 dimensional grid, it’s storing items in rows and columns

New cards
95

array

holds many items of the same type

New cards
96

initializer list

the values that you instantiate in an array

New cards
97

index numbers

locations that are used to assign to each element found in the array

New cards
98

traverse

the way an element in a data structured is accessed, or modified

New cards
99

null

the default value for every object

New cards
100

NullPointerException

since null isn’t a valid object, the code performed on null will result in this

New cards