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, 10 months agoAmirhoseinShojaei
Most Recent 2 months, 2 weeks ago_vt
4 months ago46a1b89
8 months, 1 week agomegan_mai
8 months, 2 weeks agoJeyTlenJey
10 months, 4 weeks agomplopez
1 year, 11 months agoEllo2023
2 years, 1 month agoEllo2023
2 years, 1 month agovarshu_0708
2 years, 1 month agoivanbicalho
2 years, 4 months agonaveenbv80
2 years, 6 months agoN9
2 years, 9 months agoPremJaguar
2 years, 11 months agoJiansy90
2 years, 12 months agopalagus
3 years ago666_m
3 years, 1 month ago