Question 2 - Procedures (Functions) — Modular Design Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Computational Thinking
Go to chapter
Week 3
Go to topic
Procedures (Functions) — Modular Design - Procedures (Functions) —...
Question 2
00:00
Est. 3 min
Marks:
+6.00
0.00
Based on the Scores dataset, the Procedure highTotal(S) returns True if student name 'S' has a TOTAL score greater than 180. Choose the correct pseudocode for Procedure highTotal(S). (Consider all students have distinct names)
Single correct
Medium Difficulty
15 March 2026
A
``` Procedure highTotal(S) total = 0 while(Table 1 has more rows){ Read row X from Table 1 Move X to Table 2 if(X.Name == S){ total = X.Mathematics + X.Physics } } if(total > 180){ return True } return False End highTotal ```
B
``` Procedure highTotal(S) while(Table 1 has more rows){ Read row X from Table 1 Move X to Table 2 if(X.Name == S and X.Total > 180){ return True } } return False End highTotal ```
C
``` Procedure highTotal(S) count = 0 while(Table 1 has more rows){ Read row X from Table 1 Move X to Table 2 if(X.Total > 100){ count = count + 1 } } return count > 0 End highTotal ```
D
``` Procedure highTotal(S) total = 0 while(Table 1 has more rows){ Read row X from Table 1 Move X to Table 2 total = total + X.Total } return total > 180 End highTotal ```