A survey of 240 10th grade students at a local high school found that there were 140 girls and 100 boys in the grade. Of the 140 girls, 100 preferred gym class while 40 preferred art class. Of the 100 boys, 40 preferred gym class while 60 preferred art class. Construct a data table for this data and answer the following question: If you randomly select a boy, what is the probability that he prefers art?

Here is the data table:

| | Gym Class | Art Class | Total |
|---|-----------|----------|-------|
|Girls| 100 | 40 | 140 |
|Boys | 40 | 60 | 100 |
|Total| 140 | 100 | 240 |

To find the probability that a randomly selected boy prefers art, we need to look at the number of boys who prefer art compared to the total number of students. There are 60 students (40 girls and 20 boys) who prefer art, so the probability of selecting a boy who prefers art is:

60 (number of boys who prefer art) รท 240 (total number of students)

= 0.25 or 25%

Therefore, there is a 25% chance that a randomly selected boy prefers art.

To construct a data table for this data, we can use the following format:

-----------------------------------------
| | Gym Class | Art Class |
-----------------------------------------
| Girls | 100 | 40 |
-----------------------------------------
| Boys | 40 | 60 |
-----------------------------------------
| Total | 140 | 100 |
-----------------------------------------

To calculate the probability of randomly selecting a boy who prefers art, we need to find the proportion of boys who prefer art out of the total number of boys.

The total number of boys is 100, and the number of boys who prefer art is 60.

Probability = Number of boys who prefer art / Total number of boys

Probability = 60 / 100 = 0.6

Therefore, the probability that a randomly selected boy prefers art class is 0.6 or 60%.