SAN JOSE — A 19-year-old Santa Clara University student was arraigned Thursday in the bizarre stabbing of his sleeping roommate in their on-campus dorm, while a prosecutor laid out the vicious attack in grisly detail.

Dillon Sang Kim appeared in a San Jose courtroom where he answered to an attempted murder charge before being escorted by Sheriff’s deputies back to the Santa Clara County Jail, where he is being held without bail. Kim, who did not enter a plea, is scheduled to be back in court Tuesday.

Multiple bandages could be seen on Kim’s left arm and there was a scar from when he apparently slashed at his own neck before he was arrested outside Graham Hall, where the sophomore lived.

The prosecutor handling the case Thursday said the student Kim is accused of attacking was stabbed several times all over his upper body and “is very lucky to be alive.”

Meanwhile, Santa Clara University has suspended Kim from school, spokeswoman Deepa Arora said.

During the brief court hearing, the sight of a shackled Kim caused a woman in the court gallery, believed to be a relative, to openly weep. Afterward, she left without taking questions from reporters.

A reason for the bizarre attack continues to elude authorities, who have not offered any motive. Santa Clara police, who are investigating the case, say it was unprovoked.

Deputy District Attorney Kalila Spain said the attack began with the victim, also a 19-year-old sophomore, waking up just before 3 a.m. Feb. 17to see the defendant standing over him and holding a knife.

Spain said Kim stabbed his roommate in the throat and inflicted cuts on his head and shoulder before the victim broke free and ran toward a bathroom connecting their room with two other roommates who shared their suite. At one point the victim fell down and Kim, who chased after him, stabbed him once more, in the back.

The victim made it to the second room where another student called 911, Spain said. Kim was arrested by police outside Graham Hall but not before turning the knife on himself, producing a long scar across his neck that featured prominently in his jail booking photo.

On-campus paramedics, who are also students at the university, were the first to respond to the stabbing scene and render aid to the victim. He remains at a hospital where he is recovering from his wounds.

“He’s doing well,” Spain said.

Anyone with information about the attack can contact Santa Clara police Sgt. Derek Rush at 408-615-4814.

Contact Robert Salonga at 408-920-5002. Follow him at Twitter.com/robertsalonga.