Please enable JavaScript to use CodeHS

Indiana Principles Glossary

Flashcards

Course:

Module:

Search:

lowerCamelCase General

`lowerCamelCase` is a naming convention where the first letter is lower case, and each subsequent start of a word is upper case.

lowerCamelCase

World General

A "world" or "Karel World" is a grid that karel lives in.

karel World

Karel General

Karel is a dog who listens to your commands.

Karel

Command JavaScript

A command is an instruction you can give to Karel.

Command

Define a Function JavaScript

Defining a function means to teach the computer a new command and explain what it should do when receiving that command.

Define a Function

Call a Function JavaScript

Calling a function actually gives the command, so the computer will run the code for that function.

Call a Function

Curly Bracket General

An open curly bracket is { and a close curly bracket is }

Curly Bracket

Function body JavaScript

The part of a function that contains the commands

function body

Read Like a Story JavaScript

Programs that "Read like a story" have good decomposition and make the code easy to follow.

Read Like a Story

Start Function JavaScript

This is the function that is called when you click run.

Start Function

Break Down (Decompose) JavaScript

Breaking down (decomposing) your code is splitting it into more functions.

Break Down (Decompose)

Indentation JavaScript

Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.

Indentation

Decomposition General

Decomposition is breaking your program into smaller parts.

Decomposition

Top Down Design JavaScript

Top down design is a method for breaking our program down into smaller parts.

Top Down Design

Programming Style General

The way your code is written is the style. It covers the aspects of the code that goes beyond whether or not it just works.

Programming Style

Comment JavaScript

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

Comment

Precondition JavaScript

Assumptions we make about what must be true before the function is called.

Precondition

Postcondition JavaScript

What should be true after the function is called

Postcondition

SuperKarel General

SuperKarel is like Karel but already knows how to turnRight() and turnAround()

SuperKarel

Loop General

A loop is a way to repeat code in your program.

Loop

For Loop JavaScript

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

For Loop

Control Structure General

A control structure lets us change the flow of the code.

Control Structure loops if statements

Parentheses General

( and )

Parentheses

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

While Loop General

Lets us repeat code as long as something is true.

While Loop

Fencepost Problem General

A problem when using a while loop where you forget one action at the beginning or the end.

Fencepost Problem

Bug General

A bug is a problem in your code.

Bug

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

Runtime error JavaScript

An error that results in a crash when the program is run.

runtime error

logic error Java

errors where the expected result does not match the actual result; these errors are due to mistakes in coding logic and will not be detected by the compiler

Cybersecurity General

Protocols for encrypting/decrypting information. Most cybersecurity breaches happen due to human error, not software bugs.

Cybercrime General

Identity theft, stealing money, stealing private information, controlling private computers.

risk assessment General

The process of identifying, assessing and prioritizing potential risks for an organization or company.

vulnerability scan General

Designed and used to assess computers, networks or applications for known weaknesses.

packet sniffing General

The practice of gathering, collecting, and logging some or all packets that pass through a computer network.

Hello World General

Traditionally the very first program you write when learning a programming language, a program that prints "Hello world" to the user.

println JavaScript

JavaScript function that prints out a line to the user

Boolean JavaScript

A boolean is a true or false value.

Boolean

Declare a Variable JavaScript

Declaring a variable is defining it for the first time.

Declare a Variable

Variable General

A symbol or container that holds a value.

variable

Integer JavaScript

A whole number (not a fraction)

integer

String JavaScript

A sequence of characters

string

Initialize a Variable JavaScript

Initializing a variable is giving it an initial value.

Float JavaScript

A float, or floating point value, is a numeric value that can have decimal level precision (ex: 3.14)

readLine JavaScript

Allows for the reading of user input when a string is used

readLine

readInt JavaScript

Allows for the reading of user input when an integer is used

readInt

readFloat JavaScript

Allows for the reading of user input when a float number is used

readFloat

Constant JavaScript

A variable in a program that has a value that does not change.

Constant

Magic Number JavaScript

A number in your code that appears arbitrary. These should all be replaced with calculations or constants.

Magic Number

Increment General

To add to or increase

Increment

Decrement General

To subtract from or decrease

decrement

Canvas JavaScript

The screen in which our graphics programs are drawn.

Canvas

Coordinate system JavaScript

A coordinate system uses numbers as coordinates to place objects in a geometric space.

coordinate system

getWidth() JavaScript

JavaScript function that returns the width of the graphics canvas

getHeight() JavaScript

JavaScript function that returns the height of the graphics canvas

