Which two Boolean expressions results in a value of True? (Choose two.)

IT Exam Items RepositoryCategory: CCNP ENCOR v9Which two Boolean expressions results in a value of True? (Choose two.)

Which two Boolean expressions results in a value of True? (Choose two.)

  • True and False
  • True and True
  • True or False
  • not True
  • False not

Explanation: In Python, Booleans are binary variables representing either True or False. The sources define the behavior of logical operators as follows:

  • and: For an expression using "and" to evaluate to True, all values in that expression must be True. Therefore, True and True results in True, while True and False results in False.
  • or: For an expression using "or" to evaluate to True, only one value needs to be True. Consequently, True or False results in True.
  • not: This operator takes the inverse of the value. Thus, not True results in False.

The option "False not" is not a standard logical expression format described in the sources, as the not operator precedes the value it modifies.

Related exam: Modules 21 – 22: Checkpoint Exam: Programmability Answers (CCNP ENCOR v9)