Home
Explore
Exams
Search for anything
Search for anything
Login
Get started
Home
Engineering
AP Computer Science A
Unit 1: Primitive Types
AP CSC Unit 1
Studied by 1 person
0.0
(0)
Add a rating
Learn
A personalized and smart learning plan
Practice Test
Take a test on your terms and definitions
Spaced Repetition
Scientifically backed study method
Matching Game
How quick can you match all your cards?
Flashcards
Study terms and definitions
1 / 23
Earn XP
Description and Tags
Computer Science
AP Computer Science A
Unit 1: Primitive Types
Add tags
24 Terms
View all (24)
Star these 24
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
🙋
Chapter 8: Political Participation
Note
Studied by 29 people
666 days ago
5.0
(1)
Preview
Unit 1 Knowledge (Biology 1-2 H)
Note
Studied by 25 people
544 days ago
5.0
(1)
Preview
VICTOR HUGO
Note
Studied by 3 people
82 days ago
5.0
(1)
Preview
🎨
AP French Language and Culture: Unit 3: Influences of Beauty and Art
Note
Studied by 235 people
698 days ago
5.0
(3)
Preview
⛵
AP World History: Modern (Transoceanic Trade)
Note
Studied by 32 people
131 days ago
5.0
(1)
Preview
🌍
AP World Exam 2023
Note
Studied by 85 people
308 days ago
5.0
(1)
Preview
🔄
Present Simple - Теперішній Простий (неозначений) час
Note
Studied by 8 people
3 days ago
5.0
(1)
Preview
✍️
Arrays
Note
Studied by 1958 people
694 days ago
4.9
(7)
Preview
Explore top flashcards
PERSPECTIVA GENERAL DE LA INFLAMACION
Flashcard (38)
Studied by 3 people
283 days ago
5.0
(1)
Preview
01-02 - General Principles of Diagnostic Imaging
Flashcard (60)
Studied by 18 people
531 days ago
5.0
(1)
Preview
Japanese 302 final exam Kanji flashcards
Flashcard (65)
Studied by 27 people
686 days ago
5.0
(1)
Preview
French numbers 1-30
Flashcard (31)
Studied by 8 people
80 days ago
5.0
(1)
Preview
Unit 4 – Earth Systems & Resources | Fall Semester Exam (copy)
Flashcard (37)
Studied by 252 people
446 days ago
5.0
(2)
Preview
2nd Antivirals
Flashcard (23)
Studied by 3 people
504 days ago
5.0
(1)
Preview
mTBI
Flashcard (38)
Studied by 6 people
357 days ago
5.0
(1)
Preview
E 3BI - Wordslist 4 - HTL Neufelden
Flashcard (25)
Studied by 112 people
706 days ago
5.0
(8)
Preview