AP CSC Unit 1

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 23

24 Terms

1
Variable
A name associated with a memory location in the computer.
New cards
2
boolean
used to declare a variable that can only have the value true or false.
New cards
3
double
used to declare a variable that is a decimal number like 3.25.
New cards
4
int
used to declare a variable of type integer (a whole number like -3 or 235).
New cards
5
static
means that the field or method exists in the object that defines the class.
New cards
6
compiler
Software that translates the Java source code into the Java class file that can be run.
New cards
7
compiler or syntax error
An error or bug that is found by the compiler like a missing semicolon
New cards
8
Main Method
Where execution starts in a Java program.
New cards
9
Boolean
An expression that is either true or false.
New cards
10
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 (myScore).
New cards
11
Casting a Variable
Changing the type of a variable using (type) name.
New cards
12
System.out.println()
Java method that lets us print out a line of output followed by a newline to the user
New cards
13
Declare 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.
New cards
14
Initializing a Variable
The first time you set the value of a variable.
New cards
15
String literal
Text enclosed by double quotes.
New cards
16
modulo
The % operator which returns the remainder from one number divide by another.
New cards
17
Operator
Common mathematical symbols such as + for addition and * for multiplication.
New cards
18
Shortcut or compound assignment operators
Operators like x++ or x+\= 1 which mean x \= x + 1
New cards
19
assignment statements
initialize or change the value stored in a variable using the assignment operator \=.
New cards
20
data type
determines the size of memory reserved for a variable, for example int, double, boolean, String.
New cards
21
ArithmeticException
If you divide by zero, you will get this error.
New cards
22
operator precedence
Some operators are done before others, for example *, /, % have precedence over + and -, unless parentheses are used.
New cards
23
arithmetic expression
a sequence of operands and operators that describe a calculation to be performed, for example 3*(2 + x)
New cards
24
increment operator
The operator (++) that increases the value of a numerical variable by one.
New cards

Explore top notes

note Note
studied byStudied by 29 people
666 days ago
5.0(1)
note Note
studied byStudied by 25 people
544 days ago
5.0(1)
note Note
studied byStudied by 3 people
82 days ago
5.0(1)
note Note
studied byStudied by 235 people
698 days ago
5.0(3)
note Note
studied byStudied by 32 people
131 days ago
5.0(1)
note Note
studied byStudied by 85 people
308 days ago
5.0(1)
note Note
studied byStudied by 1958 people
694 days ago
4.9(7)

Explore top flashcards

flashcards Flashcard (38)
studied byStudied by 3 people
283 days ago
5.0(1)
flashcards Flashcard (60)
studied byStudied by 18 people
531 days ago
5.0(1)
flashcards Flashcard (65)
studied byStudied by 27 people
686 days ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 8 people
80 days ago
5.0(1)
flashcards Flashcard (37)
studied byStudied by 252 people
446 days ago
5.0(2)
flashcards Flashcard (23)
studied byStudied by 3 people
504 days ago
5.0(1)
flashcards Flashcard (38)
studied byStudied by 6 people
357 days ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 112 people
706 days ago
5.0(8)
robot