AP CSA - Object-Oriented Programming

5.0(1)
studied byStudied by 2 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/39

flashcard set

Earn XP

Description and Tags

For Mrs. Wright's Block 5 AP CSA Class :)

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

object-oriented programming

an approach to creating and using models of physical or imagined objects

2
New cards

class

a programmer-defined list of attributes and instructions (“blueprint”) from which objects are used

3
New cards

object

an instance of a class

4
New cards

attribute

a characteristic of an object; also known as a field or property

5
New cards

behavior

an action that an object can perform; also known as a method

6
New cards

instantiate

to call the constructor to create an object

7
New cards

constructor

a block of code that has the same name as the class and tells the computer how to create a new object

8
New cards

reference variable

a variable that points to an object

9
New cards

state

the attributes represented by the object’s instance variables

10
New cards

uml diagram

a standard way to visualize the design of a system or software

11
New cards

parameter

a variable in the method that defines the type of value to receive when the method is called

12
New cards

dot operator

a dot that is used to call a method in a class

13
New cards

argument

a value passed to a method when the method is called

14
New cards

string literal

a sequence of characters enclosed in quotation marks (“ ")

15
New cards

superclass

a class that can be extended to create subclasses

16
New cards

subclass

a class that extends a superclass and inherits its attributes and behaviors

17
New cards

inheritance

a programming principle where a subclass inherits the attributes and behaviors of a superclass

18
New cards

tester class

the class that contains the main method and from where the program starts running

19
New cards

return type

specifies the value returned before a method completes its execution and exits

20
New cards

method signature

consists of a name and parameter list

21
New cards

return

to exit a method and going back to the point in the program that called it with the requested value or information

22
New cards

void

specifies that a method should not have a return value

23
New cards

programming style

a set of guidelines and best practices for formatting program code

24
New cards

documentation

written descriptions of the purpose and functionality of code

25
New cards

commit

an operation which saves the latest changes of the code and represents a snapshot of a project

26
New cards

code review

the process of examining code and providing feedback to improve the quality and functionality of the program

27
New cards

sequencing

putting steps in order

28
New cards

selection

deciding which steps to do next

29
New cards

iteration statement

a control structure that repeatedly executes a block of code

30
New cards

selection statement

a statement that only executes when a condition is true

31
New cards

variable

a container that stores a value in memory; can hold only one value at a time

32
New cards

data type

the format of the data that can be assigned to a variable

33
New cards

declaration

giving a name and a data type to a variable

34
New cards

concatenation

joining two strings together (Hint: it’s also Mrs. Guy’s favorite coding-related word!)

35
New cards

decomposition

breaking a problem down into smaller parts

36
New cards

redundant code

code that is unnecessary

37
New cards

efficient

getting the best outcome with the least amount of waste

38
New cards

pseudocode

a plain language description of the steps in an algorithm

39
New cards

two-way selection statement

specifies a block of code to execute when the condition is true and a block of code to execute when the condition is false

40
New cards

logical operator

an operator that returns a Boolean value