Home
Explore
Exams
Login
Get started
Home
Engineering
Computer Science
AP CSA Final
0.0
(0)
Rate it
Studied by 1 person
Call Kai
Locked
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/24
Earn XP
Description and Tags
Computer Science
All Modes
Learn
Practice Test
Matching
Spaced Repetition
Call with Kai
Chats
Last updated 2:16 AM on 1/19/23
Update
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat
No analytics yet
Send a link to your students to track their progress
25 Terms
View all (25)
Star these 25
1
New cards
alias
reference variable that points to the same object as another reference variable; object a = new object(); object b = a;
2
New cards
equals() method
returns true if two reference variables are aliases (a == b)
3
New cards
nested if statement
if statement inside another if statement
4
New cards
!
not
5
New cards
&&
and
6
New cards
||
or
7
New cards
compound Boolean expression
expression using logical operators that evaluates to a Boolean value
8
New cards
short-circuited evaluation
when the result of a logical expression can be determined by evaluating the first Boolean operand
9
New cards
De Morgan’s Laws
set of rules describing how to simplify complex Boolean expressions; move not inside and flip sign
10
New cards
!(A && B)
!A || !B
11
New cards
!(A || B)
!A && !B
12
New cards
!(A == B)
A != B
13
New cards
!(A != B)
A == B
14
New cards
!(A < B)
A >= B
15
New cards
!(A <= B)
A > B
16
New cards
static variable
variable shared by all instances of a class
17
New cards
static method
method that belongs to a class; can be called without creating an object of the class; cannot change instance variables
18
New cards
final class
class that cannot be extended
19
New cards
abs()
returns absolute value
20
New cards
sqrt(double)
returns positive square root
21
New cards
pow(a, b)
returns a^b
22
New cards
cast
assign a value of one type to another
23
New cards
Math.random()
returns double value greater than or equal to 0.0 and less than 1
24
New cards
formula for random number within a range
(int)(Math.random() \*\[largest val - smallest val +1\]) + min
25
New cards
multi-selection statement
statement that selects a single action from 3+ conditional statements