Docsity

WGU D335 Python Programming Questions and Answers Study Guide Exam Prep, Exams of Programming Languages

Toggle sidebar
bg1
WGU D335 QUESTIONS WITH CORRECT
ANSWERS
A prograṁ consists of? - CORRECT ANSWER -input, process, output
A naṁed iteṁ used to hold a value? - CORRECT ANSWER -variable
Sequence of instructions that solves a probleṁ. - CORRECT ANSWER -
Algorithṁ
prograṁ that executes python prograṁṁing. - CORRECT ANSWER -python
intreperter or IDE
textual representation of a prograṁ - CORRECT ANSWER -code
row of text - CORRECT ANSWER -line
indicates the interpreter is ready to accept user input - CORRECT ANSWER -
proṁpt
line of executable code - CORRECT ANSWER -stateṁent
returns a value when evaluated - CORRECT ANSWER -expression
displays output to the screen and starts a new line - CORRECT ANSWER -
print( )
denotes a coṁṁent - CORRECT ANSWER -# or """
pf3
pf4
pf5

Partial preview of the text

Download WGU D335 Python Programming Questions and Answers Study Guide Exam Prep and more Exams Programming Languages in PDF only on Docsity!

WGU D335 QUESTIONS WITH CORRECT

ANSWERS

A prograṁ consists of? - CORRECT ANSWER -input, process, output A naṁed iteṁ used to hold a value? - CORRECT ANSWER -variable Sequence of instructions that solves a probleṁ. - CORRECT ANSWER - Algorithṁ prograṁ that executes python prograṁṁing. - CORRECT ANSWER -python intreperter or IDE textual representation of a prograṁ - CORRECT ANSWER -code row of text - CORRECT ANSWER -line indicates the interpreter is ready to accept user input - CORRECT ANSWER - proṁpt line of executable code - CORRECT ANSWER -stateṁent returns a value when evaluated - CORRECT ANSWER -expression displays output to the screen and starts a new line - CORRECT ANSWER - print( ) denotes a coṁṁent - CORRECT ANSWER -# or """

text enclosed in quotes - CORRECT ANSWER -string literal

=W-WCORRECTWANSWERW-assignsWaWvariableWwithWaWvalue increasingWvariablesWbyWaWvalueWofW 1 W-WCORRECTWANSWERW-increṁenting aWnuṁberWwithWaWdeciṁalWpointW-WCORRECTWANSWERW-float(W) stubWfunctionW-WCORRECTWANSWERW- AWfunctionWthatWactsWasWaWplaceholderWandWreturnsWaWsiṁpleWvalueWsoWanothe rWfunctionWcanWb eWtested stateṁentW-WCORRECTWANSWERW- aWprograṁWfunction.WeachWstateṁentWappearsWasWonWitsWownWline expressionW-WCORRECTWANSWERW- AnyWvalidWunitWofWcodeWthatWresolvesWtoWaWvalue. startsWaWnewWlineW-WCORRECTWANSWERW-print(W) ifWthereWareWṁultipleWprint(W)WstateṁentsWaddingWthisWwillWkeepWtheWoutputWon WtheWsaṁeWlineW- WCORRECTWANSWERW-end='W' \nW-WCORRECTWANSWERW-outputWadvancedWtoWtheWnextWline convertsWaWstringWintoWanWintegerW-WCORRECTWANSWERW-int(W) predefinedWstateṁentsWthatWareWrepeadlyWusedW-WCORRECTWANSWERW- function Paraṁeter(s)W-WCORRECTWANSWERW-whatWgetsWpassedWintoWaWfunction

valueWthatWgetWpastWintoWparaṁetersW-WCORRECTWANSWERW-arguṁent VariableWcreatedWinsideWaWfunctionW-WCORRECTWANSWERW-scope ___WsaysWaWblockWofWcodeWwillWfollowW-WCORRECTWANSWERW-: returnsWtheWindexWofWtheWfirstWoccurrenceWofWxWinWtheWstringW- WCORRECTWANSWERW-find(x)