Key Terminology Flashcards

1
Q

syntax error

A

A mistake in typed code that violates the rules of the programming language. Typically, code with syntax errors will not run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

logic error

A

A mistake in an algorithm or program that causes it to behave unexpectedly or return the incorrect value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

run-time error

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

overflow error

A

Error that results when the number of bits is not enough to represent the number (like a car’s odometer “rolling over”).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

sequencing

A

The sequential execution of steps in an algorithm or code in a program (like steps in a recipe).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

selection

A

A Boolean condition to determine which of two paths are taken in an algorithm or program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

iteration

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

linear search

A

An algorithm that iterates through each item in a list until it finds the target value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

binary search

A

An algorithm that searches a sorted list for a value by repeatedly splitting the list in half.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

modularity

A

The separation of a program into independent modules that are each responsible for one aspect of the program’s functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

traversal

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

encryption

A

The process of scrambling data to prevent unauthorized access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

override

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Inheritance

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Polymorphism

A

It refers to the ability of a method to exhibit different behaviours depending on the object on which the method is invoked.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly