CS1301 Final Exam Key Terms: Variables, Data Types, Loops, Arrays, Methods, Sorting, Searching

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/43

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.

44 Terms

1
New cards

Variable

A named storage location in memory that holds a value.

2
New cards

Primitive Type

Basic data type such as int, double, char, or boolean.

3
New cards

Reference Type

A type where variables store memory addresses (e.g., arrays, objects, Strings).

4
New cards

Assignment Operator (=)

Stores the value on the right side into the variable on the left.

5
New cards

Integer Division

Division of two ints that discards decimals (e.g., 5/2 → 2).

6
New cards

Modulus (%)

Returns the remainder of integer division.

7
New cards

Type Casting

Manually converting one data type to another.

8
New cards

String

A sequence of characters, stored as an object.

9
New cards

String Method

Functions like length(), substring(), indexOf(), charAt().

10
New cards

equals()

Method used to compare the contents of Strings.

11
New cards

Scanner

Object used to read user input.

12
New cards

if Statement

A conditional block that executes when its Boolean expression is true.

13
New cards

Boolean Expression

An expression that results in true or false.

14
New cards

while Loop

Loop that continues as long as the condition is true.

15
New cards

for Loop

Loop with initialization, condition, and update.

16
New cards

Nested Loop

A loop inside another loop.

17
New cards

Array

A fixed-length ordered collection of elements of the same type.

18
New cards

Enhanced For-Loop

Loop that processes each element directly: for (int x : arr).

19
New cards

Partially Filled Array

An array where only some elements are used.

20
New cards

2D Array

An array of arrays, accessed with two indices.

21
New cards

Method

Block of code that performs a task.

22
New cards

Return Type

The data type a method sends back; void means no return value.

23
New cards

Parameter

Input value passed into a method.

24
New cards

Method Overloading

Multiple methods with the same name but different parameters.

25
New cards

Static Variable

Variable shared by all instances of a class.

26
New cards

Static Method

Method that belongs to the class, not an object.

27
New cards

Instance Variable

Variable that belongs to each individual object.

28
New cards

Constructor

Special method that initializes new objects.

29
New cards

Accessor (Getter)

Returns the value of a private variable.

30
New cards

Mutator (Setter)

Changes the value of a private variable.

31
New cards

Privacy Leak

Exposing internal data so external code can modify it.

32
New cards

Encapsulation

Protecting data with private variables.

33
New cards

Enum

User-defined type with a fixed set of constants.

34
New cards

Package

Namespace that organizes classes.

35
New cards

Bubble Sort

Swaps adjacent elements repeatedly if out of order.

36
New cards

Selection Sort

Finds the smallest element and places it at the front.

37
New cards

Insertion Sort

Builds a sorted portion and inserts new values into place.

38
New cards

Linear Search

Checks each element in order.

39
New cards

Binary Search

Divides search space in half; requires sorted array.

40
New cards

Swap

Exchanging values using a temporary variable.

41
New cards

Compile-Time Error

Mistake detected by the compiler.

42
New cards

Run-Time Error

Error during program execution.

43
New cards

Logical Error

Program runs but produces incorrect results.

44
New cards

Infinite Loop

A loop whose condition never becomes false.

Explore top flashcards

Obras y su autores
Updated 968d ago
flashcards Flashcards (37)
ANNEX A
Updated 64d ago
flashcards Flashcards (32)
LAB MICRO PARCIAL 2
Updated 999d ago
flashcards Flashcards (73)
unit 6
Updated 699d ago
flashcards Flashcards (94)
Obras y su autores
Updated 968d ago
flashcards Flashcards (37)
ANNEX A
Updated 64d ago
flashcards Flashcards (32)
LAB MICRO PARCIAL 2
Updated 999d ago
flashcards Flashcards (73)
unit 6
Updated 699d ago
flashcards Flashcards (94)