Please enable JavaScript to use CodeHS

Cortado Glossary

Flashcards

Course:

Module:

Search:

Debugging General

Debugging is fixing a problem in your code.

Debugging

Syntax error JavaScript

An error in the sequence of words or rules in a program that prevents the program from running.

syntax error

Algorithm General

An algorithm is a set of steps or rules to follow to solve a particular problem.

algorithm, process

System.out.println Java

Java method that lets us print out a line of output to the user

System.out.print Java

Java method that lets us print output to the user, without ending the line printed.

String Java

String is a Java type that represents a string of characters (text)

Syntax General

The rules for writing code in a specific programming language

Variable Java

A symbol or container that holds a value.

Primitive Type Java

Primitive types are the basic, simple data types that are inherent to Java (int, double, char, and boolean)

Boolean Java

A boolean is a true or false value.

Reference Type Java

Reference variables store the address of the value

Data Type General

A way to classify the kind of information you can use in programming, like numbers, words, or true/false values.

Reassignment General

The process of changing the value stored in a variable.

Modulus operator General

The modulus operator (written as % in most programming languages) divides two numbers and returns the remainder.

Integer Division General

When two integers are divided, the decimal values are truncated, or chopped off.

Escape Sequence General

Escape sequences are characters with special meanings.

Arithmetic Expression General

A combination of numbers, operators, and sometimes variables that computes a value.

Truncation Java

To trim some digits of a float or double-type number or some characters of a string from the right.

Variable General

A symbol or container that holds a value.

variable

Scanner class Java

A class within java.util. It contains code specifically designed to help with user input.

Assignment Statement General

A line of code that assigns a value to a variable using the = operator

Input Buffer Java

A temporary memory area where input from the user is stored before being processed.

Casting Java

Casting is turning something of one type into another type

Order of Operations Java

The order in which mathematical expressions should be evaluated. Starts with Parentheses, Exponents, Multiplications and Division, Addition and Subtraction.

Round-Off Error General

The difference between the calculated approximation of a number and its exact mathematical value due to rounding.

Integer Overflow General

An error that occurs when the result of an integer operation does not fit within the allocated memory space.

Truncate Java

To remove the digits to the right of the decimal point without rounding.

Increment Java

Increase the value of a variable by one. variable++;

Decrement Java

Decrease the value of a variable by one. variable--;

Compound Assignment Operators Java

Allows programmers to shortcut variable assignments that include the variable being assigned a new value: x = x + y; shortcut: x += y;

Comment Out JavaScript

Commenting out code makes the computer ignore it, so it does not run.

Comment Out

Precondition Java

Assumptions we make about what must be true before a method is called.

Postcondition Java

What should be true after a method is called

Single Line Comments Java

//This is a single line comment

Multi-Line Comment Java

/* This is a multi- Line comment*/

Javadoc Comment Java

/** 1. One sentence description of code’s function. 2. Preconditions 3. Postconditions 4. Block tags */

Argument JavaScript

A variable passed as a value to a function

argument

Method Java

A method is a way to teach the computer a new command

Parameter Java

A variable that receives a value passed into a method from outside the method.

Method signature Java

A method's signature is the name of the method and the parameter list.

Method Overloading Java

Classes can have multiple methods with the same name, as long as the parameters to those methods are different. Doing this is called "overloading" a method.

Return Type Java

Indicates what type value is being returned from the method

Void Java

A return type that means the method does not return a value.

Instance Method Java

An instance method is a method that defines the behavior of an object. It defines an action that the object can perform.

Static Methods Java

Static methods are the methods in Java that can be called without creating an object of class. Static methods are called using the dot operator along with the class name unless they are defined in the enclosing class.

Encapsulation Java

The process of hiding the implementation details of a class from the user

Modularization Java

Organizing code into smaller, reusable pieces

Math Class Java

The Math class is part of the java.lang package and contains only static methods.

Math.random Java

Can be manipulated to produce a random int or double in a defined range.

math.sqrt() Python

Math function that takes the square root of the inputted parameters

API General

An API (application programming interface) is a set of tools for building programs.

Math.pow() Java

Returns the value of the first argument raised to the power of the second

Randon Range Formula Java

Formula to scale `Math.random()` to a desired range

