






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!







Function A list of statements executed by invoking the function's name, with such invoking known as a function call. Type conversion A conversion of one data type to another, such as an integer to a float. Implicit conversion When a program automatically performs several common conversions between integer and float types (as well as others). Type cast Converts a value of one type to another type. String A sequence of characters, like "Hello". Boolean Refers to a quantity that has only two possible values, true or false. Array An ordered list of items of a given data type, like an array of integers or an array of floats. Array indices start from 0, not 1. Constant A named value item that holds a value that cannot change. Element Each item in an array. Index
In an array, each element's location number. Scalar variable A single-item (non-array) variable. Program Consists of instructions executing one at a time. Input A program gets data, perhaps from a file, keyboard, touchscreen, network, etc. Process A programs performs computations on that data, such as adding two values like x + y. Output A programs puts that data somewhere, such as to a file, screen, network, etc. Computational thinking Creating a sequence of instructions to solve a problem. Algorithm A sequence of instructions that solves a problem. Statement Carries out some action and executing one at a time. String literal Consists of text (characters) within double quotes, as in "Go #57!". Cursor Indicates where the next output item will be placed in the output. Newline
A word that is part of the language, like integer, Get, or Put. A programmer cannot use a reserved word as an identifier. Lower camel case Abuts multiple words, capitalizing each word except the first, such as numApples. Underscore separated Words are lowercase and separated by an underscore, such as num_apples. Expression A combination of items, like variables, literals, operators, and parentheses, that evaluates to a value. Example: 2 * (x+1) Literal A specific value in code, like 2. Operator A symbol that performs a built-in calculation, like the operator + which performs addition. Unary minus The subtraction sign (-) used as a negative. Note about integer literal Commas are not allowed, so 1,333,555 must be written as 1333555. Incremental development The process of writing, compiling, and testing a small amount of code, then writing, compiling, and testing a small amount more (an incremental amount), and so on. Floating-point number A real number, like 98.6, 0.0001, or - 666.667.
Floating-point literal A number with a fractional part, even if that fraction is 0, such as 1.0, 0.0, or 99.573. Branch A sequence of statements only executed under a certain condition. Nested branches A branch's statements can include any valid statements, including another if-else branch. Equality operator Checks whether two operand's values are the same (==) or different (=!). Note that equality is ==, not just =. Relational operator Checks how one operand's value relates to another, like being greater than. Logical operator Treats operands as being true or false, and evaluates to true or false. Logical operators include and, or, not. Epsilon The difference threshold indicating that floating-point numbers are equal. if-else statement An if expression with the true branch's sub-statements, followed by an else part with any false branch sub-statements. if statement An if expression followed by sub-statements, with no else part. if-elseif statement
Analysis phase, design phase, implementation phase, and testing phase. Analysis phase Defines a program's goals. Design phase Defines specifics of how to build a program. Implementation phase Involves writing the program. Testing phase Checks that the program correctly meets the goal. Waterfall approach A program can be built by carrying out the SDLC phases in sequence. The term waterfall is used because, just like a boat going down river doesn't come back, no earlier phase is come back to. Agile approach (spiral approach) In contrast, a program can be built by doing small amounts of each SDLC phases in sequence, and then repeating. Universal Modeling Language (UML) A modeling language for software design that uses different types of diagrams to visualize the structure and behavior of programs. UML consists of several structural and behavioral diagrams. Structural diagram Visualizes static elements of software, such as the types of variables and functions used in the program. Behavioral diagram Visualizes dynamic behavior of software, such as the flow of an algorithm. Activity diagram
A flowchart used to describe the flow of an activity or set of activities. Use case diagram A behavioral diagram used to visually model how a user interacts with a software program. Actions from users and the accompanying actions in software, as well as connections between different components of the software, are illustrated in a use case diagram. Use case diagrams are often used to specify behavioral requirements of programs. Class diagram A structural diagram that can be used to visually model the classes of a computer program, including member variables and functions. A class is a code blueprint for creating an object that is composed of data members and functions (sometimes called methods) that operate on those data members. Sequence diagram A behavioral diagram that shows interaction between software components and indicates the order of events. These diagrams are commonly used to illustrate the sequence of events needed to handle a particular scenario in software. Compiled language First converted by a tool ( compiler ) into machine code, which can run on a particular machine. Examples include C, C++, and Java. Interpreted language (scripting language) A language that is run one statement at a time by another program called an interpreter. Examples include Python, Javascript, C#, and MATLAB. Statically typed Each variable's type must be declared and cannot change while the program runs. (Static means unchanging). C, C++, and Java are popular examples. Dynamically typed
proceeds past the loop. Each time through a loop's statements is called an iteration. Infinite loop A loop that never stops iterating. A common error is to accidentally create an infinite loop, often by forgetting to update a variable in the body, or by creating a loop expression whose evaluation to false isn't always reachable. Sentinel value A special value indicating the end of a list, such as a list of positive integers ending with 0, as in 1 0 1 6 3 0. While loop A loop that repeatedly executes the loop body while the loop's expression evaluates to true. For loop A loop consisting of a loop variable initialization, a loop expression, and a loop variable update that typically describes iterating for a specific number of times. Nested loop A loop that appears in the body of another loop. The nested loops are commonly referred to as the inner loop and outer loop. Do-while loop A loop that first executes the loop body's statements, then checks the loop condition. Compared to a while loop, a do-while loop is useful when the loop should iterate at least once.