Which of the following expressions will evaluate to 2?
Consider the following code.
x = oat (‘23.42’)
Which of the following expressions will evaluate to 2?
A . int(x) + False
B . bool(x) + True
C . str(x)
D . bool(x)
Answer: B
Latest PCEP-30-02 Practice Questions with 124 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments