Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
2K views
Computational Thinking Iit
Worksheets plus answers of iit madras computational thinking
Uploaded by
nesramesses
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Computational thinking iit For Later
Download
Save
Save Computational thinking iit For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
2K views
Computational Thinking Iit
Worksheets plus answers of iit madras computational thinking
Uploaded by
nesramesses
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Computational thinking iit For Later
Carousel Previous
Carousel Next
Save
Save Computational thinking iit For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 11
Search
Fullscreen
cE SRE Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 x 1) The following procedure counts 3 points the number of students from Mumbai whose total marks are more than the average total marks from the “Scores” dataset and stores it in variable A. Let avgT be the average total marks. The programmer may have made mistakes in one or more steps. Identify all such steps (if any). It is a Multiple Select Question (MSQ). Step 1: Arrange all cards in a single pile called Pile 1 Initialize variable A to 0 If Pile 1 is empty then stop the iteration Read the top card in Pile 1 If X.CityTown == “Mumbai” and X. Total > av Move the current card to another pile called Pile Step 2 O (Step 2 (Step 2 (0 Step 2 fe Step 2 No mistake e@cE SRE Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 2) The following procedure takes 3 points data from the “Scores” dataset and counts the number of female students whose Physics marks are more than their Chemistry marks but less than their Mathematics marks and stores it in variable A. The programmer may have made mistakes in one or more steps. Identify all such steps (if any). Itis a Multiple Select Question (MSQ). Step 1 all cards in a single pile called Pile 1 lize variable A to 1 ile 1 is empty then stop the iteration Arran Ini I F p 5: Mf Gender is ‘F” and Mathematics marks < Physic ad the top card in Pile 1 Chemistry marks < Physics marks then add 1 to Step 6: Move the current card to another pile called Pile + 3 Step 2 Step 3 8 0 Step 5 Step 6 OO No mistake Lx |=] e@co bey SPOR Fae eon liaree(-te(c-\-N ua -Cen CO =] Graded Assignment- 2 x 3) The given procedure finds the 4 points number of sentences with maximum number of words from the “Words” dataset. Fill in the blanks from the given choices and complete the procedure. iables A, B and cot Step 3: If Pile 1 is empty then stop the iteration Step Step J: Read the top card in Pile 1 Step 5: Add 1 to variable A Step 6: If Word ends with a full stop and A > B then st Step 7 Step 8: If Word ends with a full stop then reinitialize At Step 9: Move the current card to another pile called Pile If Word ends with a full stop and A< © Bthen store BINA, assign 1 to count If Word ends with a full stop and A< oO Bthen assign 1 to count . If Word ends with a full stop and A == B then add 1 to count If Word ends with a full st id E o ord ends with a full stop and, == B then assign 1 to count e@coma) cE SRE Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 x 4) What will (A-B) represent after 4 points execution of the following procedure using the “Shopping Bills” dataset? Step 1: Arrange all cards in a single pile called Pile 1 Step 2: Initialize variables A and B to 0 Step 3: If Pile 1 is empty then stop the iteration Step 4: Read the top card in Pile 1 Step 5: Mf the bill contains an item “Milk” then add 1 to Step 6: If Name == “Srivatsan” and the bill contains an| then add 1 to variable B Step 7: Move the current card to another pile called Pile Number of Srivatsan’s bills which do not contain the item “Milk” Number of bills other than © Srivatsan’s which do not contain the item “Milk” Number of bills other than @ Srivatsan’s which contain the item “Milk” Number of bills which contain th~ item “Milk” e@coma) cE SRE Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 5) What will the value of B be after execution of the following procedure using the “Scores” dataset? Step 1: Arrange all cards in a single pile called Pile 1 Step 2: Initialize variables A and B to 0 Step 3: If Pile 1 is empty then stop the iteration Step 4: Read the top card in Pile 1 Step 5: If Physics marks is not less than Mathematics me (Physics marks — Mathematics marks) in A Step 6: If A>B then store Ain B Step 7: Move the current card to another pile called Pile 28 4 points 6) The given procedure is executed 4 points on the “Scores” dataset. What will min represent after execution of the procedure? | Step 1 Arrange all cards in a single | Step 2: Initialize variables A, B, C | Step 3: If Pile 1 is empty th >1 | Step 4: Read the top card it l | Step 5 If Mathematics Mathommemes tcoma) cE SRE Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 6) The given procedure is executed 4 points on the “Scores” dataset. What will min represent after execution of the procedure? | Step 1 Arrange all cards in a single Step 2: Initialize variables A, B, C Step 3 If Pile 1 is empty then stop 1 Step 4 Read the top card in Pile 1 Step 5: If Mathematics marks < At Step 6: If Physics marks < B then Step 7: If Chemistry marks < C the Step 8: Move the current card to anc Step 9 If A < B then store A in m Step 10: If C < min then store C in Po © Lowest Mathematics marks ©. Lowest Physics marks ©. Lowest Chemistry marks © Lowest marks across all subject ae OB @® None of thesecE ii Omen on lates eM ue-CenTa) Graded Assignment- 2 if (X. Chemistry > 75) { C=C+l1 } if (C <2) { count = count + 1 } Move X to Table 2 Number of students who scored more than 75 marks in at least two subjects ° Number of students who scored more than 75 marks in two subjects Number of students who scored @ more than 75 marks in at most two subjects Number of students who scored © more than 75 marks in all three subjects ©. None of these ge18:46 ii Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 8) What will be the value of C? 30 2 points 9) What will the value of (C-A) 4 points represent? Number of students whose Mathematics marks are at least as much as Physics marks Number of students whose {) Mathematics marks are at most as much as Physics marks Number of students whose Physics (J marks are at least as much as Mathematics marks Number of students whose Physics marks are at most as much as Mathematics marks (None of these ap18:46 ii Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 10) What will the value of (C-B) 3 points represent? Number of students whose @ Mathematics marks are equal to Physics marks Number of students whose o Mathematics marks are more than Physics marks Number of students whose ° Mathematics marks are less than Physics marks Number of students whose Physics © marks are less than or equal to Mathematics marks 11) The following pseudocode is 4 points executed using the “Scores” dataset aa& 18:46 SRE @ k.onlinedegree.iitm.acin © © Graded Assignment- 2 When will C be True? If there are more male students from © Bangalore than female students from Chennai If there are more female students © from Chennai than female students from Bangalore If there are more female students e from Chennai than male students from Bangalore If there are more students from © Chennai than students from Bangalore 12) A principal wants to send 4m oa students of her college to participate in ar ate snorts festival She18:46 SRE Fae eon liaree(-te(c-\-N ua -Cen CO Graded Assignment- 2 more steps. Identify all such steps (if any). It is a Multiple Select Question (MSQ). Step 1: Arrange all cards in a single pile called Pile 1 Initialize va le X to 0 If Pile 1 is empty then stop the iteration Read the top card in Pile 1 If the student plays greater than or equal to 3 ga If the student does not play “Cricket” then If the student does not play “Football” then go t > to Increment X Move the current card to another pile called Pile Step 5 (0 Step 6 Step 7 (J Step 8 (No mistake STASI) e@
You might also like
Week 3 CT
PDF
100% (1)
Week 3 CT
18 pages
Python Week 2 All GrPA Solutions
PDF
100% (3)
Python Week 2 All GrPA Solutions
5 pages
Week 1 - Intro To Statistics - Data
PDF
100% (4)
Week 1 - Intro To Statistics - Data
5 pages
Week 7 - Probability
PDF
100% (8)
Week 7 - Probability
9 pages
Week 3 Practice Assignment Solution
PDF
No ratings yet
Week 3 Practice Assignment Solution
34 pages
IIT M ES QUALIFIER EXAM QPQ1 06 Aug 2023
PDF
100% (1)
IIT M ES QUALIFIER EXAM QPQ1 06 Aug 2023
68 pages
Week 5 Graded Solution
PDF
50% (4)
Week 5 Graded Solution
7 pages
Week 5 Graded Jan 2022 EMQ PATTERN
PDF
67% (3)
Week 5 Graded Jan 2022 EMQ PATTERN
2 pages
Week 8 - Conditional Probability
PDF
100% (7)
Week 8 - Conditional Probability
9 pages
Stats 1 Week 6 EMQ Sols
PDF
67% (3)
Stats 1 Week 6 EMQ Sols
4 pages
Mock Test 1 Solution (1) Statistics
PDF
100% (2)
Mock Test 1 Solution (1) Statistics
23 pages
Mock - Test - 2 - Solution Statistics
PDF
100% (5)
Mock - Test - 2 - Solution Statistics
20 pages
Solutions To GA Statistics Week-3
PDF
No ratings yet
Solutions To GA Statistics Week-3
12 pages
IITM Computational Thinking Graded Assignment Week 1
PDF
0% (1)
IITM Computational Thinking Graded Assignment Week 1
5 pages
If (X.Total Mid1 and X.Total Mid2) (Countb Countb + 1)
PDF
0% (1)
If (X.Total Mid1 and X.Total Mid2) (Countb Countb + 1)
9 pages
Week 3 - Pseudocode
PDF
No ratings yet
Week 3 - Pseudocode
20 pages
Week 2 - Iterations - Filtering
PDF
No ratings yet
Week 2 - Iterations - Filtering
22 pages
W1PA Solution Sep22
PDF
No ratings yet
W1PA Solution Sep22
9 pages
IIT Madras Week 2 Graded Assignments
PDF
No ratings yet
IIT Madras Week 2 Graded Assignments
19 pages
Week 2 - Straight Lines
PDF
100% (1)
Week 2 - Straight Lines
14 pages
Week 5 Computational Thinking Graded Assignments
PDF
50% (2)
Week 5 Computational Thinking Graded Assignments
8 pages
Statistics I Week 4 Graded Assignment Solution
PDF
0% (1)
Statistics I Week 4 Graded Assignment Solution
3 pages
Mock Set - II: Computational Thinking
PDF
100% (1)
Mock Set - II: Computational Thinking
20 pages
1 Multiple Select Questions (MSQ)
PDF
No ratings yet
1 Multiple Select Questions (MSQ)
22 pages
Week 7 Graded Assignment PDF
PDF
0% (1)
Week 7 Graded Assignment PDF
19 pages
Week 2 - Describing Categorical Data
PDF
81% (16)
Week 2 - Describing Categorical Data
7 pages
Week 6 - Permutations and Combinations
PDF
100% (2)
Week 6 - Permutations and Combinations
6 pages
Stats Graded Assignment Week 3
PDF
0% (1)
Stats Graded Assignment Week 3
9 pages
Mathematics Graded Assignment Week 3
PDF
No ratings yet
Mathematics Graded Assignment Week 3
8 pages
Iit M Foundation An3 Exam Qdf3 03 Dec 2023
PDF
No ratings yet
Iit M Foundation An3 Exam Qdf3 03 Dec 2023
112 pages
Qualifier CT Set - II Solution
PDF
100% (2)
Qualifier CT Set - II Solution
26 pages
Week 2 Practice Assignment Solution
PDF
No ratings yet
Week 2 Practice Assignment Solution
30 pages
Week 4 - Association Between 2 Variables
PDF
100% (1)
Week 4 - Association Between 2 Variables
4 pages
Set A Answer Key
PDF
No ratings yet
Set A Answer Key
54 pages
Week 4 G Sept 2021
PDF
No ratings yet
Week 4 G Sept 2021
4 pages
Week 1 - Sets, Relations & Functions
PDF
No ratings yet
Week 1 - Sets, Relations & Functions
11 pages
Week 3 - Describing Numerical Data
PDF
No ratings yet
Week 3 - Describing Numerical Data
7 pages
Week 2 Ga Maths 1 Solutions
PDF
No ratings yet
Week 2 Ga Maths 1 Solutions
17 pages
Mock 4 (Week5-6)
PDF
No ratings yet
Mock 4 (Week5-6)
12 pages
Quiz 2 Mock 2023
PDF
No ratings yet
Quiz 2 Mock 2023
12 pages
Week 5 EMQ Solution
PDF
No ratings yet
Week 5 EMQ Solution
4 pages
Week 11 Graded Solution
PDF
No ratings yet
Week 11 Graded Solution
10 pages
Week1 FAQ-2
PDF
0% (1)
Week1 FAQ-2
6 pages
CS Practical File
PDF
No ratings yet
CS Practical File
20 pages
Week 1&2 Mock Solution May24
PDF
No ratings yet
Week 1&2 Mock Solution May24
8 pages
IITM Term 1 Stats Final Exam QP1
PDF
No ratings yet
IITM Term 1 Stats Final Exam QP1
35 pages
Math Week 4 Graded Assignment by @himanshu Saini
PDF
No ratings yet
Math Week 4 Graded Assignment by @himanshu Saini
11 pages
Statistics Week 1 Graded Assignments
PDF
No ratings yet
Statistics Week 1 Graded Assignments
4 pages
IIT M QUALIFIER EXAM QPQ2 29 Oct 2023
PDF
No ratings yet
IIT M QUALIFIER EXAM QPQ2 29 Oct 2023
70 pages
Class 12th Maths Half Yearly 2024-25
PDF
No ratings yet
Class 12th Maths Half Yearly 2024-25
7 pages
CS Xii PB MS - Set3
PDF
No ratings yet
CS Xii PB MS - Set3
12 pages
1 Multiple Choice Questions (MCQ)
PDF
100% (1)
1 Multiple Choice Questions (MCQ)
9 pages
G12-Cs-Practical QP, Ak
PDF
No ratings yet
G12-Cs-Practical QP, Ak
16 pages
12 Mathematics sp04
PDF
No ratings yet
12 Mathematics sp04
27 pages
MLF Week6 Test Questions V3 Solution
PDF
100% (1)
MLF Week6 Test Questions V3 Solution
7 pages
maths-class-xii-sample-paper-test-04-for-board-exam-2025-answers
PDF
No ratings yet
maths-class-xii-sample-paper-test-04-for-board-exam-2025-answers
13 pages
Week 7 Graded Assignment Solution
PDF
No ratings yet
Week 7 Graded Assignment Solution
12 pages
answer key for hf
PDF
No ratings yet
answer key for hf
6 pages
Relations and Functions
PDF
100% (1)
Relations and Functions
17 pages
Week 2 Computational Thing
PDF
No ratings yet
Week 2 Computational Thing
7 pages