Week-1 Graded Assignment - Q17, Q18 & Q21

32 views
Skip to first unread message

Rajesh Saha

unread,
Oct 21, 2020, 4:39:09 AM10/21/20
to Discussion forum for Computational Thinking
1. In the question no. 17, it's not understandable why Line number 4 is wrong. Line number 4, looks like quantity, price and cost are okay. In the category, if we read "Fruits/Food" as "Fruits OR Food", category is also correct; because, milk is a kind of Food. Could you please update the explanation in the pdf ?

2.  In the Question no. 18, the question is ambiguous. If you mean that English, History & Geography scores all together would be captured in a single variable, the data-type would be "list". But, if you meant that all the subject scores would be treated as individual variables, then correct data-type  should be "Integer". Moreover, "list" data-type was discussed in the week-1 lectures.

3. What did you mean by Serial number ? In the table attached, there is no column named as "Serial number". So, Serial number can be assumed in multiple ways. One way - just in order or sequence, in that case, it would be "Integer". But someone may also think that you meant the first column. In that case, "Line 3.", "Line 4." etc would be treated as "string". Someone may also think that "Serial number" is the unique product identification number. In that case, the format of serial number would be determined by the product manufacturer. In that case, serial number could be completely numeric or alpha-numeric, or even may contain special character like "/". So, in my opinion, the answer should be "string". Please explain.
Reply all
Reply to author
Forward
0 new messages