• 2022-06-26 问题

    将十进制正整数d转换成r(2~9)进制的字符串,下列递归函数正确的是__________。 A: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans=""ElseTrans=Trans(dr,r)&(dModr)EndIfEndFunction B: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans=""ElseTrans=(dModr)&Trans(dr,r)EndIfEndFunction C: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans=Trans(dr,r)&(dModr)ElseTrans=""EndIfEndFunction D: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans= (dModr)&Trans(dr,r)ElseTrans=""EndIfEndFunction

    将十进制正整数d转换成r(2~9)进制的字符串,下列递归函数正确的是__________。 A: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans=""ElseTrans=Trans(dr,r)&(dModr)EndIfEndFunction B: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans=""ElseTrans=(dModr)&Trans(dr,r)EndIfEndFunction C: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans=Trans(dr,r)&(dModr)ElseTrans=""EndIfEndFunction D: FunctionTrans$(ByVald%,ByValr%)Ifd=0ThenTrans= (dModr)&Trans(dr,r)ElseTrans=""EndIfEndFunction

  • 1