Groups
Groups
Sign in
Groups
Groups
Discussion forum for Computational Thinking
Conversations
Labels
About
Send feedback
Help
Graded assignment question 1 ...null / error answer
75 views
Answered
Graded
Week3
Skip to first unread message
Om Podey
unread,
Nov 2, 2020, 1:53:38 PM
11/2/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
11/2/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
11/3/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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