Class Java

A class is a template, or a blueprint, from which Java objects are created. All Java programs start with a class.

Object Java

An object is a single instance of a Java class. An object has both state and behavior.

Superclass Java

If a class A extends the class B, then B is the superclass of A.

Inheritance Java

When a subclass extends a superclass, the subclass inherits all of the static methods, static variables, and public instance methods of the superclass. This is called inheritance.

Abstraction General

Managing complexity by "abstracting away" information and detail, in order to focus on the relevant concepts.

Instantiate Java

Create an instance of a class object.

attributes of an object General

An object’s characteristics.

Constructor Java

A constructor is a special method of a Class that constructs a new object (a new instance) of the Class and sets the initial values for the instance variables.

toString Java

toString is a special method you write in your class that returns a String representation of the object.

Overloading Java

When a class has more than one constructor with the same name, but different parameter lists.

Concatenation Java

Concatenation is another word for combining. Concatenating Strings is when we add Strings together.

Substring Java

A substring is a smaller sequence of characters in a larger String.

Immutable Java

Unable to change. Strings in Java are immutable, meaning you can't change it once you make it. If you take a substring of a String, or concatenate something to a String, the result is a *brand new* String, rather than a modification of the original.

Implicit Conversion Java

The automatic process of transforming a variables data type. This occurs when a primitive and String object are concatenated by changing the primitive value to a String object type.

Comment Java

A message in your code that explains what is going on.

Documentation Java

Documentation is the reference for how to use different methods and classes

library Python

A collection of modules and packages.

Pseudocode General

Pseudocode is a brief explanation of code in plain English.

Pseudocode

Selection General

Using a condition to determine which part of an algorithm is executed.

Flow Chart General

A diagram made up of shapes and arrows used to display the order of steps in a program or process.

Repetition General

Helps the reader recognize similar items.

Condition General

A condition is code that you put inside an if statement or while-loop.

Condition

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

If Statement

If Else Statement General

Control structure that lets us run either one section of code or another depending on a test.

If Else Statement

Branching General

Choosing between different paths based on a condition.

Nested if Statements Java

The process of placing if statements within if statements.

if-else-if Statement General

A structure that checks multiple mutually exclusive conditions.

Compound Boolean Expression Java

A Boolean expression that combines two or more conditions using logical operators

Logical AND (`&&`) General

A logical operator that returns true if both conditions are true

Logical OR (`||`) JavaScript

A logical operator that returns true if at least one condition is true

Logical NOT (`!`) General

A logical operator that negates a Boolean value, turning true into false and vice versa

Refactor General

To rewrite code for improved readability or efficiency without changing behavior.

De Morgan's Laws Java

Laws that define how we can negate an AND statement and how we can negate an OR statement

Truth Tables Java

A truth table is a table used in logic for comparing Boolean expressions.

Reference equality Java

Equality operator (==) compares the references (addresses in memory) of 2 objects

Value Equality (`.equals()`) Java

Checks if two objects have the same content or state.

Logical Equivalence Java

Two expressions that produce the same truth value for all inputs.

While Loop General

Lets us repeat code as long as something is true.

While Loop

Infinite Loop General

A loop that has no way of stopping, and will keep looping forever.

Iteration General

Repetition of instructions a specified number of times, or until a condition is met.

break Java

Breaks out of a while loop and executes statements that immediately follow while loop.

return Java

Keyword used in methods to return a value back to the initial program that called the method.

For Loop Java

A for loop lets us repeat code a **fixed number of times**.

Loop Header Java

The part of a loop that specifies the starting point, ending condition, and increment

Counter Variable Java

A variable used to keep track of how many times a loop has run

Accumulator General

A variable used to keep a running total inside a loop.

Traversal General

Accessing each character in a string one at a time using a loop

Character Class Java

A built-in set of Java methods for character-based operations

Nested For Loop Java

A for loop written, or “nested”, inside of another for loop. For example:

Outer Loop Java

The loop that controls the number of full passes

Inner Loop Java

The loop that runs completely for each outer loop cycle

Row vs. Column Java

Orientation of output in nested structures

break statement Java

The `break;` statement breaks out of the current loop, without executing any more code in the loop.

Statement execution count Java

