Docsity

D278 WGU. Scripting & Programming Foundations, Exams of Advanced Education

Toggle sidebar
bg1
D278 WGU. Scripting & Programming Foundations
input - program gets data. file, keyboard
process - program performs computations on data
output - program puts that data somewhere
variables - named item such as x or numPeople to hold a value
programming - problem solving
coral - super simple programming language
integer - whole number
string - A sequence of characters
boolean - true or false
obtaining values - 1. manually assign 2. assign through input box
array - collection of particular data type (names=string, quantity=integer,
price=float, etc.),
each entry known as an element
Array characteristics - always starts at 0, static data structure, must be
declared before use
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

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

D278 WGU. Scripting & Programming Foundations input - program gets data. file, keyboard process - program performs computations on data output - program puts that data somewhere variables - named item such as x or numPeople to hold a value programming - problem solving coral - super simple programming language integer - whole number string - A sequence of characters boolean - true or false obtaining values - 1. manually assign 2. assign through input box array - collection of particular data type (names=string, quantity=integer, price=float, etc.), each entry known as an element Array characteristics - always starts at 0, static data structure, must be declared before use

equality operators - Operators == (is equal to) and != (is not equal to) that compare two values. relational operators - ==, !=, >, <, >=, <= logical operators - and, or, not branches - sequence of statements only executed under a certain condition loop - program that repeatedly executes statements iteration - each time the loop runs white loop - A loop that continues to repeat while a condition is true. Ex; While it's raining, grab an umbrella. used when unsure of how many times loop will run do-while loop - Iterate while the condition is true, tells you to something first, action before evaluation EX: do { ... this thing } while(condition); for loop - Loops that have a predetermined beginning, end, and increment (step interval). used when you already know how many times to repeat. algorithm - sequence of instructions that solves a problem flowchart - graphical language for creating/ viewing computer programs

ex: x = 5, "=" means assigned not equal to identifier - name created by a programmer for an item like a variable or function sequence of letters(must be first, no spaces, case sensitive), underscores(cannot be first), & digits literal - specific value in code operator - a symbol that performs a built-in calculation -,+, *, / 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 - any number with a decimal point showing one or more digits behind the decimal point. e. "4.0" or "0.087" floating point literal - a number with a fractional part, even if that fraction is 0, as in 1.0, 0.0, or 99. function - list of statements executed by invoking function's name algorithm efficeny - measured by algorithm's computational complexity computational complexity - the amount of resources used by the algorithm

runtime complexity - A function, T(N), that represents the number of constant time operations performed by the algorithm on an input of size N. space complexity - S(N) represents number of fixed-size memory units used by an algorithm for an input size N. Ex. S(N) = N + k where k is constant representing memory used for things like loop counters linear search - algorithm that checks each element of a list, in order, until the desired value is found or all elements in the list have been checked runtime - the time the algorithm takes to execute binary search - a search algorithm that starts at the middle of a sorted set of numbers and removes half of the data; this process repeats until the desired value is found or all elements have been eliminated. heuristic - technique that accepts less accurate solution to improve execution speed SDLC - Systems Development Life Cycle SDLC phases - analysis, design, implementation, testing SDLC analysis - defines a programs goals & requirements for system SDLC design - defines specifics of how to build a program ex: create a diagram that specifies the require order of events between completed program components

UML class diagram - structural diagram used to visually model classes of a computer program, data members / functions System's classes, attributes, and methods and their features, constraints, and relationships class - a code blueprint for creating an object sequence diagram - a behavioral diagram that shows interaction between software components and indicates the order of events does not contain code use case sdlc - analysis class diagram sdlc - design activity diagram sdlc - implementation sequence diagram sdlc - testing statically typed - each variable's type must be declared and cannot change while the program runs compiled language dynamically typed - a variable's type may change while a program executes, based on what is assigned to the variable. easy to use, python markup language - allows a developer to describe a document's content, desired formatting, or other features HTML

library - set of pre-written functions that carry out common tasks used to improve productivity, code already tested infinite loop - loop that never stops iterating sentinel value - a special value used to notify the program to stop accepting input, indicates end of list statement - specific action in the program interpreter - tool that runs a program's statements assignment operators - =, +=, -=, *=, /=, %= logical operators - && [and] || [or] ! [not] true or false relational operators - ==, !=, >, <, >=, <= identify a relationship between two values true or false operators - relational, equality, & logical function - named list of statements compiled language - first converted by a tool (compiler) into machine code, which can run on a particular machine. run fast ex: C, C++, Java