Signed up recently but had issues with the confirmation email?
Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.
Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.
Determine the logical conditions that affect the outcome of a decision.
2.1.4 Thinking Logically
Practise exam questionsThinking Logically — Note 2 of 3
Candidates need to understand what these decisions are and the logical conditions that determine their outcome.
Each decision depends on a logical condition that evaluates to true or false. You need to write these conditions precisely, using comparison and Boolean operators.
==, !=, <, <=, >, >=) and Boolean operators (AND, OR, NOT).< and <= give different results at the boundary.items[i] > items[i+1] gives ascending order; changing > to < gives descending order. If asked to change the order, give the line number and the rewritten comparison.if age >= 13 AND age <= 19 then
category = "Teen"
elseif age < 13 then
category = "Child"
else
category = "Adult"
endifif x > 5 AND < 10. The variable must be repeated: if x > 5 AND x < 10.if mark < 0 OR mark > 100 checks for INVALID input; if mark >= 0 AND mark <= 100 checks for VALID input. 'Either' needs OR: half price for under-16s or over-65s is age < 16 OR age > 65. To skip several values, join != tests with AND: if i != 4 OR i != 7 is always true, because every i differs from at least one of them.Past exam questions
Ready to test yourself?
Practise 2.1.4 questions