Doubts regarding key Q1QP2

473 views
Skip to first unread message

Nishankara

unread,
Dec 3, 2020, 9:06:58 AM12/3/20
to Discussion forum for Computational Thinking
1. Computational Thinking :
     Q.no 53 :  In the key , the correct answer  is mentioned as 1,4 . But if there was an error                in line 1 (as it was mentioned to store the value in var A) then there's                        
            error in line 5 as well . Could you please look into answer  1,2,4 . 

image.png

Charles George

unread,
Dec 3, 2020, 12:36:00 PM12/3/20
to Discussion forum for Computational Thinking, Nishankara
Yes, Since the value to be stored was A line 5 is technically incorrect.

3382 Nikhil S

unread,
Dec 4, 2020, 3:05:59 AM12/4/20
to Discussion forum for Computational Thinking
Yes, your explanation is right. 

Hritwik NE

unread,
Dec 4, 2020, 6:26:02 AM12/4/20
to Discussion forum for Computational Thinking, Nishankara
Yeah I have the same concern.

On Thursday, December 3, 2020 at 7:36:58 PM UTC+5:30 Nishankara wrote:

Mayank Nigam

unread,
Dec 4, 2020, 9:15:51 AM12/4/20
to Discussion forum for Computational Thinking, Hritwik NE, Nishankara
Since it is pseudocode, the variable can have any name.... so the error in line 1 is due to the initial value not being zero... not due to A is replaced by C.
It's common sense, seeing the type of subject it is, issue that you have been raising might not make much of a sense.

Everything RA

unread,
Dec 4, 2020, 11:04:51 PM12/4/20
to nishankara...@gmail.com, charl...@gmail.com, nikhils...@gmail.com, hritwi...@gmail.com, Discussion forum for Computational Thinking
This question (53 of Q1QP2) is similar to Q. No. 61 of Q1QP3. Request everyone to put your query of Q53 in that discussion as well, so that the more no. of replies the more chance of visibility & reach. Link to that discussion is at the end. 

Yes, you have rightly pointed out when it was mentioned to store the variable in "A" then technically Line 1 is wrong for two reasons 1st) variable named C is declared and not A (then as per the question there won't be any variable named A storing the required data, and any other variable storing that data what A should store wouldn't make sense because one won't be able to retrieve the data since it is not named A) 
2nd) C is not Initialized to 0

Then

Line 5 is also wrong because the data should be stored in variable named A as stated! 


--
You received this message because you are subscribed to the Google Groups "Discussion forum for Computational Thinking" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs1001-discus...@nptel.iitm.ac.in.
To view this discussion on the web visit https://groups.google.com/a/nptel.iitm.ac.in/d/msgid/cs1001-discuss/b901fd74-3f72-4239-9008-ebf6920bd65an%40nptel.iitm.ac.in.

Everything RA

unread,
Dec 4, 2020, 11:07:53 PM12/4/20
to nishankara...@gmail.com, charl...@gmail.com, nikhils...@gmail.com, hritwi...@gmail.com, Discussion forum for Computational Thinking
This question (53 of Q1QP2) is similar to Q. No. 61 of Q1QP3. 
Request everyone to put your query of Q53 in that discussion as well, so that the more no. of replies the more chance of visibility & reach. Link to that discussion is at the end. 

Yes, you have rightly pointed out when it was mentioned to store the variable in "A" then technically Line 1 is wrong for two reasons 1st) variable named C is declared and not A (then as per the question there won't be any variable named A storing the required data, and any other variable storing that data what A should store wouldn't make sense because one won't be able to retrieve the data since it is not named A) 
2nd) C is not Initialized to 0

Then

Line 5 is also wrong because the data should be stored in variable named A as stated! 


On Fri, 4 Dec, 2020, 7:45 pm Mayank Nigam, <offici...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages