Docsity

WGU D278 - SCRIPTING AND PROGRAMMING FOUNDATIONS, Exams of Advanced Education

Toggle sidebar
bg1
1 | P a g e
WGU D278 - SCRIPTING AND PROGRAMMING FOUNDATIONS
Program - CORRECT ANSWER -Consists of instructions executing
one at a time.
Input - CORRECT ANSWER -A program gets data, perhaps from
a file, keyboard, touchscreen, network, etc.
Process - CORRECT ANSWER -A programs performs
computations on that data, such as adding two values like x + y.
Output - CORRECT ANSWER -A programs puts that data
somewhere, such as to a file, screen, network, etc.
Computational thinking - CORRECT ANSWER -Creating a
sequence of instructions to solve a problem.
Algorithm - CORRECT ANSWER -A sequence of instructions that
solves a problem.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download WGU D278 - SCRIPTING AND PROGRAMMING FOUNDATIONS and more Exams Advanced Education in PDF only on Docsity!

WGU D278 - SCRIPTING AND PROGRAMMING FOUNDATIONS

Program - CORRECT ANSWER - Consists of instructions executing one at a time. Input - CORRECT ANSWER - A program gets data, perhaps from a file, keyboard, touchscreen, network, etc. Process - CORRECT ANSWER - A programs performs computations on that data, such as adding two values like x + y. Output - CORRECT ANSWER - A programs puts that data somewhere, such as to a file, screen, network, etc. Computational thinking - CORRECT ANSWER - Creating a sequence of instructions to solve a problem. Algorithm - CORRECT ANSWER - A sequence of instructions that solves a problem.

Statement - CORRECT ANSWER - Carries out some action and executing one at a time. String literal - CORRECT ANSWER - Consists of text (characters) within double quotes, as in "Go #57!". Cursor - CORRECT ANSWER - Indicates where the next output item will be placed in the output. Newline - CORRECT ANSWER - A special two-character sequence \n whose appearance in an output string literal causes the cursor to move to the next output line. The newline exists invisibly in the output. Comment - CORRECT ANSWER - Text added to a program, read by humans to understand the code, but ignored by the program when executed. Whitespace - CORRECT ANSWER - Refers to blank spaces (space and tab characters) between items within a statement, and to newlines. Whitespace helps improve readability for humans, but for execution purposes is mostly ignored.

Reserved word or keyword - CORRECT ANSWER - 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 - CORRECT ANSWER - Abuts multiple words, capitalizing each word except the first, such as numApples. Underscore separated - CORRECT ANSWER - Words are lowercase and separated by an underscore, such as num_apples. Expression - CORRECT ANSWER - A combination of items, like variables, literals, operators, and parentheses, that evaluates to a value. Example: 2 * (x+1) Literal - CORRECT ANSWER - A specific value in code, like 2. Operator - CORRECT ANSWER - A symbol that performs a built- in calculation, like the operator + which performs addition.

Unary minus - CORRECT ANSWER - The subtraction sign (-) used as a negative. Note about integer literal - CORRECT ANSWER - Commas are not allowed, so 1,333,555 must be written as 1333555. Incremental development - CORRECT ANSWER - 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 - CORRECT ANSWER - A real number, like 98.6, 0.0001, or - 666.667. Floating-point literal - CORRECT ANSWER - A number with a fractional part, even if that fraction is 0, such as 1.0, 0.0, or 99.573. Function - CORRECT ANSWER - A list of statements executed by invoking the function's name, with such invoking known as a function call.

Constant - CORRECT ANSWER - A named value item that holds a value that cannot change. Element - CORRECT ANSWER - Each item in an array. Index - CORRECT ANSWER - In an array, each element's location number. Scalar variable - CORRECT ANSWER - A single-item (non-array) variable. Branch - CORRECT ANSWER - A sequence of statements only executed under a certain condition. Nested branches - CORRECT ANSWER - A branch's statements can include any valid statements, including another if-else branch. Equality operator - CORRECT ANSWER - Checks whether two operand's values are the same (==) or different (=!). Note that equality is ==, not just =.

Relational operator - CORRECT ANSWER - Checks how one operand's value relates to another, like being greater than. Logical operator - CORRECT ANSWER - Treats operands as being true or false, and evaluates to true or false. Logical operators include and, or, not. Epsilon - CORRECT ANSWER - The difference threshold indicating that floating-point numbers are equal. if-else statement - CORRECT ANSWER - An if expression with the true branch's sub-statements, followed by an else part with any false branch sub-statements. if statement - CORRECT ANSWER - An if expression followed by sub-statements, with no else part. if-elseif statement - CORRECT ANSWER - Starts with an if expression, followed by elseif expressions, and ending with else; when a program reaches the statement, exactly one of

For loop - CORRECT ANSWER - 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 - CORRECT ANSWER - 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 - CORRECT ANSWER - 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. Function definition - CORRECT ANSWER - Consists of the new function's name and a block of statements. The function's name can be any valid identifier. Function call - CORRECT ANSWER - An invocation of a function's name, causing the function's statements to execute.

Parameter - CORRECT ANSWER - A function input specified in a function definition. Example: A pizza area function might have diameter as an input. Argument - CORRECT ANSWER - A value provided to a function's parameter during a function call. Example: A pizza area function might be called as PrintPizzaArea(12.0). Modular development - CORRECT ANSWER - 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 - CORRECT ANSWER - A function definition whose statements have not yet been written. Return statement - CORRECT ANSWER - Returns the specified value and immediately exits the function. Algorithm time efficiency - CORRECT ANSWER - The number of calculations required to solve a problem. For the same problem, some algorithms may be much more time efficient than others.

Agile approach (spiral approach) - CORRECT ANSWER - In contrast, a program can be built by doing small amounts of each SDLC phases in sequence, and then repeating. Universal Modeling Language (UML) - CORRECT ANSWER - 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 - CORRECT ANSWER - Visualizes static elements of software, such as the types of variables and functions used in the program. Behavioral diagram - CORRECT ANSWER - Visualizes dynamic behavior of software, such as the flow of an algorithm. Activity diagram - CORRECT ANSWER - A flowchart used to describe the flow of an activity or set of activities. Use case diagram - CORRECT ANSWER - 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 - CORRECT ANSWER - 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 - CORRECT ANSWER - 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 - CORRECT ANSWER - First converted by a tool (compiler) into machine code, which can run on a particular machine. Examples include C, C++, and Java.

objects. C does not. MATLAB and Javascript provide some support. Markup language - CORRECT ANSWER - Allows a developer to describe a document's content, desired formatting, or other features. A popular markup language is HTML. HTML allows a developer to describe the text, links, images, and other features of a web page. While some people refer to "HTML programming", a markup language is not executed statement- by-statement like a programming language, and an HTML file is not a program. Rather, a web browser reads an HTML file and renders the corresponding web page. An HTML file surround text by different tags to yield different formatting. Library - CORRECT ANSWER - A set of pre-written functions (and other terms) that carry out common tasks that a programmer can use to improve productivity. After including a library with a program, a programmer can make use of the library's functions. A library's functions typically all relate to the same purpose, like computing statistics, or like displaying graphics. A programmer may include several libraries in a single program.