Week-3 Computational Thinking For DS

 Questions (1&2)


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

2 points

1) What will P represent at the end of the execution?(MCQ)

2 points

2) What will Q represent at the end of execution?(MCQ)

2 points

3) The following pseudocode is executed using the “Scores” dataset.(MCQ)



At the end of the execution, E will be True if

2 points

4) The following pseudocode is executed using the “Shopping Bills” dataset. Procedure checkShoppingBills accepts a card Y and returns True if the minimum total bill amount of shop is greater than the average total bill amount of shop from where the card Y is generated otherwise returns False. Choose the correct code fragments to complete the procedure. It is a Multiple Select Question (MSQ). Note : MAX_VALUE represent the maximum bill amount of shop Y.

2 points

5) The following pseudocode is executed using the "Scores" dataset. What will A represent at the end of the execution?(MCQ)


2 points

6) The following pseudocode is executed using the “Scores” dataset. At the end of the execution, variable Count captures the number of students whose total marks are more than the average (of total marks) of entire dataset but have scored below the subject average in any two subjects. Assume that the variable AvgT holds the value of the average total marks. Similarly, the variables AvgP, AvgC and AvgM hold the value of the average marks of Physics, Chemistry and Mathematics respectively. Choose the correct code fragment to complete the pseudocode.It is a Multiple Select Question(MSQ).