Four U.S. presidents have been assassinated while in office and many more have faced serious attempts on their lives. Andrew Jackson holds the dubious distinction of being the first sitting president to survive a serious assassination attempt, which occurred in 1835. Thirty years later, Abraham Lincoln was the first to be slain. Chances are, you can name at least one other president who met a similar fate, but can you name them all?

Abraham Lincoln (Feb. 12, 1809–April 15, 1865) Hulton Archive / Getty Images It was April 15, 1865, and the Civil War had officially ended just five days earlier. President Abraham Lincoln and his wife were attending Ford's Theater that evening to watch the play "Our American Cousin" when John Wilkes Booth shot him in the back of the head. Lincoln, fatally wounded, was taken across the street to Petersen House, where he died at 7:22 the next morning. Booth, a failed actor and Confederate sympathizer, escaped and managed to elude capture for nearly two weeks. On April 26, after being cornered in a barn outside the hamlet of Port Royal, Virginia, Booth was shot and killed by U.S. Army troops after refusing to surrender.

James Garfield (Nov. 19, 1831–Sept. 19, 1881) MPI / Getty Images Odds are that President James Garfield would have survived the July 2, 1881 assassination attempt on his life had he lived in today's times. Lacking antibiotics and an understanding of modern ​hygienic practices, doctors repeatedly probed the entry wound on Garfield's lower back in the days and weeks after the assassination in an unsuccessful attempt to find the two bullets. The president lingered for more than two months before finally dying. The president's assassin, Charles Guiteau, was a mentally disturbed man who had stalked Garfield for weeks in a deluded attempt to secure federal employment. On July 2, he shot President Garfield on the platform of a Washington D.C. train station as Garfield was preparing to board a train. He was arrested immediately after shooting the president. After a swift trial, Guiteau was executed by hanging on June 30, 1882.

William McKinley (March 4, 1897–Sept. 14, 1901) MPI / Getty Images President William McKinley was greeting visitors at the Pan-American Exposition in Buffalo, N.Y., on September 6, 1901, when Leon Czolgosz stepped out of the crowd, drew a gun, and shot McKinley twice in the abdomen at point-blank range. The bullets didn't immediately kill McKinley. He lived another eight days, succumbing to gangrene caused by the wound. Czolgosz, a self-proclaimed anarchist, was attacked by others in the crowd and may have been killed had he not been rescued by police. He was jailed, tried, and found guilty on September 24. He was executed by electric chair on October 29. His last words, according to reporters who witnessed the event, were, "I am not sorry for my crime. I am sorry I could not see my father."

John F. Kennedy (May 29, 1917–Nov. 22, 1963) Keystone / Getty Images President John F. Kennedy was assassinated on November 22, 1963, as he drove past crowds of onlookers that lined the streets of downtown Dallas during his motorcade from the airport. Kennedy was struck once in the neck and once in the back of the head, killing him instantly as he sat beside his wife Jackie. Texas Gov. John Connally, traveling with his wife Nellie in the same convertible, was wounded by another bullet. The accused assassin, Lee Harvey Oswald, had staged his assault from the sixth floor of the Texas State Book Depository building, which overlooked the motorcade route. After the shooting, Oswald fled. He was apprehended later that day, shortly after fatally shooting Dallas police officer J.D. Tippit. Kennedy's assassination was the first in the era of modern communications. News of his shooting dominated TV and radio for weeks after he was shot. Just two days after Kennedy was killed, Oswald himself was shot to death on live television as he was in police custody. Oswald's killer Jack Ruby died in prison on January 3, 1967.