Docsity

D335 Introduction to Programming in Python Study Guide | Practice Questions & Answers, Exams of Computer Science

Toggle sidebar
bg1
WGU D335 QUESTIONS WITH CORRECT
ANSWERS 2025/2026
A program consists of? - CORRECT ANSWER -input, process, output
A named item used to hold a value? - CORRECT ANSWER -variable
Sequence of instructions that solves a problem. - CORRECT ANSWER -
Algorithm
program that executes python programming. - CORRECT ANSWER -python
intreperter or IDE
textual representation of a program - CORRECT ANSWER -code
row of text - CORRECT ANSWER -line
indicates the interpreter is ready to accept user input - CORRECT ANSWER -
prompt
line of executable code - CORRECT ANSWER -statement
returns a value when evaluated - CORRECT ANSWER -expression
displays output to the screen and starts a new line - CORRECT ANSWER -
print( )
denotes a comment - CORRECT ANSWER -# or """
pf3
pf4
pf5

Partial preview of the text

Download D335 Introduction to Programming in Python Study Guide | Practice Questions & Answers and more Exams Computer Science in PDF only on Docsity!

WGU D335 QUESTIONS WITH CORRECT

ANSWERS 2025/

A program consists of? - CORRECT ANSWER -input, process, output A named item used to hold a value? - CORRECT ANSWER -variable Sequence of instructions that solves a problem. - CORRECT ANSWER - Algorithm program that executes python programming. - CORRECT ANSWER -python intreperter or IDE textual representation of a program - CORRECT ANSWER -code row of text - CORRECT ANSWER -line indicates the interpreter is ready to accept user input - CORRECT ANSWER - prompt line of executable code - CORRECT ANSWER -statement returns a value when evaluated - CORRECT ANSWER -expression displays output to the screen and starts a new line - CORRECT ANSWER - print( ) denotes a comment - CORRECT ANSWER -# or """

text enclosed in quotes - CORRECT ANSWER -string literal

=W-WCORRECTWANSWERW-assignsWaWvariableWwithWaWvalue increasingWvariablesWbyWaWvalueWofW 1 W-WCORRECTWANSWERW-incrementing aWnumberWwithWaWdecimalWpointW-WCORRECTWANSWERW-float(W) stubWfunctionW-WCORRECTWANSWERW- AWfunctionWthatWactsWasWaWplaceholderWandWreturnsWaWsimpleWvalueWsoWanothe rWfunctionWcanWb eWtested statementW-WCORRECTWANSWERW- aWprogramWfunction.WeachWstatementWappearsWasWonWitsWownWline expressionW-WCORRECTWANSWERW- AnyWvalidWunitWofWcodeWthatWresolvesWtoWaWvalue. startsWaWnewWlineW-WCORRECTWANSWERW-print(W) ifWthereWareWmultipleWprint(W)WstatementsWaddingWthisWwillWkeepWtheWoutputWon WtheWsameWlineW- WCORRECTWANSWERW-end='W' \nW-WCORRECTWANSWERW-outputWadvancedWtoWtheWnextWline convertsWaWstringWintoWanWintegerW-WCORRECTWANSWERW-int(W) predefinedWstatementsWthatWareWrepeadlyWusedW-WCORRECTWANSWERW- function Parameter(s)W-WCORRECTWANSWERW-whatWgetsWpassedWintoWaWfunction

valueWthatWgetWpastWintoWparametersW-WCORRECTWANSWERW-argument VariableWcreatedWinsideWaWfunctionW-WCORRECTWANSWERW-scope ___WsaysWaWblockWofWcodeWwillWfollowW-WCORRECTWANSWERW-: returnsWtheWindexWofWtheWfirstWoccurrenceWofWxWinWtheWstringW- WCORRECTWANSWERW-find(x)