WGU D335
5.0 (1 review) Students also studied Terms in this set (40) Western Governors UniversityD 333 Save WGU D335 Practice Test 2 15 terms kailee_kovach5 Preview Intro to python (OA) practice Teacher 14 terms coreillyscience Preview
WGU D 335: Introduction to Progra...
15 terms xxDragonflamezxx Preview
D335: I
10 terms PiaV Practice questions for this set Learn1 / 7Study using Learn The program tries to use a variable that does not exist.A program consists of?input, process, output A named item used to hold a value?variable Sequence of instructions that solves a problem. Algorithm program that executes python programming.python intreperter or IDE Choose an answer 1runtime error2overflow error 3name error4logic error Don't know?
textual representation of a programcode row of textline indicates the interpreter is ready to accept user input prompt line of executable codestatement returns a value when evaluatedexpression displays output to the screen and starts a new line print( ) denotes a comment# or """ text enclosed in quotesstring literal keep multiple print statements on one lineend=' ' used to get text from userinput ( ) determines how a value can behavetype( ) convert string to an integerint( ) syntaxes errora violation of the program language rules on how symbols can be defined runtime errorthe program attempts an impossible operation indentation errorlines inside the program are not properly indented Value Errorinvalid value used name errorThe program tries to use a variable that does not exist.type errorAn operation uses incorrect types - can occur if adding an integer to a string.logic error (bug)program runs but does the wrong thing any blank space or new linewhitespace =assigns a variable with a value increasing variables by a value of 1incrementing a number with a decimal pointfloat( ) stub functionA function that acts as a placeholder and returns a simple value so another function can be tested
statementa program function. each statement appears as on its own line expressionAny valid unit of code that resolves to a value.starts a new lineprint( ) if there are multiple print( ) statements adding this will keep the output on the same line end=' ' \noutput advanced to the next line converts a string into an integerint( ) predefined statements that are repeadly usedfunction Parameter(s)what gets passed into a function value that get past into parametersargument Variable created inside a functionscope
___ says a block of code will follow:
returns the index of the first occurrence of x in the string find(x)