【单选题】【消耗次数:1】
线索二叉树中,结点p没有左子树的充要条件是( )。
p->lc=NULL
p->ltag=1
p->ltag=1 且p->lc=NULL
以上都不对
参考答案:
复制
纠错
相关题目
【单选题】 <p>下列选项中,属于企业的无形资源的是()。</p>
①  A.人力
②  B.设备
③  C.原材料
④  D.信誉
【多选题】 <p>完善和落实民主集中制的各项制度,坚持( )和( )相结合,既充分发扬民主,又善于集中统一。</p>
①  A.民主基础上的集中
②  B.集中指导下的民主
③  C.集中基础上的民主
④  D.民主指导下的集中
【单选题】 若按如下定义,函数link的功能是()。其中head指向链表首结点,整个链表结构如下图:┌──┬─┐┌──┬─┐┌──┬──┐head→│data│┼→│data│┼→…→│data│NULL│└──┴─┘└──┴─┘└──┴──┘structnode{intdata;structnode*next;};voidlink(structnode*head){structnode*p=head;while(p!=NULL){if(p-data%2==1)printf("%d",p-p=p-}}
①  计算链表head中结点的个数
②  遍历链表head,输出表中值为奇数的元素
③  删除链表head中的所有结点
④  插入一个新元素到链表head中
【判断题】 二叉树中每个结点的两棵子树的高度差等于1。
①  正确
②  错误
【单选题】 若有定义:structnode{intdata;structnode*next;};已建立如下图所示的链表:┌─┬─┐┌─┬─┐┌─┬─┐head→│2│┼→│4│┼→…→│28│┼→NULL└─┴─┘└─┴─┘└─┴─┘指针head指向链表首结点,以下函数的功能是()。voidfun(structnode*head){structnode*p=head;while(1){p=p-printf("%d",p-data);if(!p)break;}}
①  显示单向链表中第一个结点的数据
②  显示单向链表中最后一个结点的数据
③  显示单向链表中的所有数据
④  显示单向链表中除第一个结点外的所有数据
【单选题】 设X,Y独立同分布P(X=-1)=P(Y=-1)=1/2,P(X=1)=P(Y=1)=1/2则
①  X=Y
②  P(X=Y)=0
③  P(X=Y)=1/2
④  P(X=Y)=1
【单选题】 若有以下定义:structnode{intdata;structnode*next;}structnode*p;已建立如下图所示的链表:┌──┬──┐┌──┬──┐┌──┬──┐p→│data│next┼→│data│next┼→...→│data│NULL│└──┴──┘└──┴──┘└──┴──┘指针p指向第一个结点,能输出链表所有结点的数据成员data的循环语句是()。
①  while(p!=NULL){printf("%d,",p-p++;}
②  while(p){printf("%d,",p.data);p=p-}
③  for(;p!=NULL;p++)printf("%d,",p
④  -for(;p;p=p-next)printf("%d,",(*p).data);
【判断题】 二叉树中每个结点的两棵子树是有序的。
①  正确
②  错误
【单选题】 集合A={a,b,c},A上的二元关系R={<a,a>&lt;A,A&gt;,&lt;B,B&gt;,&lt;A,C&gt;<b,b><a,c>},则R具有以下性质()。</a,c></b,b></a,a>
①  自反性、反对称性、传递性
②  反自反性、反对称性、传递性
③  对称性、传递性
④  反对称性、传递性
【单选题】 下面代码:int a[5];int *p;a[0]=1;a[1]=2;p=a;*p的值
①  a
②  1
③  2
④  null
随机题目
【判断题】 If a sentence ends with an ellipsis, a period should not be used.
①  正确
②  错误
【判断题】 Proper names cannot be divided.
①  正确
②  错误
【判断题】 Every word in the title should be capitalized.
①  正确
②  错误
【判断题】 In dates, a comma is used to separate the day and the year if the order is day—month—year.
①  正确
②  错误
【判断题】 Titles of books, newspapers and magazines are generally underlined or italicized.
①  正确
②  错误
【判断题】 Before the conjunctive adverbs there should be a semicolon, not a comma.
①  正确
②  错误
【判断题】 The period is used to separate a series of words or phrases.
①  正确
②  错误
【判断题】 The coordinate clauses can be joined with a comma.
①  正确
②  错误
【单选题】 We can be sure of this: []no little green men live on Pulsar.
①  /
②  that
③  which
④  what
【单选题】 This morning he bought a novel. [] was written by Mao Dun.
①  It
②  Which
③  At
④  That