[单选题]

设广义表L=(soldier,(teacher,student),(worker,farmer)),head和tail函数把原子student从广义表L中分离出来的运算是(17)。

A.tail(head(tail(head(L))))

B.head(tail(head(Tail(L))))

C.tail(head(tail(head(L))))

D.head(tail(tail(head(L))))

参考答案与解析:

相关试题

设L为广义表,将head(L)定义为取非空广义表的第一个元素,tail(L)定义

[单选题]设L为广义表,将head(L)定义为取非空广义表的第一个元素,tail(L)定义为取非空广义表除第一个元素外剩余元素构成的广义表。若广义表L=((x,y,z),a,(u,t,W)),则从L中取出原子项y的运算是( )。A.head(tail(tail(L)))B.tail(head(head(L)))C.head(tail(head(L)))D.tail(tail(head(L)))

  • 查看答案
  • 设 L 为广义表,将 head(L)定义为取非空广义表的第一个元素,tail

    [单选题] 设 L 为广义表,将 head(L)定义为取非空广义表的第一个元素,tail(L)定义为取非空广义表除第一个元素外剩余元素构成的广义表。若广义表L=((x,y,z),a,(u,t,w)),则从L中取出原子项y的运算是 (62) 。(62)A. head(tail(tail(L)))B. tail(head(head(L)))C. head(tail(head(L)))D. tail(tail(head(L)))

  • 查看答案
  • 设广义表L=((a,b,c)),则L的长度和深度分别为()。

    [单选题]设广义表L=((a,b,c)),则L的长度和深度分别为()。A . 1和1B . 1和3C . 1和2D . 2和3

  • 查看答案
  • Student: I'm nervous. Teacher:______. Be

    [单选题]Student: I'm nervous.Teacher:______. Betty, you'll finish it quickly.

  • 查看答案
  • 若函数Head(L)取得广义表L的表头元素,Tail(L)取得广义表L表尾元素,

    [单选题]若函数Head(L)取得广义表L的表头元素,Tail(L)取得广义表L表尾元素,则从广义表L=(x,(a,b,c,d))中取出原子c的函数为______。A.Head(Tail(Tail(L)))B.Head(Tail(L))C.Head(Tail(Tail(Tail(L))))D.Head(Tajl(Tail(Tail(Ta|1(L)))))

  • 查看答案
  • 若函数Head(L)取得广义表L的表头元素,TaiI(L)取得广义表L表尾元素,则从广义表L=(x.(a,b,c,d))中取出原子c的函数为( )。

    [单选题]若函数Head(L)取得广义表L的表头元素,TaiI(L)取得广义表L表尾元素,则从广义表L=(x.(a,b,c,d))中取出原子c的函数为( )。A

  • 查看答案
  • A student finds it difficult to learn the English sounds [θ] and [σ]. If you are the teacher, w

    [单选题]A student finds it difficult to learn the English sounds [θ] and [σ]. If yo

  • 查看答案
  • The teacher-student _____ in China’s universities is much lower than that in the U.S.

    [单选题]The teacher-student _____ in China’s universities is much lower than that i

  • 查看答案
  • To assess how well a student is performing relative to his or her own previous performance,a teacher

    [单选题]To assess how well a student is performing relative to his or her own previ

  • 查看答案
  • To assess how well a student is performing relative to his or her own previous performance,a teacher

    [单选题]To assess how well a student is performing relative to his or her own previ

  • 查看答案
  • 设广义表L=(soldier,(teacher,student),(worker