AP CSA Unit 1: Using Objects and Methods

0.0(0)
studied byStudied by 5 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/61

flashcard set

Earn XP

Description and Tags

Honors JAVA/AP CSA

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

62 Terms

1
New cards

Syntax Error

An error in the code that occurs when the code does not conform to the syntax rules of the programming language.

2
New cards

Algorithm

A step-by-step procedure or formula for solving a problem.

3
New cards

String

A sequence of characters, typically used to represent text.

4
New cards

Variable

A storage location identified by a name that can hold different values during the execution of a program.

5
New cards

Primitive Type

Basic data types provided by a programming language, such as int, char, and boolean.

6
New cards

Boolean

A data type that can hold one of two values: true or false.

7
New cards

Reference Type

A data type that refers to an object or an instance of a class.

8
New cards

Data Type

A classification that specifies which type of value a variable can hold.

9
New cards

Reassignment

The process of assigning a new value to a variable that has already been initialized.

10
New cards

Modulus operator

An operator that returns the remainder of a division operation.

11
New cards

Integer Division

A division operation that results in an integer by discarding any fractional part.

12
New cards

Escape Sequence

A sequence of characters that represents a special character in a string.

13
New cards

Arithmetic Expression

An expression that uses arithmetic operators to compute a value.

14
New cards

Truncation

The process of shortening a number by removing digits, often resulting in a loss of precision.

15
New cards

Scanner class

A class in Java used to obtain input from various sources, including user input.

16
New cards

Assignment Statement

A statement that assigns a value to a variable.

17
New cards

Input Buffer

A temporary storage area for data being transferred from input devices.

18
New cards

Casting

The process of converting a variable from one data type to another.

19
New cards

Order of Operations

The rules that determine the sequence in which operations are performed in an expression.

20
New cards

Round-Off Error

The difference between the calculated value and the actual value due to rounding.

21
New cards

Integer Overflow

An error that occurs when a calculation exceeds the maximum limit of an integer data type.

22
New cards

Truncate

To shorten a number by dropping the decimal part.

23
New cards

Increment

The operation of increasing a variable's value by a fixed amount, usually by 1.

24
New cards

Decrement

The operation of decreasing a variable's value by a fixed amount, usually by 1.

25
New cards

Compound Assignment Operator

An operator that combines an arithmetic operation with assignment.

26
New cards

Method

A block of code that performs a specific task and can be called upon when needed.

27
New cards

Documentation

Written text that explains how to use a piece of software or code.

28
New cards

Library

A collection of pre-written code that can be used to perform common tasks.

29
New cards

API

Application Programming Interface; a set of routines, protocols, and tools for building software.

30
New cards

Comment Out

To disable a line of code by turning it into a comment.

31
New cards

Precondition

A condition that must be true before a method is executed.

32
New cards

Postcondition

A condition that must be true after a method has executed.

33
New cards

Single Line Comments

Comments that occupy a single line, typically starting with //.

34
New cards

Multi-line Comment

Comments that span multiple lines, typically enclosed in /* and */.

35
New cards

Javadoc Comment

A special type of comment used to generate documentation for Java code.

36
New cards

Argument

A value that is passed to a method when it is called.

37
New cards

Parameter

A variable in a method definition that receives an argument.

38
New cards

Method Signature

The combination of a method's name and its parameter list.

39
New cards

Method Overloading

The ability to define multiple methods with the same name but different parameter lists.

40
New cards

Return Type

The data type of the value that a method returns.

41
New cards

Void

A return type indicating that a method does not return a value.

42
New cards

Instance Method

A method that belongs to an instance of a class.

43
New cards

Static Method

A method that belongs to the class itself rather than any instance.

44
New cards

Encapsulation

The bundling of data and methods that operate on that data within a single unit, or class.

45
New cards

Modularization

The process of dividing a program into smaller, manageable, and independent modules.

46
New cards

Math class

A class in Java that provides methods for performing basic numeric operations.

47
New cards

Math.random

A method that returns a random double value between 0.0 and 1.0.

48
New cards

Math.sqrt

A method that returns the square root of a given number.

49
New cards

Math.pow

A method that returns the value of the first argument raised to the power of the second argument.

50
New cards

Class

A blueprint for creating objects that defines a set of attributes and methods.

51
New cards

Object

An instance of a class that contains data and methods.

52
New cards

Superclass

A class from which other classes inherit properties and methods.

53
New cards

Inheritance

A mechanism in object-oriented programming where one class can inherit properties and methods from another class.

54
New cards

Instantiate

The process of creating an instance of a class.

55
New cards

Attributes

Variables that hold data specific to an object.

56
New cards

Constructor

A special method used to initialize objects.

57
New cards

toString

A method that returns a string representation of an object.

58
New cards

Overloading

The ability to define multiple methods with the same name but different parameter types.

59
New cards

Concatenation

The operation of joining two or more strings together.

60
New cards

Substring

A portion of a string extracted from a larger string.

61
New cards

Immutable

An object whose state cannot be modified after it is created.

62
New cards

Implicit Conversion

Automatic conversion of one data type to another by the compiler.