CSP 26 midterm personal studyguide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/63

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:44 AM on 3/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

64 Terms

1
New cards

*Program*

Software containing a group of instructions to instruct the computer to perform tasks.

2
New cards

*Compiler*

A program that translates high-level source code into an executable form, such as byte code.

3
New cards

*Java Virtual Machine (JVM)*

A program that simulates an underlying operating system to execute byte code (.class files), providing portability across different platforms.

4
New cards

*Hardware Components*

The physical pieces of a computer, including the *CPU, main memory, secondary storage, and input/output devices*.

5
New cards

*Central Processing Unit (CPU)*

The component that performs the *fetch, decode, execute cycle* to process instructions.

6
New cards

*Main Memory (RAM)*

Volatile storage divided into *bytes*, used to hold currently running programs and their data.

7
New cards

*Binary Digit (Bit)*

The smallest unit of computer memory that can be either on or off.

8
New cards

*Byte*

A section of memory consisting of *eight bits*.

9
New cards

*Algorithm*

A collective set of instructions that enables a computer to solve a problem or perform a task.

10
New cards

*Syntax Errors*

Mistakes made by a programmer that violate the strict rules of a programming language, discovered during compilation.

11
New cards

*Identifier*

A programmer-defined name for items like *classes, variables, or methods*.

12
New cards

*Identifier Rules*

Must be a sequence of letters, digits, underscores, or dollar signs; cannot start with a digit or be a *reserved word*.

13
New cards

*Variable*

A named storage location in the computer's memory used to hold a value.

14
New cards

*Literal*

Specific data that is hardcoded directly into the program's code.

15
New cards

*Primitive Data Types*

Data types built into the Java language (such as *int, double, boolean, and char*) that hold values directly rather than objects.

16
New cards

*Reference Data Types*

Variables that store the *memory address of an object, such as String, Scanner, or File*.

17
New cards

*Assignment Operator (=)*

An operator that assigns the value on its right side to the variable on its left side.

18
New cards

*Initialization*

The process of giving an initial value to a variable in the same statement as its declaration.

19
New cards

*Arithmetic Operators*

Symbols used for calculations: *+ (addition), - (subtraction), * (multiplication), / (division), and % (modulo)*.

20
New cards

*Modulo Operator (%)*

Evaluates the *remainder* of the division of two integer operands.

21
New cards

*Integer Division*

Division where both operands are integers, resulting in the fractional part being discarded.

22
New cards

*Implicit Conversion*

Automatic type conversion by the compiler, such as promoting an *int to a double* during an operation.

23
New cards

*Explicit Conversion (Casting)*

Manually converting a value to a different type using the format *(type)expression*.

24
New cards

*Overflow*

An error that occurs when a value assigned to a variable is greater than the maximum value its data type can store.

25
New cards

*String Class*

A reference type used to hold a *sequence of characters*.

26
New cards

*Immutable*

The characteristic of *String objects* meaning their content cannot be changed once they are created.

27
New cards

*Escape Sequences*

Two-character sequences starting with *\ that represent special characters, like \n (newline) or \t (tab)*.

28
New cards

*Scanner Class*

A class in the *java.util* package used to read input from the keyboard or files.

29
New cards

*System.out.printf*

A method used to perform *formatted console output* using format specifiers.

30
New cards

*Format Specifiers*

Placeholders in a format string, such as *%d (integer), %f (floating-point), or %s (string)*.

31
New cards

*Final Keyword*

Used to declare a *constant variable* whose value cannot be changed once initialized.

32
New cards

*Boolean Expression*

Any variable or calculation that results in a value of *true or false*.

33
New cards

*Relational Operators*

Operators used to compare values: *== (equal), != (not equal), < (less than), > (greater than), <=, and >=*.

34
New cards

*Logical Operators*

Operators used to combine boolean expressions: *&& (AND), || (OR), and ! (NOT)*.

35
New cards

*Short-Circuit Evaluation*

A process where a logical operator skips evaluating the second operand if the result is already determined by the first.

36
New cards

*If-Else Statement*

