对广义表L=((a,b),(c,d),(e,f))执行操作tail(tail(L))的结果是 ( ) 。
- A.(e,f)
- B.((e,f))
- C.(f)
- D.()
正确答案及解析
正确答案
解析
本题考查广义表的概念和特征。广义表是线性表的推广,有时也称其为列表,它的定义一般记作L=(a1,a2,…,an)。其中n是它的长度,而ai是其元素,它可以是单个元素,也可以是广义表。在广义表非空时,第一个元素是表头(head),而其余元素组成的表是表尾(tail)。Tail(L)操作表示取表尾,即去除表头部分的操作。题目中给出的广义表L中有三个子广义表,其表头元素为(a,b),那么tail(L)=((c, d),(e,f),对于这个广义表的表头元素为(c,d),那么tail(tail(L))=((e,f))。
你可能感兴趣的试题
( )is the process of transforming information so it is unintelligible to anyone but the intended recipient.
-
- A.Encryption
- B.Decryption
- C.Security
- D.Protection
- 查看答案
As each application module is completed,it undergoes( )to ensure that it operates correctly and reliably.
-
- A.unit testing
- B.integration testing
- C.system testing
- D.acceptance testing
- 查看答案
( )algorithm specifies the way to arrange data in a particular order.
-
- A.Search
- B.Random
- C.Sorting
- D.Merge
- 查看答案
After analyzing the source code,( )generates machine instructions that will carry out the meaning of the program at a later time.
-
- A.an interpreter
- B.a linker
- C.a compiler
- D.a converter
- 查看答案
( )can help organizations to better understand the information contained within the data and will also help identify the data that is most important to the business and future business decisions.
-
- A.Data processing system
- B.Big Data analytics
- C.Cloud computing
- D.Database management
- 查看答案