Question: State the output if there is no syntax / runtime error in the code segment then put ' NA ' in the 'Reason' column. Otherwise,
State the output if there is no syntaxruntime error in the code segment then put NA in the 'Reason' column.
Otherwise, specify the error type from one of the following: SyntaxErrorRuntimeErrorLogicError Write down the output together with the error type when a logic error is found. You may describe why in the 'Reason' column or circle it in the code segment.
Each question carries marks.
tableCode Segment,OutputError Type,ReasonBB
for :
:
B
Student Name:
Student ID:
Class Code:
begintabularcccc
hline B &
tableNote: You may use the symbol to indicate a space in the output. & &
hline B &
i ; j
while True:
j j
i
if i j:
break
printfThe sum of i and j is ij
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
