Optimizing Logic for Electronic Questionnaires - Case Study 2
Babatunde Akano
Data Management Specialist @ Oxford Policy Management | Mechanical Engineering
Welcome to another week of testing our knowledge of programming logic.
Context
In today's case today we look at two sequential variables q1 and q2. In an education survey, students were asked about their best and second-best subjects respectively (see diagram above). Both q1 and q2 are multiple choice questions (i.e. you select more than one response). However if you select "None" (97), you may not select any other subject.
Question
Which of the following options adequately describes the best expression of the relevance logic for q2?
Option 1: not(selected(${q1},'97') and count-selected(${q1}) < 7
Option 2: not(selected(${q1}, '97') and count-selected(${q1}) <= 7
Option 3: not(selected(${q1}, '97') and count-selected(${q1}) >1 and count-selected(${q1}) <= 7
Option 4: ${q1} != '97' and count-selected(${q1}) < 7
Vote
Kindly vote for the BEST answer in the link below:
https://www.dhirubhai.net/feed/update/urn:li:groupPost:12827261-7060325285665075200