Question: If a player is fouled while taking a two point shot they receive how many shots?
About the article "Basketball", section "Fouls".

Candidate passages:
An attempt to unfairly disadvantage an opponent through physical contact is illegal and is called a foul.
These are most commonly committed by defensive players; however, they can be committed by offensive players as well.
Players who are fouled either receive the ball to pass inbounds again, or receive one or more free throws if they are fouled in the act of shooting, depending on whether the shot was successful.
One point is awarded for making a free throw, which is attempted from a line from the basket.
The referee may use discretion in calling fouls (for example, by considering whether an unfair advantage was gained), sometimes making fouls controversial calls or no-calls.
The calling of fouls can vary between games, leagues and even among referees.
A player or coach who shows poor sportsmanship, such as by arguing with a referee or by fighting with another player, can be charged with a more serious foul called a technical foul.
The penalty involves free throws (where, unlike a personal foul, the other team can choose any player to shoot) and varies among leagues.
Repeated incidents can result in disqualification.
A blatant foul involving physical contact that is either excessive or unnecessary is called an intentional foul (flagrant foul in the NBA).
In FIBA, a foul resulting in ejection is called a disqualifying foul, while in leagues other than the NBA, such a foul is referred to as flagrant.
If a team exceeds a certain limit of team fouls in a given period (quarter or half) – four for NBA and international games – the opposing team is awarded one or two free throws on all subsequent non-shooting fouls for that period, the number depending on the league.
In the US college and high school games, if a team reaches 7 fouls in a half, the opposing team is awarded one free throw, along with a second shot if the first is made.
This is called shooting "one-and-one".
If a team exceeds 10 fouls in the half, the opposing team is awarded two free throws on all subsequent fouls for the half.
When a team shoots foul shots, the opponents may not interfere with the shooter, nor may they try to regain possession until the last or potentially last free throw is in the air.
After a team has committed a specified number of fouls, it is said to be "in the penalty".
On scoreboards, this is usually signified with an indicator light reading "Bonus" or "Penalty" with an illuminated directional arrow indicating that team is to receive free throws when fouled by the opposing team.
(Some scoreboards also indicate the number of fouls committed.
)If a team misses the first shot of a two-shot situation, the opposing team must wait for the completion of the second shot before attempting to reclaim possession of the ball and continuing play.
If a player is fouled while attempting a shot and the shot is unsuccessful, the player is awarded a number of free throws equal to the value of the attempted shot.
A player fouled while attempting a regular two-point shot, then, receives two shots.
A player fouled while attempting a three-point shot, on the other hand, receives three shots.
If a player is fouled while attempting a shot and the shot is successful, typically the playerwill be awarded one additional free throw for one point.
In combination with a regularshot, this is called a "three-point play" or "four-point play" (or more colloquially, an "and one") because of the basket made at the time of the foul (2 or 3 points) and the additional free throw (1 point).
A three-point field goal (also known as a three-pointer, three, or trey) is a field goal in a basketball game made from beyond the three-point line, a designated arc surrounding the basket.
A successful attempt is worth three points, in contrast to the two points awarded for shots made inside the three-point line.
In 3x3, a formalized version of half-court basketball, shots from outside the arc are worth 2 points, with all other successful shots worth 1 point.
A three-point field goal is distinguished from a "three-point play" or an "and-1", which occurs when a shooter successfully scores a two-point basket while being fouled, and then makes the ensuing free throw.
If such a foul occurs on a successful three-point shot, the resulting free throw gives the player a chance to earn a four-point play.
If a player gets fouled while shooting a three-point shot but does not score they get three free throws.
In 3x3, a defensive foul on an unsuccessful shot from behind the arc results in two free throws.
Three-point field goal percentage is a measure of three-point shooting accuracy calculated by the ratio of three-point field goals made to three-point field goals attempted. 
In college basketball, NFHS, and lower divisions, the penalty for technical fouls has increased over the years.
Initially, the opposing team was awarded one free throw.
This later increased to one free throw and possession of the ball.
For a while, "bench technicals" assessed on a non-active player, assistant coach, or anyone else on the team bench were considered more serious and resulted in the award of two shots.
(Coaches have their own technical fouls, although they may be ejected and/or suspended if they have a mix of technicals totaling two or three fouls, depending on seriousness.
)Today, high school basketball (NFHS in the United States) provides for two free throws and possession of the ball at the division line opposite the scorer's table, regardless of circumstances, for a technical foul.
International basketball provides a similar penalty.
College basketball awards two shots, with the ball then put in play at the point of interruption (POI), the spot and circumstances where play was stopped for the technical.
In the NBA and WNBA, the penalty remains one free throw for the opposing team, with play resuming from the point of interruption.
The shot clock is reset to 14 seconds if it read less than such at the time of the foul.
The team awarded the foul shots for a technical may select the player(s) to shoot them (this rule differs slightly from level to level and internationally), as opposed to personal fouls, where the player fouled, unless injured, must shoot his own foul shots.
In the NBA, any player or coach who accumulates 16 unsportsmanlike technical fouls during the regular season will be suspended for one game.
For every two additional technical fouls received during that regular season, the player or coach will be automatically suspended for an additional game.
Penalties for technical fouls are even higher for playoffs games.
Players and coaches will be fined for every technical foul they receive.
Those who accumulate 7 technical fouls will be suspended for one game.
For every two additional technical fouls received, the player or coach will be automatically suspended for an additional game.
No technical foul for administrative purposes counts towards ejection or suspension.
Such reasons include excessive time-outs, defensive three seconds, scratched player dressing and playing, excessive personal fouls because team is out of players, shattering backboards. 
Beginning in 1985–86, the following rules changes were implemented:  The 45 second shot clock was introduced.
With the shot clock's introduction, the so-called "lack of action" count (when the offense fails to attempt a shot in a five-second timeframe) is abolished.
If a shooter was fouled intentionally and the shot was missed, the penalty was two shots and possession of the ball out of bounds to the team who was fouled.
Conferences are permitted to experiment with a three-point field goal, provided the distance is set to at least 19 feet, 9 inches.  
In basketball, a four-point play is the rare occasion when an offensive player shoots and makes a three-point field goal while simultaneously being hit by a defensive player, resulting in a shooting foul and one free throw being awarded, or a two-point field goal and is intentionally or flagrantly fouled on the shot and is awarded two free throws.
If the player makes their free throws they will have scored four points on a single possession.
The short-lived American Basketball League first introduced the four-point play to the game of basketball, and it was later adopted by the American Basketball Association during its inaugural season.
The NBA introduced that rule in 1979; FIBA in 1984; the NCAA in 1986 (men only) and 1987 (women); and middle and high schools in 1987.