A structure that executes one group of statements if an expression is true and another group if it is false.

37
New cards

*Switch Statement*

A multiple-branch decision structure that compares a variable to constant values to determine which code to execute.

38
New cards

*While Loop*

A *pretest loop* that repeatedly executes a block of statements as long as a condition remains true.

39
New cards

*Do-While Loop*

A *posttest loop* that executes its body at least once before testing the loop condition.

40
New cards

*For Loop*

A loop that contains *initialization, test, and update* expressions, typically used when the number of iterations is known.

41
New cards

*Infinite Loop*

A loop that never stops iterating because its expression always evaluates to true.

42
New cards

*Sentinel Value*

A special value used to notify a program to stop acquiring input.

43
New cards

*Break Statement*

A statement used to immediately exit a loop or a switch structure.

44
New cards

*Continue Statement*

A statement that causes an immediate jump to the next iteration or condition check of a loop.

45
New cards

*Method*

A named list of statements that can be invoked to perform a specific task.

46
New cards

*Method Header*

Includes the *access modifiers, return type, method name, and parameter list*.

47
New cards

*Parameter*

A method input specified in the method definition.

48
New cards

*Argument*

The actual value provided to a method's parameter during a method call.

49
New cards

*Void Method*

A method that does not return a value to its caller.

50
New cards

*Method Overloading*

Defining multiple methods with the *same name but different parameter types*.

51
New cards

*Variable Scope*

The region of code where a declared name is valid and visible.

52
New cards

*Field (Class Member Variable)*

A variable declared within a class but outside any method, visible to all methods in that class.

53
New cards

*Javadoc*

A tool that parses specially formatted comments (*/ ... /**) to generate program documentation in HTML format.

54
New cards

*Unit Test*

An automated test used to evaluate individual small parts of a program, like specific methods.

55
New cards

*FileInputStream*

A class used to establish an input stream to read bytes from a file.

56
New cards

*PrintWriter*

A class used to write formatted text to an output stream, such as a file.

57
New cards

*throws IOException*

A clause added to a method header indicating it may throw an input/output exception that must be handled or passed up.

58
New cards

*Enumeration (Enum)*

A user-defined data type that consists of a small set of named values.

59
New cards

*Math Class Methods*

Standard methods like *Math.sqrt(), Math.pow(), and Math.abs()* used for complex calculations.

60
New cards

*Random Class*

A class used to generate *pseudo-random* numbers.

61
New cards

*ASCII/Unicode*

Standards for encoding characters as numbers; Java uses *Unicode*.

62
New cards

*Short-hand (Compound) Operators*

Operators like *+=, -=, *=, and /=* that update a variable's value based on its current value.

63
New cards

*Incremental Development*

The process of writing, compiling, and testing small amounts of code step-by-step to manage complexity.

64
New cards

*Method Stub*

A method definition with its statements not yet fully written, often used during incremental development.

Explore top flashcards

flashcards
AP gov
152
Updated 1172d ago
0.0(0)
flashcards
Cells Structure
30
Updated 1234d ago
0.0(0)
flashcards
Islam Glossary
41
Updated 160d ago
0.0(0)
flashcards
FDNT 151 test 1
80
Updated 1150d ago
0.0(0)
flashcards
Grade 10 plant biology
74
Updated 1059d ago
0.0(0)
flashcards
Exam Three Flashcards
87
Updated 737d ago
0.0(0)
flashcards
Anatomy Quiz 2
29
Updated 211d ago
0.0(0)
flashcards
AP gov
152
Updated 1172d ago
0.0(0)
flashcards
Cells Structure
30
Updated 1234d ago
0.0(0)
flashcards
Islam Glossary
41
Updated 160d ago
0.0(0)
flashcards
FDNT 151 test 1
80
Updated 1150d ago
0.0(0)
flashcards
Grade 10 plant biology
74
Updated 1059d ago
0.0(0)
flashcards
Exam Three Flashcards
87
Updated 737d ago
0.0(0)
flashcards
Anatomy Quiz 2
29
Updated 211d ago
0.0(0)