问题 单项选择题

在数据库系统中,锁定数据有助于通过允许交易控制完成交易所需要的所有数据来保护数据完整性。然而,实施锁定程序可能导致()

A.不一致的处理 

B.回滚失败 

C.不可恢复的事件 

D.死保护(恢复争夺)

答案

参考答案:D

解析:

当两个事件同时锁定对方所需要的数据资源时,就会发生死保护。当死保护发生时,数据库系统必须有一个算法来消除其中一个事件的影响并且释放这个事件控制的数据资源,这样另一个事件就可以完成运行。然后,这个事件重新开启并且继续运行至任务结束。假如不能解决死保护,响应时间就会恶化直至系统出现故障。选项(a)不正确,不一致的处理是数据库事件的现象。根据处理的时间不同,产生的影响也不同,数据锁定确保了一致性处理。选项(b)不正确,回滚失败是指数据库软件不能消除事件的影响,这个事件不能运行结束。数据锁定不会产生回滚失败,尽管数据锁定可能产生需要回滚的情况。选项(c)不正确,当数据库软件不能准确恢复重建事件,导致事件不能运行完成,这样事件就被称做不可恢复事件。

单项选择题
阅读理解

Elizabeth Freeman was born about 1742 to African American parents who were slaves. At the age of six months she was acquired, along with her sister, by John Ashley, a wealthy Massachusetts slaveholders. She became known as “Mumbet” or “Mum Bett.”

For nearly 30 years Mumbet served the Ashley family. One day, Ashley’s wife tried to strike Mumbet’s sister with a spade. Mumbet protected her sister and took the blow instead. Furious, she left the house and refused to come back. When the Ashleys tried to make her return, Mumbet consulted a lawyer, Theodore Sedgewick. With his help, Mumbet sued(起诉) for her freedom.

While serving the Ashleys, Mumbet had listened to many discussions of the new Massachusetts constitution. If the constitution said that all people were free and equal, then she thought it should apply to her. Eventually, Mumbet won her freedom---- the first slave in Massachusetts to do so under the new constitution.

Strangely enough, after the trial, the Ashleys asked Mumbet to come back and work for them as a paid employee. She declined and instead went to work for Segdewick. Mumbet died in 1829, but her legacy lived on in her many descendants(后裔). One of her great-grandchildren was W.E.B. Du Bois, one of the founder of the NAACP, and an important writer and spokesperson for African American civil rights.

Mumbet’s tombstone still stands in the Massachusetts cemetery where she was buried. It reads, in part: “She was born a slave and remained a slave and remained a slave for nearly thirty years. She could neither read nor write, yet in her own sphere she had no superior or equal.” 

小题1:What do we know about Mumbet according to Paragraph 1?

A.She was born a slave

B.She was a slaveholder

C.She had a famous sister

D.She was born into a rich family小题2:Why did Mumbet run away from the Ashleys?

A.She found an employer

B.She wanted to be a lawyer

C.She was hit and got angry

D.She had to take care of her sister小题3:What did Mumbet learn from discussions about the new consititution?

A.She should always obey her owners’ orders

B.She should be as free and equal as whites

C.How to be a good servant

D.How to apply for a job小题4:What did Mumbet do after the trial?

A.She chose to work for a lawyer

B.She found the NAACP

C.She continued to serve the Ashleys

D.She went to live with her grandchildren小题5:What is the test mainly about?

A.A story of a famous writer and spokesperson

B.The friendship between a lawyer and a slave

C.The life of a brave African American woman

D.A trial that shocked the whole world