AP Comp Sci A First Quiz lol

studied byStudied by 0 people
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 / 112

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

113 Terms

1

Console

Text window for displaying output in Java.

New cards
2

Class

A blueprint for creating objects in Java.

New cards
3

Main Method

Entry point for Java program execution.

New cards
4

String Literal

Fixed sequence of characters in quotes.

New cards
5

System.out.print

Prints text without a newline in Java.

New cards
6

System.out.println

Prints text followed by a newline in Java.

New cards
7

Escape Characters

Special codes for formatting output in Java.

New cards
8

New Line Escape

Code to create a new line: \n.

New cards
9

Tab Escape

Code for inserting a tab: \t.

New cards
10

Double Quote Escape

Code for printing quotes: ".

New cards
11

Backslash Escape

Code for printing backslash: \.

New cards
12

Curly Braces

Used to define code blocks in Java.

New cards
13

Good Style

Readable and organized code structure.

New cards
14

Bad Style

Poorly formatted and hard to read code.

New cards
15

Comment

Non-executable text for code documentation.

New cards
16

Single-line Comment

Comment initiated with // in Java.

New cards
17

Multi-line Comment

Comment enclosed between /* and */.

New cards
18

Eagleson's Law

Code not revisited in six months is forgotten.

New cards
19

Variable

Named storage location for data in Java.

New cards
20

Variable Declaration

Specifying type and name of a variable.

New cards
21

Variable Initialization

Assigning an initial value to a variable.

New cards
22

Assignment Operator

Equal sign used to assign values to variables.

New cards
23

CamelCase

Naming convention with capitalized words.

New cards
24

Debugging

Identifying and fixing errors in code.

New cards
25

Commenting Out Code

Disabling code by turning it into a comment.

New cards
26

Scanner

Java class for reading user input.

New cards
27

Integer Type

Data type for whole numbers in Java.

New cards
28

Double Type

Data type for decimal numbers in Java.

New cards
29

Character Type

Data type for single characters in Java.

New cards
30

testScore

Variable representing a student's test score value.

New cards
31

scoreOne

Integer variable initialized with value 2.

New cards
32

scoreTwo

Integer variable initialized with value 5.

New cards
33

RAM

Random Access Memory, computer's short-term memory.

New cards
34

Bit

Smallest data unit, either 0 or 1.

New cards
35

Byte

Collection of 8 bits.

New cards
36

Primitive Types

Basic data types in Java, excluding objects.

New cards
37

byte

Stores very small integers, 8 bits.

New cards
38

short

Stores small integers, 16 bits.

New cards
39

int

Stores normal integers, 32 bits.

New cards
40

long

Stores large integers, 64 bits.

New cards
41

float

Stores less precise decimal values, 32 bits.

New cards
42

double

Stores more precise decimal values, 64 bits.

New cards
43

boolean

Stores true or false value, 1 bit.

New cards
44

char

Stores a single character, 16 bits.

New cards
45

ASCII

Character encoding standard with 256 characters.

New cards
46

Casting

Converting one data type to another.

New cards
47

Explicit Casting

Directly specifying conversion to another type.

New cards
48

Implicit Casting

Automatic conversion from smaller to larger type.

New cards
49

Arithmetic Operators

Operators for mathematical operations: +, -, *, /.

New cards
50

Compound Operators

Shorthand for modifying variable values.

New cards
51

Increment Operator

Increases variable value by one.

New cards
52

Decrement Operator

Decreases variable value by one.

New cards
53

ArithmeticException

Error thrown when dividing by zero.

New cards
54

Integer Division

Division where decimal part is truncated.

New cards
55

Modulus Operator

Returns remainder of division.

New cards
56

Constant

Unchangeable value throughout the program.

New cards
57

final Keyword

Designates a variable as a constant.

New cards
58

Magic Number

Hardcoded value without clear purpose.

New cards
59

Magic Numbers

Hard-coded values that reduce code clarity.

New cards
60

Self-Documenting Code

Code where names describe their purpose.

New cards
61

Constants

Fixed values that cannot be changed.

New cards
62

Variables

Named storage for values that can change.

New cards
63

Literals

Fixed values directly written in code.

New cards
64

Boolean

A value that is either true or false.

New cards
65

Logical Operators

Operators to combine boolean expressions.

New cards
66

AND Operator

True if both expressions are true.

New cards
67

OR Operator

True if at least one expression is true.

New cards
68

NOT Operator

Reverses the value of a boolean expression.

New cards
69

Comparison Operators

Operators to compare numerical values.

New cards
70

Equality Operator

Checks if two values are equal (==).

New cards
71

If Statement

Branches code based on a boolean expression.

New cards
72

Else Statement

Executes code when the if condition is false.

New cards
73

Else If Statement

Adds additional conditions to an if statement.

New cards
74

Switch Statement

Organizes multiple cases based on a variable.

New cards
75

String

A sequence of characters, not a primitive type.

New cards
76

MACRO_CASE

Convention for naming constants in all caps.

New cards
77

camelCase

Naming convention for variables with mixed case.

New cards
78

PascalCase

Naming convention for classes with initial capitals.

New cards
79

Chaining Comparisons

Combining comparisons using logical operators.

New cards
80

Boolean Expression

An expression that evaluates to true or false.

New cards
81

Critical Hit Chance

Probability of scoring a critical hit.

New cards
82

Fixed Values

Constants representing unchangeable data.

New cards
83

Bugs

Errors caused by incorrect code logic.

New cards
84

Code Clarity

The ease of understanding code structure.

New cards
85

Data Types

Categories of data that determine value behavior.

New cards
86

String Immutability

Strings cannot be changed after creation.

New cards
87

String Comparison

Use .equals() or .equalsIgnoreCase() methods.

New cards
88

charAt()

Returns character at specified index in String.

New cards
89

substring()

Extracts part of a String between indices.

New cards
90

length()

Returns the number of characters in String.

New cards
91

toUpperCase()

Returns uppercase version of the String.

New cards
92

toLowerCase()

Returns lowercase version of the String.

New cards
93

contains()

Checks if String includes specified text.

New cards
94

indexOf()

Finds first occurrence index of specified text.

New cards
95

replace()

Replaces occurrences of a specified String.

New cards
96

Concatenation

Combining two Strings using + operator.

New cards
97

Scanner Class

Used for input from console in Java.

New cards
98

Creating Scanner

Instantiate Scanner with new Scanner(System.in).

New cards
99

next()

Reads next word input as String.

New cards
100

nextInt()

Reads next integer input as int.

New cards

Explore top notes

note Note
studied byStudied by 13 people
884 days ago
5.0(1)
note Note
studied byStudied by 37 people
869 days ago
5.0(1)
note Note
studied byStudied by 57 people
676 days ago
5.0(1)
note Note
studied byStudied by 82 people
388 days ago
5.0(2)
note Note
studied byStudied by 11 people
845 days ago
5.0(1)
note Note
studied byStudied by 7 people
915 days ago
5.0(1)
note Note
studied byStudied by 11 people
706 days ago
5.0(2)
note Note
studied byStudied by 337 people
211 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (50)
studied byStudied by 8 people
366 days ago
5.0(1)
flashcards Flashcard (78)
studied byStudied by 57 people
7 days ago
5.0(1)
flashcards Flashcard (87)
studied byStudied by 80 people
373 days ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 6 people
307 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 21 people
757 days ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 1 person
720 days ago
5.0(1)
flashcards Flashcard (96)
studied byStudied by 1 person
303 days ago
5.0(1)
flashcards Flashcard (68)
studied byStudied by 23 people
177 days ago
5.0(1)
robot