The number of times a statement is executed by the program.

Efficiency General

The ability to achieve an end goal with little to no waste.

Trace Table Java

A tool for tracking variable values and executed lines during program execution

Run-Time Analysis Java

Evaluating how long a program takes to run or how many steps it performs

Return Value JavaScript

The value returned from a function when the function is called.

boolean Java

`boolean` is a Java type that can either be true or false

Relational Operators Java

== , !=. <. > , <=, >= These allow for the comparison or primitive type values. The result of these expressions can be stored as a Boolean value.

Logical Reasoning JavaScript

Using structured thinking and boolean operations to solve problems.

Nested Loops Java

When a loop is placed within another loop. The total number of runs for a nested loop will be the outer loop * inner loop.

Program Design General

The process of planning the structure and components of a program before coding.

Attribute Java

A variable that holds data associated with a class.

System reliability Java

When all programs and code will work as intended.

open source software General

Software that is available for anyone to access and modify.

proprietary software General

Software that is owned by an individual or company.

Unintended Consequences General

Unexpected effects that occur when a program is used in the real world.

Attribution JavaScript

Acknowledging the original author when using or adapting someone else’s code.

Instance Variable Java

A variable defined in a Class, for which each object of the class has its own copy.

Getter Method Java

An instance method that allows the client to **get** the value of an instance variable on an object.

Setter Method Java

An instance method that allows the client to **set** the value of an instance variable on an object.

Access Modifier Java

A keyword that determines whether a variable or method is visible outside the class (`private`, `public`).

Object Composition Java

Creating classes that include instances of other classes as fields.

Pass-by-Reference Java

When an object is passed as a parameter, both the parameter and the instance refer to the same object.

Defensive Copying JavaScript

Creating a new object using the data from a parameter object to avoid shared references.

Static method Java

A method called on the Class, rather than on a specific object of the Class.

Object Reference Java

A variable that stores the memory location of an object.

Utility Class Java

A class containing only static methods that perform operations on other objects.

Mutability Java

The ability of an object’s internal state to be changed.

Parameter Passing Java

Supplying data (including objects) to a method when it is called.

final Java

Prevents variables from changing value.

Class Variable JavaScript

A variable shared by all instances of a class.

Class Method Java

A method that belongs to the class, not an object.

Scope Java

Defines which part of the program a variable can be accessed from.

Shadowing Java

If two variables within the same scope have the same name, the variable with the more specific scope will be called.

Local Variable Java

A variable that is defined in a method or constructor. It only exists in the context of the method that it belongs to.

this Keyword Java

Makes a call to the current object in a class file. Allows programmers to specify which objects and instance variables should be called.

Parameter Shadowing Java

When a parameter name hides an instance variable name, requiring `this` for clarity.

Scope General

In what part of the program the variable exits

Scope

Data privacy General

how company's use your data

Algorithmic Bias General

The systematic and repeatable errors in a computer system that create unfair outcomes

Data breach Java

An incident where sensitive or confidential data is accessed without authorization

Data Set Java

A collection of related data used for analysis

Secure Coding General

The practice of writing software that protects data against unauthorized access and threats

Data Analysis Java

The process of examining data to find trends or answer questions

Guiding Question General

A specific question that directs the focus of data analysis

Array Java

A data structure that stores a **fixed** number of elements, all of the same type, one after another like a list.

Array Index Java

The position of an element in an array. The first element is at index 0, the second element is at index 1, and so on.

Parallel Arrays Java

Two or more arrays that share the same index structure to represent related data

Traversing an Array Java

Traversing an array is the process to loop through an array and access each of the elements. Caution must be taken to avoid looping beyond the valid index values.

Enhanced For Loop Java

A loop that is an alternate to a for or while loop that accesses each value in an array starting at the first value and proceeding in order.

Inventory Java

A structured set of items or data, often represented as arrays or lists

Adjacent Duplicates Java

Two identical values next to each other in an array

Defensive Programming General

Coding practices that prevent unintended behavior or errors

File I/O (Input/Output) General

The process of reading information from and writing information to files.

IOException Java

An error related to file access or reading

try-catch Java

A Java construct to gracefully handle runtime errors

Split Method Java

A method that divides a string based on a delimiter

Parsing Java

Extracting and converting data from strings

null Java

A keyword that indicates a reference object doesn’t point to any object data.

Autoboxing Java

Automatic conversion between primitive types and their corresponding object wrapper classes

Unboxing Java

Reverse of autoboxing; automatic conversion from the wrapper class to the primitive type

Wrapper Class Java

An object representation of a primitive data type (e.g., Integer, Double)

parseInt / parseDouble Java

Methods that convert strings into numeric values

ArrayList Java

ArrayList is a Java class that is like an Array with extra powers. It can automatically resize and comes with other helpful methods.

Dynamic List Java

A list that grows or shrinks as items are added or removed

Data Validation Java

Checking data before it is used or stored to prevent errors or invalid values

Index Shift Java

The automatic change in index positions after an item is added or removed

Forward Loop / Backward Loop Java

The direction in which a loop progresses through a list

Helper Method Java

A reusable method designed to perform a specific task as part of a larger program

Edge Case General

An edge case is a problem in your code that only occurs in extreme situations.

Edge Case

Simultaneously Traversal General

Traversing two lists at the same time using the same index often to compare.

Code Tracing General

Following program flow to determine value changes

2D Array Java

A 2D Array is an array of arrays, used to represent tables, grids, and matrices.

Index Java

Array values are stored at a particular index and we access elements in the array by referencing this index value. Index values in Arrays start a 0.

Row-major Order Java

The ordering of 2D arrays is row-major order, meaning the first index is the row, and the second index is the col. `arr[2][0]` would access the element on the third row and first column.

Column Major Order Java

The process of traversing a 2D array by accessing all values at the first column in every row, before moving to the next column

Simulation General

A animated model that represents a real-life thing, process, or situation.

Control Logic General

Conditional or loop structures that determine flow and behavior in algorithms

Row Major Order Java

The process of traversing a 2D array by accessing all elements in a row before moving on to the next row.

Shifting Java

Moving values within rows or columns to new positions

Flip Java

Reversing the order of elements horizontally or vertically

Coordinate Plane General

A grid-based plotting system using x and y values

Data Integrity General

Ensuring data completeness and accuracy (e.g., no missing or duplicate values)

Linear Search General

Also called sequential search, a search algorithm that searches for a given value in a list of values. Linear search is less efficient than binary search.

Target Java

The value being searched for in a data set

Case Sensitivity Java

A string comparison rule that differentiates between uppercase and lowercase characters

Selection Sort General

Sorting algorithm that takes an array of values and sorts it. The idea is to have a sorted part of the list and an unsorted part. On each iteration, selection sort finds the lowest value in the unsorted section of the list and adds it to the end of the sorted part.

Insertion Sort General

Sorting algorithm that sorts an array of values. The idea behind insertion sort is to have a sorted part of the list and an unsorted part. On each iteration of the algorithm, we grab the next unsorted element and place it in its proper position in the sorted section.

Loop Invariant Java

A condition that holds true throughout a loop’s execution (e.g., part of the array is always sorted)

Sorting Algorithm Java

A method for reordering data into a specific sequence

Recursion General

At a high level, recursion is when a function (or method) calls itself.

Base Case General

The base case is the simplest form of the recursive problem. The base case can be immediately solved without breaking the problem down any further.

Recursive Case General

The recursive case is the general form of the recursive problem. In this case the problem needs to be broken down by one step toward the base case, and the algorithm makes a recursive call to itself to solve this slightly smaller problem. This process repeats until the base case is reached.

Tree Diagram General

A visual structure used to represent the recursive calls and their results

Stack Overflow General

An error that occurs when recursion doesn't stop properly

Binary Search General

Search algorithm that only works on a sorted list. It discards half of the list on each iteration, getting to the solution much faster than Linear Search.

Divide and Conquer General

A problem solving approach where you **divide** the problem into several smaller sub-problems of similar form, and keep doing so until the problems are trivially simple to solve (**conquer**)

Merge Sort Java

Merge sort is a recursive sorting algorithm that can be used to sort elements in an array or ArrayList.

Data Privacy Java

The appropriate use of data based on circumstances

Search Algorithm Java

A method to find a target in a data structure (e.g., linear, binary)