Questions: Logical Operators and Truth Functions

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A doctor says: 'The patient has disease A or disease B.' Tests confirm the patient has disease A. Based on logical OR alone, what can the doctor conclude about disease B?

ADisease B is ruled out — once one disjunct is confirmed, the other is excluded
BDisease B cannot be ruled out — logical OR allows both conditions to be true simultaneously
CDisease B is ruled out — 'or' in a medical context always means exactly one condition
DNothing can be concluded about disease B without more clinical information
Question 2 Multiple Choice

The statement 'Not all politicians are corrupt' is equivalent to which of the following?

ANo politicians are corrupt
BAll politicians are not corrupt
CAt least one politician is not corrupt
DMost politicians are not corrupt
Question 3 True / False

The statement 'P AND Q' is false whenever P is false, regardless of Q's truth value.

TTrue
FFalse
Question 4 True / False

Logical OR works the same way as everyday English 'or' — exactly one of the two options is expected to be true for the statement to be true.

TTrue
FFalse
Question 5 Short Answer

A programmer writes the condition: 'The file is valid if it contains a number OR a letter.' A user submits a file containing both a number and a letter. Using the logical definition of OR, is the file valid? Explain why.

Think about your answer, then reveal below.