Question-84: If you run below program, what would be printed on console
A=10
B=12
if A>=B:
print("A is Bigger than B")
print("I dont think so, this is correct")
print ("A>B")
if A<B:
print("A is Smaller than B")
print("Yes, this is correct")
print ("A<B")
A.
A is Bigger than B
I dont think so, this is correct
A>B
A<B
2.Get all Questions and Answer from here
3.You need to have paid subscription to access all questions
4.Thanks for considering Python Certification Material
Answer: B
Exp:
A=10 B=12
if A>=B: print("A is Bigger than B") print("I dont think so, this is correct") print ("This would be always printed 1")
You can access to full explanation to question and answer from this page. |
- As you can see both above print statements are not part of if condition.
- Hence, these would be always executed.