Please enable JavaScript to use CodeHS

Cortado Glossary

Flashcards

Course:

Module:

Lesson:

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.