Docsity

WGU - Scripting and Programming Foundations, Exams of Advanced Education

Toggle sidebar
bg1
WGU - 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.
Pseudocode - CORRECT ANSWER โœ”โœ”โœ” Text that resembles a program in a real
programming language but is simplified to aid human understanding.
Assignment statement - CORRECT ANSWER โœ”โœ”โœ” Assigns a variable with a value,
such as x = 5. An assignment statement's left side must be a variable. The right
side is an expression.Examples: x = 5, y = a, or z = w + 2.
= - CORRECT ANSWER โœ”โœ”โœ” In programming, = is an assignment of a left-side
variable with a right-side value. It does not represent equality like in mathematics.
pf3
pf4
pf5

Partial preview of the text

Download WGU - Scripting and Programming Foundations and more Exams Advanced Education in PDF only on Docsity!

WGU - 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. Pseudocode - CORRECT ANSWER โœ”โœ”โœ” Text that resembles a program in a real programming language but is simplified to aid human understanding. Assignment statement - CORRECT ANSWER โœ”โœ”โœ” Assigns a variable with a value, such as x = 5. An assignment statement's left side must be a variable. The right side is an expression.Examples: x = 5, y = a, or z = w + 2. = - CORRECT ANSWER โœ”โœ”โœ” In programming, = is an assignment of a left-side variable with a right-side value. It does not represent equality like in mathematics.

Variable declaration - CORRECT ANSWER โœ”โœ”โœ” Declares a new variable, specifying the variable's name and type. Identifier - CORRECT ANSWER โœ”โœ”โœ” A name created by a programmer for an item like a variable or function. An identifier must: be a sequence of letters (a-z, A-Z), underscores (_), and digits (0-9), AND start with a letter or underscore. 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. Type conversion - CORRECT ANSWER โœ”โœ”โœ” A conversion of one data type to another, such as an integer to a float. Implicit conversion - CORRECT ANSWER โœ”โœ”โœ” When a program automatically performs several common conversions between integer and float types (as well as others). Type cast - CORRECT ANSWER โœ”โœ”โœ” Converts a value of one type to another type. String - CORRECT ANSWER โœ”โœ”โœ” A sequence of characters, like "Hello".

Sentinel value - CORRECT ANSWER โœ”โœ”โœ” 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 - CORRECT ANSWER โœ”โœ”โœ” A loop that repeatedly executes the loop body while the loop's expression evaluates to true. 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. Systems development life cycle (SDLC) - CORRECT ANSWER โœ”โœ”โœ” Analysis phase, design phase, implementation phase, and testing phase. Analysis phase - CORRECT ANSWER โœ”โœ”โœ” Defines a program's goals. Design phase - CORRECT ANSWER โœ”โœ”โœ” Defines specifics of how to build a program.

Implementation phase - CORRECT ANSWER โœ”โœ”โœ” Involves writing the program. Testing phase - CORRECT ANSWER โœ”โœ”โœ” Checks that the program correctly meets the goal. Waterfall approach - CORRECT ANSWER โœ”โœ”โœ” 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) - 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. Interpreted language (scripting language) - CORRECT ANSWER โœ”โœ”โœ” A language that is run one statement at a time by another program called an interpreter. Examples include Python, Javascript, C#, and MATLAB.