WEEK 2 COMPUTL

301 views
Skip to first unread message

Ayush Kumar

unread,
Oct 26, 2020, 4:16:26 AM10/26/20
to Discussion forum for Computational Thinking
Consider the following flowchart:

If there are 10 cards that satisfy the condition for the “Correct card”, what will be the value of the variable Count at the end of execution of the above flowchart?  

Computational Thinking Support 2

unread,
Oct 26, 2020, 6:10:56 AM10/26/20
to Discussion forum for Computational Thinking, ayushku...@gmail.com
Even though there are 10 cards that satisfy the condition for the "Correct Card", the moment we come across the first such card, the variable Found will be set to True. Once the variable Found assumes the value of True, the condition in the first decision block will evaluate to False, and the execution will end at that stage.

Regards,
Karthik

Reply all
Reply to author
Forward
0 new messages