Activity 01
Pair Programming: Choice-Based Quiz
Pairs code a quiz program using if-else and nested conditionals for scoring and feedback. Begin with user answers via input, add logical operators for bonus questions. Pairs test each other's code and swap improvements.
Analyze how Boolean logic simplifies complex decision-making in code.
Facilitation TipBefore Pair Programming: Choice-Based Quiz, have students sketch flowchart paths on paper first to slow thinking and reduce impulsive coding errors.
What to look forProvide students with a short pseudocode snippet containing nested if-else statements and logical operators. Ask them to trace the execution for two different sets of input values and write down the final output for each.