Computational Thinking Week 1 Graded Assignment Q18

135 views
Skip to first unread message

Jagadesh K

unread,
Oct 20, 2020, 12:58:47 AM10/20/20
to Discussion forum for Computational Thinking
If the existing data type is already as in list, then we can add the new one to the list(no where it is mentioned as the existing scores are in list type) but the existing marks in integer. So why can't we consider this as an integer.  

CT Wk1 Qn18.jpg

bhan...@gmail.com

unread,
Oct 20, 2020, 1:14:49 AM10/20/20
to Discussion forum for Computational Thinking
If the marks of each subject are considered individually, then the datatype could be an integer but when marks for a given set of subjects are considered, it looks like a table, which we can see from the score cards. Hence the datatype is a list wherein each row is a record. 

**This is my interpretation. Not 100% sure it is the right explanation.

Jagadesh K

unread,
Oct 20, 2020, 1:37:18 AM10/20/20
to Discussion forum for Computational Thinking, bhan...@gmail.com
Thanks for your reply. 

If this needs to be considered as list atleast we should have a field like Marks → Marks{Mathematics, Physics, Chemistry}.

But we don't have a field here like marks here and all the other things like Mathematics, Physics, Chemistry are given as a separate integers. So the new addition to these items will be integer data type only.

Grade Card-01.jpg

Reshma Benson

unread,
Oct 20, 2020, 2:00:24 AM10/20/20
to Discussion forum for Computational Thinking, kjaga...@gmail.com, bhan...@gmail.com

I too have doubt on this question

Abhishek Kumar

unread,
Oct 20, 2020, 2:31:03 AM10/20/20
to Discussion forum for Computational Thinking, Reshma Benson, kjaga...@gmail.com, bhan...@gmail.com
Actually both interpretation are correct. If we interpret like we have to add scores of three marks in a one go....then we have use list(they would have clarified it in the question)
On the other hand if we consider to store score in different steps then it will be integer. A list can store string ,integer etc.

Reply all
Reply to author
Forward
0 new messages