Home
Explore
Exams
Search for anything
Login
Get started
Home
Engineering
AP Computer Science A
Unit 1: Primitive Types
AP CSC Unit 1
0.0
(0)
Rate it
Studied by 1 person
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/23
Earn XP
Description and Tags
Computer Science
AP Computer Science A
Unit 1: Primitive Types
Add tags
Study Analytics
All
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
24 Terms
View all (24)
Star these 24
1
New cards
Variable
A name associated with a memory location in the computer.
2
New cards
boolean
used to declare a variable that can only have the value true or false.
3
New cards
double
used to declare a variable that is a decimal number like 3.25.
4
New cards
int
used to declare a variable of type integer (a whole number like -3 or 235).
5
New cards
static
means that the field or method exists in the object that defines the class.
6
New cards
compiler
Software that translates the Java source code into the Java class file that can be run.
7
New cards
compiler or syntax error
An error or bug that is found by the compiler like a missing semicolon
8
New cards
Main Method
Where execution starts in a Java program.
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 (myScore).
11
New cards
Casting a Variable
Changing the type of a variable using (type) name.
12
New cards
System.out.println()
Java method that lets us print out a line of output followed by a newline to the user
13
New cards
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.
14
New cards
Initializing a Variable
The first time you set the value of a variable.
15
New cards
String literal
Text enclosed by double quotes.
16
New cards
modulo
The % operator which returns the remainder from one number divide by another.
17
New cards
Operator
Common mathematical symbols such as + for addition and * for multiplication.
18
New cards
Shortcut or compound assignment operators
Operators like x++ or x+\= 1 which mean x \= x + 1
19
New cards
assignment statements
initialize or change the value stored in a variable using the assignment operator \=.
20
New cards
data type
determines the size of memory reserved for a variable, for example int, double, boolean, String.
21
New cards
ArithmeticException
If you divide by zero, you will get this error.
22
New cards
operator precedence
Some operators are done before others, for example *, /, % have precedence over + and -, unless parentheses are used.
23
New cards
arithmetic expression
a sequence of operands and operators that describe a calculation to be performed, for example 3*(2 + x)
24
New cards
increment operator
The operator (++) that increases the value of a numerical variable by one.