COMP SCI MIDTERM

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards
Hardware
The physical components of a computer, such as the CPU, memory, and storage.
2
New cards
Software
The collection of programs that control hardware and execute tasks.
3
New cards
Programming Language
A formal set of instructions that a computer can execute.
4
New cards
JAVA Programming Language
A high-level, object-oriented language that is platform-independent due to the Java Virtual Machine (JVM).
5
New cards
Identifiers
Names used for variables, methods, classes, etc.
6
New cards
Legal Identifiers
Must start with a letter, underscore, or dollar sign and cannot be a Java keyword.
7
New cards
White Space
Spaces, tabs, and newlines that improve readability but do not affect execution.
8
New cards
Program Development
The process of designing, writing, testing, and maintaining a program.
9
New cards
Compilation
Converting Java source code into bytecode using the Java compiler.
10
New cards
Java Translation
The process where Java source code is compiled into bytecode and then interpreted by the JVM.
11
New cards
Development Environments
Tools used for Java programming (e.g., Eclipse, IntelliJ, NetBeans).
12
New cards
Syntax
The rules governing the structure of valid Java code.
13
New cards
Semantics
The meaning of Java statements.
14
New cards
Syntax Errors
Violations of Java's rules (e.g., missing semicolons).
15
New cards
Runtime Errors
Errors occurring during execution (e.g., division by zero).
16
New cards
Logical Errors
Incorrect logic leading to undesired output.
17
New cards
Object-Oriented Programming (OOP)
A programming paradigm based on objects and classes.
18
New cards
Classes
Blueprints for creating objects.
19
New cards
Objects
Instances of a class containing attributes (fields) and behaviors (methods).
20
New cards
Character Strings
Sequences of characters handled by the String class.
21
New cards
String Concatenation
Combining strings using +: 'Hello' + ' World' results in 'Hello World'.
22
New cards
Escape Sequences
Special characters such as \n, \t, \\, etc.
23
New cards
Variables
Named storage locations in memory.
24
New cards
Assignment
Assigning values using =.
25
New cards
Constants
Immutable values declared with final.
26
New cards
Primitive Data Types
byte, short, int, long, float, double, char, boolean.
27
New cards
Increment and Decrement Operators
++ and -- increase or decrease a variable by 1.
28
New cards
Scanner Class
Used for input reading (Scanner sc = new Scanner(System.in);).
29
New cards
Reading Input
Methods like nextInt(), nextDouble(), nextLine().
30
New cards
Binding
The association of a method call with its definition.
31
New cards
Polymorphism
The ability of a method to take different forms.
32
New cards
Visibility Revisited
public, private, protected.
33
New cards
Abstract Classes
Cannot be instantiated; contains abstract methods.
34
New cards
Array
A collection of elements of the same type.
35
New cards
Two-Dimensional Arrays
Arrays that store data in a grid format (e.g., int[][] matrix = new int[3][3];).
36
New cards
Inheritance
A subclass inherits attributes and methods from a superclass.
37
New cards
The super Reference
Used to call superclass constructor/methods.
38
New cards
Java API/Packages
Predefined Java libraries.
39
New cards
Random Class
Generates random numbers (Random rand = new Random();).
40
New cards
Wrapper Classes
Convert primitives to objects (e.g., Integer, Double, etc.).
41
New cards
Method Overloading
Same method name, different parameters.
42
New cards
Method Overriding
Redefining superclass methods in a subclass.