1/45
Comprehensive vocabulary flashcards covering fundamental programming concepts, control structures, roles, operators, functions, data structures, and algorithms from the lecture notes.
For Loop
A control structure that lets us repeat code a fixed number of times.
While Loop
A control structure that lets us repeat code as long as a condition is true.
Condition
Code put inside an if statement or while loop that returns true or false, allowing you to "ask a question" to your code.
Pseudocode
A brief explanation of code written in plain English.
Define a Function
To write a function with all of the code inside it.
Call a Function
To give the command so the computer will run the code for that function.
Comment
A message in code that explains what is going on; it is ignored by the computer.
Top Down Design
The act of breaking down a large problem into smaller, easier problems to solve.
If Else Statement
A control structure that runs either one section of code or another depending on a test, where only one section will run based on whether the condition is true or false.
Debugging
The process of fixing a problem in your code.
Indentation
The visual structure of code layout that uses whitespace, such as spaces or tabs, to organize code into a hierarchy.
Pair Programming
A collaborative programming practice where two programmers work together at one computer on the same piece of code.
Driver
The role in pair programming responsible for controlling the mouse and keyboard, typing out the code, and solving the current task while keeping the navigator's plan-of-action in mind.
Navigator
The role in pair programming responsible for reading the problem, narrating the plan-of-action, checking for typos or errors as code is produced, and thinking of alternative, more efficient solutions.
Event
An action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.
Variable
A place in a program where data is stored.
Computer
A person or device that makes calculations, stores data, and executes instructions according to a program.
Callback Function
A function passed as a parameter to another function in order to be called later.
input()
A function that prints a prompt and retrieves text entered by the user.
Function
A command that you get to invent and name that allows a program to be broken into smaller parts, making it easier to understand.
Displaying text on the screen.
Computer Science
The study of computational thinking, which is the thinking humans need in order to describe a step-by-step process to a computer.
Input Output (I/O)
A general programming term referring to the flow of information into and out of a program.
Snake Case
A naming convention in computing where spaces are replaced by underscore characters and the first letter of each word is lowercase.
Type Conversion
The process of converting the value of one data type (such as integer, string, or float) to another data type.
Arithmetic Operators
Operators used to perform basic mathematical tasks, including addition (+, subtraction (−, multiplication (∗), division (/), and modulus (%).
Comparison Operators
Operators used to make comparisons between values, including equal to (==), not equal to (!=), less than (<), less than or equal to (<=, greater than or equal to (>=, and greater than (>).
Pseudorandom
Computed values that are not actually random because pure randomness is impossible, but appear random and are random enough for most purposes.
Boolean
A variable that can have one of two values: True or False.
Break
A statement used in for loops and while loops that exits the current loop and resumes execution at the next statement.
Continue
A statement used in while and for loops that rejects all remaining statements in the current iteration and moves control back to the top of the loop for the next iteration.
Logical Operators
Operators used to make logical associations between boolean values.
Scope
The part of the program in which a variable exists, such as globally throughout the program or locally within a specific function.
Local Variable
A variable that is restricted to use within a certain scope of a program.
Return
A statement that exits a function, optionally passing back an expression to the caller; returns None if called with no arguments.
Exceptions
Runtime errors in a program that stop program execution by default.
Try and Except
Programming constructs used to gracefully handle exceptions so that a program can continue execution in spite of them.
Parameters
Pieces of information declared in a function definition; variables in the declaration of a function.
Arguments
The actual values or data passed into a function's parameters when the function is called.
Application Programming Interfaces (APIs)
Specifications and libraries that simplify complex programming tasks by providing sets of clearly defined methods of communication among various computing components.
Data Abstraction
Grouping related data under one name so a program can use the data without depending on its specific details, such as how many items there are.
Managing Complexity
Making a program easier to write, read, and change, such as by replacing many separate variables with a single list.
Efficiency
An estimate of the computational resources an algorithm uses, usually expressed in terms of the size of the input.
Heuristic
An approach that produces a solution that is not guaranteed to be optimal, used when finding an optimal solution is impractical.
Linear Search
A search algorithm that checks each element in order until it finds the target or reaches the end of the list.
Binary Search
A search algorithm performed on a sorted list that checks the middle element and eliminates half of the remaining elements with each comparison.