D335INTROTOPYTHONQUESTIONSWITH b b b b b
CORRECT ANSWERS 2025/2026 b b b
ComputerProgram-CORRECTANSWER-Setofinstructionsexecutingoneatatime.
b b b b b b b b b b b b
Input-CORRECTANSWER-Datathatisenteredintothecomputersystemviaan inputor storage
b b b b b b b b b b b b b b b b
device.
b
Process-CORRECT ANSWER -Aseriesofactionsorstepstakentoachieveanend
b b b b b b b b b b b b b b
Output-CORRECT ANSWER-Datathathasbeenprocessed intoausefulformat.
b b b b b b b b b b b b
Variables-CORRECT ANSWER -Anamediteminaprogram,suchasxornum_people,usedto hold a
b b b b b b b b b b b b b b b b b b
value
b
InteractiveInterpreter-CORRECTANSWER-aprogramthatallowstheusertoexecuteoneline of code
b b b b b b b b b b b b b b b b
at a time
b b b
Code-CORRECTANSWER-Commonwordforthetextualrepresentationofaprogram
b b b b b b b b b b b b
Prompt('>>>')- CORRECT ANSWER-Asignal thattheinterpreterisreadytoacceptcode
b b b b b b b b b b b b b b
Statement-CORRECTANSWER-Aprograminstruction b b b b b b
Expressions-CORRECTANSWER-Acombinationofitems,likevariables,literals,and parentheses,
b b b b b b b b b b b b
that evaluates to a value, like 2*(x=1).
b b b b b b b
Codesthatreturnavalue whenevaluated
b b b b b b
, Assignment-CORRECT ANSWER -Createsanewvariableusingthe '='symbol b b b b b b b b b b b
"="- CORRECT ANSWER-assignmentoperator(NOT EQUALITY)
b b b b b b b b b
=isanassignmentofaleft-sidevariablewitharight-sidevalue
b b b b b b b b b b b
print()-CORRECTANSWER-Displaysvariablesorexpressionvalues b b b b b b b b
Always adds a newline character after the output
b b b b b b b b
" # "- CORRECT ANSWER -Comments
b b b b b b
Comments- CORRECT ANSWER -Uses"#" b b b b b
Can beusedto explainportionsofthe codetohumanreadersand willbe ignored bythe program
b b b b b b b b b b b b b b b b b b
StringLiteral -CORRECTANSWER -('HelloWorld') b b b b b b
Textenclosedinquotesthatwillbereadasactualtextbytheprogram.Mayhaveletters, numbers,
b b b b b b b b b b b b b b b b b
spaces, or symbols
b b b
end=''-CORRECT ANSWER-keepsthenextprint'soutputon thesamelineseparated bya single space
b b b b b b b b b b b b b b b b b b
Comma(,)-CORRECT ANSWER -Allowsprintingmultipleitemsusingasingleprint()statement.
b b b b b b b b b b b b b b b
print('Wage: ', wage)
b b b
NewlineCharacter-CORRECTANSWER-Outputcan bemovedtothenextlinebyprinting \n b b b b b b b b b b b b b b b
print("'\n2\n3') gives
b b
CORRECT ANSWERS 2025/2026 b b b
ComputerProgram-CORRECTANSWER-Setofinstructionsexecutingoneatatime.
b b b b b b b b b b b b
Input-CORRECTANSWER-Datathatisenteredintothecomputersystemviaan inputor storage
b b b b b b b b b b b b b b b b
device.
b
Process-CORRECT ANSWER -Aseriesofactionsorstepstakentoachieveanend
b b b b b b b b b b b b b b
Output-CORRECT ANSWER-Datathathasbeenprocessed intoausefulformat.
b b b b b b b b b b b b
Variables-CORRECT ANSWER -Anamediteminaprogram,suchasxornum_people,usedto hold a
b b b b b b b b b b b b b b b b b b
value
b
InteractiveInterpreter-CORRECTANSWER-aprogramthatallowstheusertoexecuteoneline of code
b b b b b b b b b b b b b b b b
at a time
b b b
Code-CORRECTANSWER-Commonwordforthetextualrepresentationofaprogram
b b b b b b b b b b b b
Prompt('>>>')- CORRECT ANSWER-Asignal thattheinterpreterisreadytoacceptcode
b b b b b b b b b b b b b b
Statement-CORRECTANSWER-Aprograminstruction b b b b b b
Expressions-CORRECTANSWER-Acombinationofitems,likevariables,literals,and parentheses,
b b b b b b b b b b b b
that evaluates to a value, like 2*(x=1).
b b b b b b b
Codesthatreturnavalue whenevaluated
b b b b b b
, Assignment-CORRECT ANSWER -Createsanewvariableusingthe '='symbol b b b b b b b b b b b
"="- CORRECT ANSWER-assignmentoperator(NOT EQUALITY)
b b b b b b b b b
=isanassignmentofaleft-sidevariablewitharight-sidevalue
b b b b b b b b b b b
print()-CORRECTANSWER-Displaysvariablesorexpressionvalues b b b b b b b b
Always adds a newline character after the output
b b b b b b b b
" # "- CORRECT ANSWER -Comments
b b b b b b
Comments- CORRECT ANSWER -Uses"#" b b b b b
Can beusedto explainportionsofthe codetohumanreadersand willbe ignored bythe program
b b b b b b b b b b b b b b b b b b
StringLiteral -CORRECTANSWER -('HelloWorld') b b b b b b
Textenclosedinquotesthatwillbereadasactualtextbytheprogram.Mayhaveletters, numbers,
b b b b b b b b b b b b b b b b b
spaces, or symbols
b b b
end=''-CORRECT ANSWER-keepsthenextprint'soutputon thesamelineseparated bya single space
b b b b b b b b b b b b b b b b b b
Comma(,)-CORRECT ANSWER -Allowsprintingmultipleitemsusingasingleprint()statement.
b b b b b b b b b b b b b b b
print('Wage: ', wage)
b b b
NewlineCharacter-CORRECTANSWER-Outputcan bemovedtothenextlinebyprinting \n b b b b b b b b b b b b b b b
print("'\n2\n3') gives
b b