Unit 1: Primitive Types Flashcards
(int)
A data type in programming that represents whole numbers without decimal points. It stands for “integer” and can be used to store positive, negative, or zero values.
*= operator
A shorthand notation used in programming to multiply and assign a value to a variable. It multiplies the current value of the variable by another value and stores the result back into the same variable.
Access Modifiers
Keywords in programming that determine the accessibility of classes, methods, and variables. They control whether other parts of the program can access and use these elements.
AP CSA
Stands for Advanced Placement Computer Science A. It is an advanced level course offered in high schools that focuses on teaching students the fundamentals of computer science and programming.
Arithmetic Operators
Symbols used in programming to perform mathematical operations on numerical values. They include addition, subtraction, multiplication, division, and modulus.
Array of chars
A data structure that stores a sequence of characters. It is often used to represent strings in programming.
Assignment operator
Used to assign a value to a variable. It is represented by the equals sign (=) and it assigns the value on the right side of the equals sign to the variable on the left side.
Binary Code
A coding system that uses only two digits, 0 and 1, to represent information. It is the fundamental language of computers.
BlueJ
An integrated development environment (IDE) primarily used for teaching introductory Java programming. It provides a simplified interface and visual tools to help beginners understand object-oriented concepts.
boolean
A data type that can only have two possible values - true or false. It is often used in programming to make decisions and control the flow of a program.
Camel Casing
A naming convention where each word in a compound identifier is capitalized except for the first word, which starts with a lowercase letter. It is commonly used in programming languages to make variable and function names more readable.
Classes
User-defined data types in object-oriented programming. They serve as blueprints for creating objects by defining their attributes and methods.
Code Tracing
The process of manually following the execution of a program to understand how it works and identify any errors or bugs. It involves stepping through each line of code, keeping track of variable values and function calls.
Compound Assignment Operators
Shorthand notations that combine an arithmetic operation with the assignment operator. They allow you to perform an operation and assign the result to a variable in a single step.
Data Type Declaration
Specifies the type of data that a variable can hold in a programming language. It defines what kind of values can be stored and how those values can be manipulated.
Decrement Operator (–)
Used to decrease the value of a variable by 1. It subtracts 1 from the current value of the variable.
Decrementing
Refers to the process of decreasing a value by a certain amount. It is commonly used in programming to subtract a specific number from a variable.
Division Symbol (/)
Used in programming to perform the mathematical operation of division between two numbers. It takes a dividend (the number being divided) and a divisor (the number dividing the dividend), and returns the quotient (the result of division).
Double
In Java, is both a wrapper class for primitive type double and also represents real numbers with decimal points. It provides useful methods for performing mathematical operations on these numbers.
Double
In Java, it is both a wrapper class for primitive type double and also represents real numbers with decimal points. It provides useful methods for performing mathematical operations on these numbers.
final keyword (in context of constants)
Used to declare a constant variable in Java, meaning its value cannot be changed once assigned. It is often used to define values that should not be modified throughout the program.
Final Modifier
Used in programming languages to indicate that a variable cannot be changed once it has been assigned a value or that a method cannot be overridden by subclasses.
High-level programming languages
Languages that are designed to be easily understood by humans. They use natural language elements and abstract away low-level details, making it easier for programmers to write code.
Increment Operator (++)
Used to increase the value of a variable by 1. It adds 1 to the current value of the variable.