Update)l Introductionl tol Programmingl inl
Pythonl Guide|l Questionsl &l Answers|l
Gradel A|l 100%l Correctl (Verifiedl
Solutions)
Q:l syntaxl error
Answer:
violatingl al programmingl language'sl rulesl onl howl symbolsl canl bel combinedl tol createl al
program
Q:l runtimel error
Answer:
program'sl syntaxl isl correct,l butl thel programl attempsl anl impossiblel operation,l suchl asl
dividingl byl zerol orl multiplyingl stringsl together
Q:l crash
Answer:
Abruptl andl unintendedl terminationl ofl al program
Q:l SyntaxError
Answer:
Thel programl containsl invalidl codel thatl cannotl bel understood.
Q:l IndentationError
,Answer:
Thel linesl ofl thel programl arel notl properlyl indented.
Q:l ValueError
Answer:
Anl invalidl valuel isl used-l canl occurl ifl givingl letterl tol int().
Q:l NameError
Answer:
Thel programl triesl tol usel al variablel thatl doesl notl exist.
Q:l TypeError
Answer:
Anl operationl usesl incorrectl typesl -l canl occurl ifl addingl anl integerl tol al string
Q:l logicl error
Answer:
Anl errorl inl al programl thatl makesl itl dol somethingl otherl thanl whatl thel programmerl
intended.l (wouldl stilll loadl correctly)
Q:l Al logicl errorl isl oftenl calledl al ______.
Answer:
bug
Q:l integratedl developmentl environmentl (IDE)
Answer:
Providesl al developerl withl al wayl tol createl al program,l runl thel program,l andl debugl thel
programl alll withinl onel application.
, Q:l switch
Answer:
controlsl whetherl orl notl electricityl flowsl throughl al wire
Q:l Positivel voltagel isl treatedl asl al whatl inl computers?
Answer:
1
Q:l Zerol voltagel isl treatedl asl al whatl inl computers?
Answer:
0
Q:l 0sl andl 1sl inl arel knownl asl whatl inl computers
Answer:
bitsl (binaryl digits)
Q:l processors
Answer:
createdl tol processl al listl ofl desiredl calculations
Q:l instruction
Answer:
al calculationl completedl byl al processor
Q:l memory