WGU D335 Study Guide Material Verified - Complete Verified Answer Set
WGU D335 Study Guide Material Verified - Complete Verified Answer Set A program consists of? - answer - input, process, output A named item used to hold a value? - answer - variable Sequence of instructions that solves a problem. - answer - Algorithm program that executes python programming. - answer - python intreperter or IDE textual representation of a program - answer - code row of text - answer - line indicates the interpreter is ready to accept user input - answer - prompt line of executable code - answer - statement returns a value when evaluated - answer - expression displays output to the screen and starts a new line - answer - print( ) denotes a comment - answer - # or """ text enclosed in quotes - answer - string literal keep multiple print statements on one line - answer - end=' ' used to get text from user - answer - input ( ) determines how a value can behave - answer - type( ) convert string to an integer - answer - int( ) syntaxes error - answer - a violation of the program language rules on how symbols can be defined runtime error - answer - the program attempts an impossible operation indentation error - answer - lines inside the program are not properly indented Value Error - answer - invalid value used name error - answer - The program tries to use a variable that does not exist. type error - answer - An operation uses incorrect types - can occur if adding an integer to a string. logic error (bug) - answer - program runs but does the wrong thing any blank space or new line - answer - whitespace = - answer - assigns a variable with a value increasing variables by a value of 1 - answer - incrementing a number with a decimal point - answer - float( ) stub function - answer - A function that acts as a placeholder and returns a simple value so another function can be tested statement - answer - a program function. each statement appears as on its own line expression - answer - Any valid unit of code that resolves to a value. starts a new line - answer - print( ) if there are multiple print( ) statements adding this will keep the output on the same line - answer - end=' ' n - answer - output advanced to the next line converts a string into an integer - answer - int( ) predefined statements that are repeadly used - answer - function Parameter(s) - answer - what gets passed into a function value that get past into parameters - answer - argument Variable created inside a function - answer - scope ___ says a block of code will follow - answer - : returns the index of the first occurrence of x in the string - answer - find(x)
Dokument Information
- Hochgeladen auf
- 5. november 2026
- Anzahl der Seiten
- 3
- geschrieben in
- 2026/2027
- Typ
- Prüfung
- Enthält
- Fragen & antworten