Radius JavaScript

The length between the center and edge of a circle

IDE General

IDE Consists of a combination of tools used for software development.

Logical operator JavaScript

Used to make logical associations between boolean values

logical operator

Or operator JavaScript

Logical operator that ORs two boolean values. Written as `||`. `a || b` will be true if `a` or `b` is true.

And operator JavaScript

Logical operator that ANDs two boolean values. Written as `&&`. `a && b` will be true if both `a` and `b` are true.

Not operator JavaScript

Logical operator that negates a single boolean value. Written as `!`. `!a` will be true if `a` is false, and false if `a` is true.

Negate General

To flip a boolean value, or take the opposite of a boolean value. If you negate true, you get false. If you negate false, you get true.

Comparison operator General

Used to make comparisons between values.

comparison operator

JavaScript Documentation JavaScript

Documentation for the syntax and objects in Javascript that we use on CodeHS.

javascript documentation javascript docs js documentation js docs graphics data structures

Randomize JavaScript

To generate or select a random object

random, randomizer

Pseudorandom JavaScript

Not actually random, but appears to be random

Edge Case General

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

Edge Case

Counter JavaScript

A variable used to count the number of times an action has been performed

counter variable

Iterate General

A single run through the instructions contained a loop

Iterate

Sentinel JavaScript

A constant that has the specific purpose of being the value that breaks out of a loop.

SENTINEL

Loop-and-a-half JavaScript

A loop, most often set with while(true), that has a break in the loop body.

loop and a half

break statement JavaScript

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

Infinite Loop General

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

DRY Principle JavaScript

Don't repeat yourself: try to simplify your code and avoid repeating code unnecessarily.

dry, repeated code

Argument JavaScript

A variable passed as a value to a function

argument

Parameter JavaScript

A variable passed in from outside the function

parameter

Return JavaScript

Exit a function and return a value

Return

Return Value JavaScript

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

Scope General

In what part of the program the variable exits

Scope

Global variable JavaScript

A variable that can be used throughout a program, in every scope

Global variable

Local variable General

A variable that is restricted to use in a certain scope of a program

Local variable

Timer JavaScript

Timers are used to used perform repeated action in a program

Timer

Animation JavaScript

Showing several still images one after another very quickly, to give the illusion of animated movement.

Callback Function JavaScript

A function passed as a parameter to another function in order to be called later.

Event JavaScript

An event is an action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.

Event

List JavaScript

Also called an array. A data structure that holds a collection of values in a particular order

List Array

Array JavaScript

Also called a list. A data structure that holds a collection of values in a particular order

List Array

Object JavaScript

Also called a dictionary or map. Lets us store pairs of keys that are matched with a specific value.

Object

Iteration General

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

Set JavaScript

A data structure that stores values in no particular order. Each value can only appear once in the set.

Set

Grid JavaScript

A two-dimensional array

Grid

Computer General

A person or device that makes calculations, stores data, and executes instructions according to a program.

Computer

Hardware General

The physical components of a computer

Software General

Programs that can be run on a computer

Internet General

A philosophy of making information and knowledge open and accessible to all people. A network of networks built on open, agreed upon protocols.

Protocol General

A widely agreed upon set of rules that standardize communication between machines.

Citizen Science General

Science that harnesses the power of many individuals to solve hard, complex problems.

Data General

Information (numbers, words, measurements, observations, etc) that is in a computer-readable form.

Network General

A group of two or more computer systems linked together.

Fiber Optic Cables General

Able to send bits from router to router across long distances, but they are very expensive.

Bitrate General

The amount of data (in bits) that can be sent in a fixed amount of time.

Bandwidth General

The capacity of data transfer in a system. Measured by bitrate.

Latency General

The latency of a system is the time it takes for a bit to travel from sender to receiver. Fiber optic cables have low latency.

Internet Protocol (IP) General

A protocol that defines the structure of an Internet address and assigns a unique address to every device on the Internet.

Domain Name System (DNS) General

Used to translate domain names into IP addresses.

Routing General

The process of sending data between two computers on the internet. The data is sent through routers that determine the route.

Redundancy General

When multiple paths exist between two points. This improves reliability and makes the internet fault tolerable. Makes the routing system scalable.

Packets General

Packets are the units of data that are sent over the network.

HTTP General

HyperText Transfer Protocol is a protocol that standardizes the language for talking to web servers to send and receive web pages, or HyperText information (HTML pages).

Number System General

Defines how we represent numbers. Which digits we can use, and what each position (place ) in a number means.

