0
0
Intro to Computingfundamentals~20 mins

Logical reasoning in daily decisions in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Logical Reasoning Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Logical Conditions in Daily Choices

Imagine you decide whether to carry an umbrella based on the weather forecast. The rule is: "If it is raining or if the forecast predicts rain, then carry an umbrella." Which logical condition best represents this decision?

ACarry umbrella if raining OR forecast predicts rain
BCarry umbrella if raining AND forecast predicts rain
CCarry umbrella only if raining but not if forecast predicts rain
DCarry umbrella only if forecast predicts rain AND it is not raining
Attempts:
2 left
💡 Hint

Think about when you want to be prepared: either actual rain or a prediction of rain.

trace
intermediate
2:00remaining
Tracing a Decision Flowchart for Morning Routine

Consider this flowchart for deciding whether to take a jacket:

  1. Is it cold outside? (Yes/No)
  2. If Yes, take a jacket.
  3. If No, check if it might rain.
  4. If it might rain, take a jacket.
  5. If not, do not take a jacket.

If it is not cold but rain is predicted, what is the final decision?

ATake a jacket
BTake a raincoat instead of a jacket
CDecision cannot be made
DDo not take a jacket
Attempts:
2 left
💡 Hint

Follow the flowchart steps carefully for the given conditions.

Comparison
advanced
2:00remaining
Comparing Logical Operators in Decision Making

You want to decide if you should go for a walk. The conditions are: "Go for a walk if it is sunny AND you have free time." Which of the following statements correctly compares the AND and OR operators in this context?

AAND requires only one condition true; OR requires both conditions true
BAND requires both conditions true; OR requires only one condition true
CAND and OR both require both conditions true
DAND and OR both require only one condition true
Attempts:
2 left
💡 Hint

Recall the difference between AND and OR in logic.

identification
advanced
2:00remaining
Identifying Logical Errors in a Daily Decision Scenario

John decides: "If I am hungry or if it is lunchtime, I will eat." He writes the condition as: "If hungry AND lunchtime, then eat." What is the logical error in John's condition?

AHe used OR instead of AND, making the condition too strict
BThere is no error; the condition is correct
CHe should use NOT operator instead of AND
DHe used AND instead of OR, making the condition too strict
Attempts:
2 left
💡 Hint

Think about when John wants to eat: if hungry or if it is lunchtime.

🚀 Application
expert
3:00remaining
Applying Logical Reasoning to Plan a Weekend Activity

You plan your weekend activity based on these rules:

  • If it is sunny and you have no work, go hiking.
  • If it is rainy or you have work, stay home and read.
  • If it is sunny but you have work, go for a short walk.

Given it is sunny and you have work, what activity should you choose?

AGo hiking
BStay home and read
CGo for a short walk
DNo activity planned
Attempts:
2 left
💡 Hint

Check each rule carefully and see which applies to the given conditions.