以下哪个语句用来退出php中switch-case的分支判断?()
A.continue
B.leave
C.break
D.end
A.continue
B.leave
C.break
D.end
第3题
A.switch(a+b){ case 1:printf("*/n");case 2*a:printf("* */n");}
B.switch(x){ case 1.0:printf("*/n");case 2.0:printf("* */n");}
C.switch(x){ case 1,2:printf("*/n");case 3:printf("* */n");}
D.switch(a+b){ case 1:printf("*/n");case 1+2:printf("* */n");}
第5题
A.continue语句的作用是停止正在进行的循环,直接进入下一次循环
B.break语句也可以用于跳出switch结构
C.continue语句的作用是立即跳出循环
D.循环结构中可使用break或continue控制循环执行情况
第6题
bitreptr search_bst(bitreptr T,keytype K)
{ if(T==NULL)return(NULL);
else switch
{ case T—>key==K:______;
case______: return(search_bst(T—>lchild,K));
case______: return(search_bst(T—>rchild,K));
}
}
第8题
A.continue只结束本次循环
B.遍历循环中的遍历结构可以是字符串、文件、组合数据类型和range()函数
C.Python通过for、while等保留字构建循环结构
D.break用来结束当前次语句,但不跳出当前的循环体
第9题
void delete_openhash(keytype K,openhash HP)
{ i=H(K);
if(HP[i]==NULL)return; /*空表则退出*/
p=HV[i];
if(p—>key==K){______=p—>next;free(p);return;)
/*表首结点为待删除结点时的删除*/
while(p—>next!=NULL) /*其他情况下的删除*/
{ q=p;p=p—>next;
if(p—>key==K){______=p—>next;delete(p);return;)
}
}