Decimal Number System General

The number system we use in out everyday lives. It has 10 digits, 0-9.

Binary Number System General

Number system that has 2 digits, 0 and 1. This is how computers represent numbers at the base level.

Hexadecimal Number System General

Number system that has 16 digits 1 - 9 and A - F.

Number System General

A number system defines how we represent numbers. It defines which digits we can use, and what value each position (place value) in a number has.

Binary General

The binary number system is the Base 2 Number System. It is a number system that only uses 2 digits (0 and 1).

Bit General

Bit means "binary digit". A bit is a single digit in a binary number. A bit can either be 0 or 1.

ASCII General

ASCII is the standard protocol for encoding text information as bits. The ASCII table assigns a unique binary number to every text character.

RGB Encoding General

The RGB encoding scheme allows us to encode colors such as numeric data. It defines the amount of Red, Green, and Blue light in a pixel.

Pixel Image General

An image can be represented as a grid of values. Each value encodes the color at that position in the image.

Number System General

Defines how we represent numbers. Which digits we can use, and what each position (place ) in a number means.

Hexadecimal Number System General

Number system that has 16 digits 1 - 9 and A - F.

Pixel General

Images are made up of pixels, which are essentially a grid of values. Each value, or pixel, encodes the color at that position in the image.

RGB Color Encoding General

The RGB encoding scheme allows us to encode colors as numeric data. It defines the amount of Red, Green, and Blue light in a pixel. Each color channel can have a value between 0 and 255.

motherboard General

A circuit board with ports and sockets used to connect the main devices of a computer.

BIOS General

A special kind of firmware that runs programs strictly to start up your computer.

central processing unit (CPU) General

The core component of a device that accepts and executes instructions.

random access memory (RAM) General

A fast type of computer memory which temporarily stores all the information your device needs right away.

solid-state drive (SSD) General

A fast access storage device used in computers.

graphics processing unit (GPU) General

A component designed to speed up the creation of images and output them to a display device, like a monitor.

network interface card (NIC) General

A component with a built in wired network port that allows the computer to connect to a network.

plug-and-play device General

A device that will be recognized by your computer and install on its own.

driver General

A group of files that allows a device to communicate with the computer’s operating system.

Bluetooth General

A short-range wireless communication technology that uses radio waves to transmit information.

NFC (Near Field Communication) General

Enables short-range communication between compatible devices.

network device General

An electronic device which is required for communication between devices.

network adapter General

An internal component of a computer that is used for communicating over a network.

modem General

A network device that allows a device to connect to the Internet.

switch General

Enables wired connections between more than one computer or device.

access point General

A network device that allows other Wi-Fi devices to connect to a wired network.

router General

An access point that allows for network management and security configuration.

operating system (OS) General

The primary software that runs applications and manages all the hardware, memory and other software on a computer.

software General

A set of computer instructions that tells the computer how to work.

workstation OS General

Most commonly used on a desktop or laptop computer and can perform many tasks without an internet connection.

mobile OS General

An operating system used on mobile devices, such as a mobile phone or tablet.

server OS General

Used on specialized computers that take in requests and send back a response (mail server, web server, etc).

embedded OS General

Will only perform one type of task and are used in machines such as an ATM or a GPS system.

firmware General

An operating system that is permanently etched into a hardware device such as a keyboard or a video card.

hypervisor General

Operating systems that are most commonly used to run multiple operating systems on a computer system at the same time.

platform General

An operating system such as Windows, Mac OS, Android or iOS.

single-platform software General

Software that only works on one platform, such as only on Android phones, or only on Mac computers.

cross-platform software General

Software that works on multiple platforms.

Linux General

An open-source and community-developed operating system.

Apple Macintosh (macOS) General

An operating system that uses a graphical user interface designed by Apple Inc. for use on desktops and laptops.

Microsoft Windows General

An operating system that uses a graphical user interface designed by Microsoft for use on desktops and laptops.

file system General

A method of organizing files and retrieving them from storage.

file management General

Software that manages data and files along with the ability to create, modify, and move these files.

GUI (graphical user interface) General

A type of interface that uses interactive graphical elements such as windows, buttons, and icons.

software license General

Legally binding guidelines for use and distribution of software.

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.

application architecture model General

Refers to the design of the essential parts of an application and how they are connected to each other.

locally installed software General

Software installation that is performed on your local computer.

local network hosted General

Software installation that is performed on a local area network (LAN).

cloud hosted General

Software that is installed, hosted and accessed entirely from a remote server or location.