Runestone Full AP Comp Sci A Vocab

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

1/20

flashcard set

Earn XP

Description and Tags

I FUCKING HATE CODING BUT WE BALL

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

Compiler

A program that translates source code written in a high-level programming language (Java in this case) into machine code that a computer can execute.

2
New cards

Compiler/Syntax Error

Definition: Compiler error happens during code translation to machine code.

Causes: Syntax, type errors, missing libraries, wrong function calls.

Impact: Stops program compilation or execution.

Examples: Missing semicolons, wrong parentheses, undeclared variables.

Resolution: Fix code based on error messages.

3
New cards

Main Method

Main Method: The entry point of a Java program where execution begins. It must be public, static, void, and accept an array of Strings as arguments.

4
New cards

Variable

A name associated with a memory location in the computer

5
New cards

Declaring a Variable

Specifying the type and name for a variable. This sets aside memory for a variable of that type and associates the name with that memory location

6
New cards

Initializing A Variable

Setting a value to a variable when it is first created in a program, typically done using an assignment statement.

7
New cards

Data type

defines the type of data a variable can hold, such as integer, string, or boolean. It helps in determining the operations that can be performed on the data.

8
New cards

Integer

A whole number that can be positive, negative, or zero. It does not include fractions or decimals. Examples include -3, 0, and 5.

9
New cards

Boolean

An expression that is either true or false

10
New cards

Camel Case

One way to create a variable name by appending several words together and uppercasing the first letter of each word after the first word

11
New cards

Casting a Variable

Converting a data type to another for operations, ensuring compatibility. E.g., changing an integer to a string for concatenation. This is done using (type) name.

12
New cards

Operator

Common mathematical symbols such as + and *

13
New cards

Compound assignment/Shortcut Operators

shorthand notations in programming that combine arithmetic operators with the assignment operator. They simplify code by operating and assignment in one step. E.g. x++ which means x = x + 1

14
New cards

Remainder

The % (mod) operator which returns the remainder from one number divided by another

15
New cards

Arithmetic Expression

A sequence of operands and operators that describer a calculation to be performed, for example 3 * (2+x)

16
New cards

Operator Precedence

Some operators are done before others, for example, *,/,% have precedence over + and -, unless parenthesis are used. Rules of PEMDAS apply

17
New cards

boolean(type)

used to declare a variable that can only have the value true or false

18
New cards

double / int / String (type)

used to declare a variable of types double, int, or String

19
New cards

System.out.print() / System.out.println()

you know what this fucking does you soggy bucket of unseasoned chips

20
New cards

=

Used for assignment to a variable

21
New cards

==

a comparison operator used to check if two values are equal in programming languages.