94.6k views
2 votes
Read the following code:

x = currentAge
print(x + 20)

What value will this code calculate?

Select one:
a. Age in 20 years
b. Age 20 years ago
c. Age at 20 years old
d. Age in the year 2020

User Ken Syme
by
5.6k points

2 Answers

5 votes
Its Option A - Age in 20 Years.
Thank You!
User Saikiran Yerram
by
5.2k points
4 votes

Answer:

The answer is "A) Age in 20 years"

Step-by-step explanation:

Assuming currentAge is declared and is an integer, you are adding 20 to your current age which means it will print your age in 20 years.

User Vincent De Smet
by
5.4k points