When a plot twist happens near the end of a story, especially if it changes one's view of the preceding events, it is known as a twist ending.
Revealing the existence of a plot twist often spoils a movie, since the majority of the movie generally builds up to the plot twist.
A device used to undermine the expectations of the audience is the false protagonist. It involves presenting a character at the start of the film as the main character, but then disposing of this character, usually killing them. It is a red herring.
Example of a plot twist
An early example of the murder mystery genre[1] with multiple twists[2] was the Arabian Nights tale "The Three Apples". It begins with a fisherman discovering a locked chest. The first twist occurs when the chest is broken open and the dead body is found inside. The initial search for the murderer fails, and a twist occurs when two men appear, separately claiming to be the murderer. A complex chain of events finally reveal the murderer to be the investigator's own slave.
A flashing arrow is a metaphorical audiovisual cue used in films to bring some object or situation that will be referred later, or otherwise used in the advancement of plot, to the attention of the viewers.
The device is not introduced into the plot or the dialogue, but is something peripheral; however made obvious (hence the name) by a particular camera shot or background music. An example of this device is a camera close-up in a horror movie that suggests information like danger from an unlocked door. A literal flashing arrow was used in the 1981 film Student