Key Terminology Flashcards
syntax error
A mistake in typed code that violates the rules of the programming language. Typically, code with syntax errors will not run.
logic error
A mistake in an algorithm or program that causes it to behave unexpectedly or return the incorrect value.
run-time error
A mistake in a program that happens only when the program is actually run, such as a program attempting to access memory that does not exist.
overflow error
Error that results when the number of bits is not enough to represent the number (like a car’s odometer “rolling over”).
sequencing
The sequential execution of steps in an algorithm or code in a program (like steps in a recipe).
selection
A Boolean condition to determine which of two paths are taken in an algorithm or program
iteration
The repetition of steps in an algorithm or program for a certain amount of times or until a certain condition is met (for/while loops)
linear search
An algorithm that iterates through each item in a list until it finds the target value.
binary search
An algorithm that searches a sorted list for a value by repeatedly splitting the list in half.
modularity
The separation of a program into independent modules that are each responsible for one aspect of the program’s functionality.
traversal
The iteration over the items in a list. A full traversal iterates over every item, while a partial traversal iterates over a subset of the items.
encryption
The process of scrambling data to prevent unauthorized access.
override
Overriding an inherited method means providing a public method in a subclass with the same method signature (method name, parameter type list and return type) as a public method in the superclass. The method in the subclass will be called instead of the method in the superclass.
Inheritance
Inheritance makes it possible to create a new child class that inherits the attributes and methods of the original (parent) class. The term ‘parent class’ is also referred to as superclass or base class, while ‘child classes’ can also be referred to as subclasses or derived classes
Polymorphism
It refers to the ability of a method to exhibit different behaviours depending on the object on which the method is invoked.