

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















floating point numbers (Ans- decimal point appearing anywhere ("float") in the number type float (Ans- variable that stores a floating-point number floating-point literal (Ans- a number with a fractional part, even if that fraction is 0, as in 1.0, 0.0, or 99. Infinity or - Infinity (Ans- Dividing a nonzero floating-point number by zero. Not a Number (NotANumber) (Ans- when a dividend and divisor are both 0
Function (Ans- list of statements executed by invoking the function's name, with such invoking known as a function call Arguments (Ans- The values that the programmer provides in the function call. Random Number (Ans- Coral function that takes two arguments, lowValue and highValue, and returns an integer in that range; e.g. RandomNumber (1, 10) returns a random integer in the range 1 to 10 pseudo-random (Ans- integers generated by RandomNumber() Seed (Ans- built-in integer divide-by-zero error (Ans- Occurs at runtime if a divisor is 0, causing a program to terminate.
Scalar (Ans- Only has one value versus an array which has a list of values Branch (Ans- sequence of statements only executed under a certain condition decision (Ans- creates two branches (e.g. true/false branches); afterward, branches rejoin; aka if-else branches if-else branch (Ans- has two branches: The first branch is executed IF an expression is true, ELSE the other branch is executed. if-elseif branches (Ans- a series of decisions appear cascaded in each decision's false branch equality operator (Ans- (==) evaluates to true if the left side and right side are equal
nested branches (Ans- Branches that can take on various forms, and the if-else branches may even use different variables. multiple if branches (Ans- each decision is independent, and thus more than one branch can execute, in contrast to the if-elseif arrangement where only one branch can execute. != (Ans- not equal Relational Operators (Ans- Used to compare two values. Operators include =,<,>,<=,>=,<> logical operator (Ans- Treats operands as being true or false, and evaluates to true or false; includes: and, or, not; implicitly vs explicitly (Ans- no gaps = implicitly gaps = explicitly
infinite loop (Ans- loop that never stops iterating Greatest Common Divisor (Ans- GCD; found using Euclid's algorithm between two user-entered integers numA and numB; either set NumA to NumA - NumB or vice versa until NumA and NumB equal each other sentinel value (Ans- a special value indicating the end of a list, such as a list of positive integers ending with 0, as in 10 1 6 3 0 Loop Variable Initialization, loop expression, loop variable update (Ans- parts of a loop that iterate a specific number of times while loop (Ans- a programming construct used to repeat a set of commands (loop) as long as (while) a boolean condition is true for loop (Ans- type of loop that contains a loop variable initialization, a loop expression, and a loop variable update that typically describes iterating for a specific number of times. nested loop (Ans- A loop inside the body of another loop; commonly referred to as inner loop and outer loop
inner loop (Ans- for loop that handles the printing of the asterisks outer loop (Ans- while loop that handles executing until a negative number is entered do-while loop (Ans- first executes the loop body's statements, then checks the loop condition vector (Ans- construct similar to an array element (Ans- each item in an array is known as... index (Ans- each element's location number is called the... ; myArray[2] has an index 2; usually will start with 0 instead of 1: myArray[0], myArray[1], myArray[2]... swapping (Ans- two variables swap value; e.g. x = 55 and y = 7 --> x = 7 and y = 55; typically will need a third variable (tmpVal) to hold one of the values while the swap occurs function is a ___ (Ans- named list of statements; function definition, function call, local variable
Modular development (Ans- The process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program. function stub (Ans- a function definition whose statements have not yet been written function definition begins with ___ (Ans- begins with word "Function," the function's name, and a list comma-separated parameters (if any) in parentheses, and a return indication return statement (Ans- explicitly returns the specified value and immediately exits the function algorithm time efficiency (Ans- number of calculations it takes to solve a problem in an algorithm linear (Ans- type of algorithm that starts at the beginning and checks each item until found; search may be slow binary (Ans- type of algorithm that checks range's middle; if value is greater, will search in upper half and vice versa; essentially looking at half the data not all of it; can be faster than linear (e.g. used with search engines)
computational problem (Ans- specifies an input, a question about the input that can be answered using a computer, and the desired output. longest common substring (Ans- type of algorithm that determines the longest common substring that exists in two inputs strings (e.g. used for DNA analysis) Dijsktra's shortest path (Ans- type of algorithm that determines the shortest path from a start vertex to each vertex in a graph (e.g. used for navigation) algorithm efficiency (Ans- is measured by algorithm runtime; more efficient is less runtime; measured in computational complexity NP-complete (Ans- a set of problems for which no known efficient algorithm exists NP-complete characteristics (Ans- no efficient algorithm has been found to solve problem; no one has proven that an algorithm is possible; if an efficient algorithm exists for one NP-complete problem, then all NP- complete problems can be solved efficiently
sorting (Ans- process of converting a list of elements in ascending or descending order; a lot of times will involve swapping values in an algorithm heuristic (Ans- A technique that willingly accepts a non-optimal or less accurate solution in order to improve execution speed 0 - 1 knapsack problem (Ans- problem with the quantity of each item limited to 1 heuristic algorithm (Ans- algorithm that determines a near optimal or approximate solution; can be used to solve 0-1 knapsack problem Systems of Development Life Cycle (Ans- SDLC; analysis phase, design phase, implementation phase, testing phase analysis phase (Ans- phase that identifies a program's goals design phase (Ans- phase that defines specifics of how to build a program implementation phase (Ans- phase that involves writing the program
testing phase (Ans- phase that checks whether the program meets the goals waterfall approach (Ans- sequence of phases that always continues; once that phase is up, you don't go back to it (like going down a waterfall) agile approach (Ans- aka spiral approach; program built in small amounts and then repeats object (Ans- grouping of data (variables) and operations that can be performed on that data (functions) abstraction (Ans- user interacts with an item at a high-level, with lower- level internal details hidden from the user (information hiding or encapsulation) [e.g. when you use an oven, you turn a knob or hit some buttons...you are not dealing with internal parts of oven) abstract data type (Ans- ADT; data type whose creation and update are constrained to specific well-defined operations universal modeling langauge (Ans- UML; modeling language for software design that uses different types of diagrams to visualize the
sequence diagram (Ans- type of behavioral diagram that shows interaction between software components and indicates the order of events; commonly used to illustrate sequence of events needed to handle a specific scenario in software; testing phase software requirements specification (Ans- SRS; produced from each approach in the analysis phase; a document describing all requirements of a software; compiled language (Ans- first converted by a tool (compiler) into machine code (executable); languages run faster, usually for more experienced programmers; e.g. C, C++, Java, C# interpreted language (Ans- aka scripted language; run one statement at a time by another program called the interpreter; usually used for beginningers because can be run on any machine that has an interpreter; may run more slowly; e.g. Python, Javascript, MATLAB source code (Ans- high-level program statically typed (Ans- each variable's type must be declared and cannot change while the program runs; e.g. compiled language
dynamically typed (Ans- a variable's type may change while a program executes, usually based on what is assigned to the variable; e.g. interpreted language objected-oriented language (Ans- supports decomposing a program into objects; makes program more manageable, understandable, and properly-executed; e.g. C++, Python, C#, Java markup language (Ans- allows a developer to describe a document's content, desired formatting, or other features; is not executed statement-by-statement; it is not compiled or run; e.g. HTML library (Ans- set of pre-written functions (and other items) that carry out common tasks, that a programmer can use to increase productivity; functions all typically relate to same purpose like computing statistics or displaying graphics; a program can have more than one library and a library can have more than one function troubleshooting (Ans- the systematic process used to locate the cause of a fault in a computer system and correct the relevant hardware and software issues; aka debugging and causes are called bugs hypothesis (Ans- states a possible cause of a problem
Remove Odd (Ans- aka method in some languages; replacing odd numbers less ten with zeros Computer program (Ans- instructions executing one at a time Basic instruction types (Ans- input, process, output input (Ans- A program gets data, perhaps from a file, keyboard, touchscreen, network, etc. process (Ans- A program performs computations on that data, such as adding two values like x + y. output (Ans- A program puts that data somewhere, such as to a file, screen, network, etc. variable (Ans- programs use these because its value varies e.g. x, y, z; some name that can hold a value; named item Computational Thinking (Ans- creating a sequence of instructions to solve a problem
Algorithm (Ans- A sequence of instructions that solves a problem Flowchart (Ans- graphical language for creating or viewing computer programs coral language (Ans- A language intended for learning to program program (Ans- list/sequence of statements statement (Ans- carries out some action and executes one at a time; specific action; set of instructions node (Ans- each statement is located in one of these (e.g. coral language has these in graphical ____) interpreter (Ans- tool that runs a program's statements run and execute (Ans- Words for carrying out a program's statements. start (Ans- program execution begins at the ____ node