niusouti.com

Which traversal method for a binary tree does the following Pascal code illustrate? Procedure traverse(p:pointer); Begin Ifp<>NIL Then begin Traverse (p^.left); Process(p); Traverse(p^.right) End; End_A.pre_orderB.middle_orderC.noneD.last_order

题目

Which traversal method for a binary tree does the following Pascal code illustrate? Procedure traverse(p:pointer); Begin Ifp<>NIL Then begin Traverse (p^.left); Process(p); Traverse(p^.right) End; End_

A.pre_order

B.middle_order

C.none

D.last_order


相似考题
更多“Which traversal method for a binary tree does the following Pascal code illustrate? Proc ”相关问题
  • 第1题:

    4.—_________ Mike________ his homework in the evening?

    —No,he doesn't.

    A. Do;does

    B. Does;do

    C. Do;do

    D. Does;does


    正确答案:B
    4.B【解析】考查实义动词的疑问式为“Does+主语+do,故选B。

  • 第2题:


    What does the example“committed perjury” illustrate?( )

    A.The law will examine closely what the individual said in court
    B.It illustrates that the law only has something to say when behavior has negative effects on others
    C.Behavior which tends to avoid punishing stimulus will not be explicitly specified by law
    D.Both B and C

    答案:B
    解析:

  • 第3题:

    tree.add(6); tree.add(1); tree.add(1); 则遍历树集tree之后,可以输出1,1,6。()


    FEDCBA

  • 第4题:

    Which of the following may illustrate the difference between "competence" and__________ "performance"?

    A.What a person "knows" and what he/she "does".
    B.What a person "can do" and what he/she "does".
    C.What a person "does" and what he/she "knows".
    D.What a person "does" and what he/she "can do".

    答案:A
    解析:
    考查语言学知识。competence“语言能力”,指语言使用者对于语言规则系统的潜在意识;performance“语言运用”,指在具体场景中语言的实际运用,二者对应的分别为“knows”和“does”。故选A。

  • 第5题:


    What does the example“committed perjury” illustrate?( )

    A.The law will examine closely what the individual said in court.
    B.It illustrates that the law only has something to say when behavior has negative effects on others.
    C.Behavior which tends to avoid punishing stimulus will not be explicitly specified by law.
    D.Both B and C.

    答案:B
    解析:

  • 第6题:

    1、tree.add(6); tree.add(1); tree.add(1); 则遍历树集tree之后,可以输出1,1,6。()


    D 解析: 这一题通过语法就可选出是every,因为后面连接的词是单数,故选D。