Scripting and Programming Foundations WGU 4.4 (5 reviews) Students also studied Terms in this set (74) Western Governors UniversityIT C182 Save WGU - Scripting and Programming ...85 terms Pontiac1979Preview D278 Exam Prep 53 terms Sergeantsavage1 Preview Ultimate D278 Scripting and Progra...Teacher 114 terms Sara_HoeftPreview
D278 P
70 terms asu Practice questions for this set Learn1 / 7Study using Learn 1- Gather requirements 2- Describe the application 3- Identify the main objects 4- Describe the interactions between objects 5- Create a class diagram Editorallows you to write code CompilerTurns programming language into computer language Choose an answer 1Editor2UML design process 3Change variable value4Expression Don't know?
InterpreterSame as compiler, but converts code one step at a time instead of the entire program at once OperatorAn object that takes two operands and does something with them ExpressionSomething that has value Terminal vs non-terminal expressionTerminal is a final value, non-terminal can be reduced further Proper Python expression grammarExpression > expression operator expression VariableA name that refers to a value StringText surrounded by quotes IntegerA number BooleanA true or false value Programming grammarLanguage rules, returns a syntax error if not followed Change variable valueUsing an = assigns a new value Indexing a stringSelecting a sub-sequence of a string Slicing a stringObtaining a subset of data from a string +Concatenate or add =Assignment *Multiply, when applied to string data it writes out the string multiple times -Subtract /Divide %Does division and returns remainder ProcedureTakes an input processes input produces output FunctionSame as procedure written once but can be called upon many times ParameterAn input to a procedure or function
OperandSame as an input or a parameter ReturnDefines the output for a function While loopExecutes as long as the test expression is true while
else:
for in :
- :
print colors[0:2]
Pop methodRemoves the last element from a list by default, or a specific element using an index
Updating a listLists can be updated using a mutation with a index Locating a value in multiple listsUse index to first select the sub-list, then the value in that list print Colors [0] [1] Append operatorMutates list by adding elements to the end of the list ObjectSomething that has its own identity, attributes, and behavior ClassDescribes what an object will be, one class can have many objects A house is an object, the blueprints to the house are a class Dot notation