exam questions

Exam PCEP-30-02 All Questions

View all questions & answers for the PCEP-30-02 exam

Exam PCEP-30-02 topic 2 question 80 discussion

Actual exam question from Python Institute's PCEP-30-02
Question #: 2
Topic #: 2
[All PCEP-30-02 Questions]

What value will be assigned to the x variable?

  • A. 0
  • B. True
  • C. False
  • D. 1
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hovnival
1 month, 1 week ago
Selected Answer: B
1. Evaluate `y < z`: 7 < 3 => False 2. Evaluate `z > y`: 3 > 7 => False 3. Combine the first part with `and`: False and False => False 4. Evaluate `y > z`: 7 > 3 => True 5. Evaluate `z < y`: 3 < 7 => True 6. Combine the second part with `and`: True and True => True 7. Combine the results with `or`: False or True => True So, the value assigned to `x` is `True`.
upvoted 1 times
...
christostz03
5 months, 2 weeks ago
b is the correct answer / False or True => True
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago