Graded assignment question 1 ...null / error answer

75 views
Skip to first unread message

Om Podey

unread,
Nov 2, 2020, 1:53:38 PM11/2/20
to cs1001-...@nptel.iitm.ac.in
According to the given program if we go on computing step by step we are given the values of Z as either -1 or 1 .
When we find the answer according to program the value will be either null or error. 
Look into it 
Screenshot_2020-11-03-00-11-19-052_com.android.chrome.png

Tejasvi Hegde

unread,
Nov 2, 2020, 2:40:26 PM11/2/20
to Discussion forum for Computational Thinking, omp...@gmail.com
Z is assigned to 0 and its not being re-assigned to any value in conditions below.
So Z retains 0, hence the result is 0

Computational Thinking Support 2

unread,
Nov 3, 2020, 2:33:41 AM11/3/20
to Discussion forum for Computational Thinking, Tejasvi Hegde, omp...@gmail.com
Hi,
The above explanation is correct. We will release the solution pdf in sometime.

Regards,
Deepak
IITM Online Degree Team
Reply all
Reply to author
Forward
0 new messages