Skip to content

CT Week 8 Graded Assignments IIT Madras

 

Computational Thinking week 8 graded assignment Complete  Solutions Are Discussed In This Blog. We Hope This Might Help You All In Matching Answers . Or For Some Others Reasons If Not Able To Complete Graded Assignments 

  1. The following pseudocode is executed using the “Scores” dataset. What will the values of A and B represent at the end of the execution?


 
 
 

 

 

A = Cities where students score the highest marks in Mathematics
B = The highest marks in Mathematics

A = Number of cities where students score the highest marks in Mathematics
B = The highest marks in Mathematics

A = Number of cities where students score the lowest marks in Mathematics
B = The lowest marks in Mathematics

A = Always more than one
B = The highest marks in Mathematics

 
4 points
 

2.The following pseudocode is executed using the “Scores” dataset. What will the value of B represent at the end of execution?

 
 
 

 

 

Number of repeated marks in Physics

Minimum marks in Physics

Maximum marks in Physics

Most frequent marks in Physics

 
 

3.The following pseudocode is executed using the “Scores” dataset. What will be the value of B at the end of the execution?

 
 
 

 

 
6 points
 
5 points
 

4.The following pseudocode is executed using the “Shopping Bills” dataset. At the end of the execution, the variable D captures the following information: for each customer ZD[Z] [“Shop”] stores the shops visited by Z, and D[Z] [“Category”] stores the categories of the items purchased by Z. But the pseudocode may have mistakes. Identify all such mistakes (if any). It is a Multiple Select Question (MSQ).

 
 
 

 

 

Error in Line 1

Error in Line 10

Error in Line 13

Error in Line 14

Error in Line 16

No error

The following pseudocode is executed using the “station wise” cards of the “Train” dataset. At the end of the execution, STN captures the following information: for a station X, and a day of a week ASTN[X] [A] stores the number of trains running through X on the day A. [Note: Assume that for each station, the train list is given in a single card.]

 
 
 

 

Procedure getInfo(STN, X) *** * Fill the code * *** return(D) End getInfo

 
4 points

Choose the correct code fragment to complete the pseudocode.

 

 
 
 

 

 

 
 
 

 

 

 
 
 

 

 

 
 
 

 
 
3 points
 

The following pseudocode is executed using the “station wise” cards of the “Train” dataset. Consider the dictionary STN computed in the previous question. Choose the correct statement(s) from the options based on the pseudocode. It is a Multiple Select Question (MSQ).

 
 
 

 

 

Keys of the dictionary Z is integer

There can be a value C such that Z[C] is zero

All values of the dictionary Z are non-zero

The number of keys in Z is 8

 
4 points

Consider the dictionary STN computed in the previous question. Choose the correct pseudocode to compute the number of stations which have trains passing through all days of a week.

 

 
 
 

 

 

 
 
 

 

 

 
 
 

 

 

 
 
 

 

The following pseudocode is executed using the “Words” table.

 
 
 

 

 
3 points

What will D represent at the end of the execution?

Frequency count of each alphabet in the table

Frequency count of each word in the table

Most frequent alphabet in the table

Frequency count of each alphabet in each part of speech

 
4 points
 

Consider the dictionary D and the procedure updateDictionary() in the previous question. Let POS be a list that contains all part of speeches. Assume that given a dictionary D, there exists a procedure max such that max(D) returns a list of keys which are mapped to the maximum value. Choose the correct statement(s) from the options based on the following pseudocode. It is a Multiple Select Question (MSQ).

 
 
 
 

length(keys(C)) is same as the number of different part of speeches in the input dataset

C captures the list of most frequent alphabet occurred overall in the dataset as well as for each part of speech

C captures the most frequent alphabet occurred overall in the dataset as well as for each part of speech

length(keys(C)) is one more than the number of different part of speeches in the dataset

 
4 points
 

The following pseudocode is executed using the “Shopping bills” dataset. What will D represent at the end of the execution?

 
 
 

 

 

For an item C, and a shop SD[C] [S] [“Flag”] is set to True if and only if the item is sold for a constant price

For an item C, and a shop SD[C] [S] [“Flag”] is set to True if and only if the item is billed in more than one bill

For an item C, and a shop SD[C] [S] [“Flag”] is set to True if and only if the item is sold for variable price

For an item C, and a shop SD[C] [S] [“Flag”] is set to True if and only if the item is billed exactly one bill

WhatsApp
Telegram
Print
Facebook

3 thoughts on “CT Week 8 Graded Assignments IIT Madras”

  1. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

Leave a Reply

Your email address will not be published. Required fields are marked *