Question: Student Name: [ ] Student ID: [ ] Class Code: [ ] CCIT 4 0 2 0 Introduction to Computer Programming - Assignment 2 SECTION

Student Name: [
]
Student ID: [
] Class Code: [
]
CCIT4020 Introduction to Computer Programming - Assignment 2
SECTION B: Code Tracing [10 marks]
State the output if there is no syntax/runtime error in the code segment then put 'NA' in the 'Reason' column.
Otherwise, specify the error type from one of the following: SyntaxError/RuntimeError/LogicError. 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 2 marks.
\table[[,Code Segment,Output/Error Type,Reason],[B-1,,,],[B-2,x=[1,2,4,5,7]
for iinx:
ifi%20:
print(i),,],[B-3,,,]]
1
Student Name: [
]
Student ID: [
] Class Code: [
I
\table[[B-4,\table[[rW=12.24
rH=10.05
fxY=10
fWN=6
Student Name: [ ] Student ID: [ ] Class Code: [ ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!