WASHINGTON — John McCain’s rebellious streak didn’t come out of nowhere. His mother, Roberta, had a habit of speeding behind the wheel and racking up tickets. When told during a trip to Europe that she was too old to rent a car, she went out and bought a Peugeot. Her son once answered the telephone to hear his mother say she was on a cross-country driving trip — by herself, in her 90s.

Now 106, the wife of a Navy admiral and mother of a Navy captain lived a life full of travel and adventure, punctuated by her sass and determination.

She once said her son liked to hold her up as an example of “what he hopes his lifespan will be.”

But in the end, she is mourning him instead of the other way around.

Though slowed by a stroke, she is expected to attend memorial and burial services in Washington and Maryland later this week for the middle son she called “Johnny,” the Vietnam prisoner of war, congressman, senator and two-time presidential candidate who died of brain cancer on Saturday at age 81.

The senator said in one of his books that “my mother was raised to be a strong, determined woman who thoroughly enjoyed life, and always tried to make the most of her opportunities. She was encouraged to accept, graciously and with good humor, the responsibilities and sacrifices her choices have required of her. I am grateful to her for the strengths she taught me by example.”

McCain’s father, too, had a penchant for living large, with the senator recalling that a predilection for “quick tempers, adventurous spirits, and love for the country’s uniform” was encoded in his family DNA.

A native of Muskogee, Oklahoma, Roberta Wright was nearly 21 and a college student in southern California when she eloped to Tijuana, Mexico, in January 1933 with a young sailor named John S. McCain Jr. He would go on to become a Navy admiral, like the father he shared a name with, and the couple would have three children — Jean, John and Joseph — within a decade.

With her husband away on Navy business most of the time, Roberta McCain raised the kids. She didn’t complain, and loved Navy life. The family lived in Hawaii, the Panama Canal Zone — where the senator was born in 1936 — Connecticut, Virginia and many points in between.

“To me, the Navy epitomizes everything that’s good in America,” she told C-SPAN in 2008 during the presidential contest John McCain lost to Barack Obama.