If the indentation is correct then answer is 3
a=2
if a>0:
a+=1
else:
a-=1
print(a)
If the indentation is not correct, the answer is "the code will be erroneous"
a=2
if a>0:
a+=1
else:
a-=1
print(a)
This section is not available anymore. Please use the main Exam Page.PCAP Exam Questions
Log in to ExamTopics
Sign in:
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.
locloc91
Highly Voted 5 years, 8 months agoAmirhoseinShojaei
Most Recent 2 weeks, 1 day ago_vt
2 months ago46a1b89
6 months agomegan_mai
6 months, 1 week agoJeyTlenJey
8 months, 3 weeks agomplopez
1 year, 9 months agoEllo2023
1 year, 11 months agoEllo2023
1 year, 11 months agovarshu_0708
1 year, 11 months agoivanbicalho
2 years, 1 month agonaveenbv80
2 years, 4 months agoN9
2 years, 7 months agoPremJaguar
2 years, 9 months agoJiansy90
2 years, 10 months agopalagus
2 years, 10 months ago666_m
2 years, 11 months ago