在ASP中,len(“abcdefg”)函数的结果是?()
A:“abcdefg” B:6 C:true D:7
在ASP中,right(“abcdefg”,3)函数的结果是?()
A:“abcdefg” B:“e” C:“efg” D:“def”
一棵二叉树的前序遍历序列为ABCDEFG,它的中序遍历序列可能是______。
A:CABDEFG B:ABCDEFG C:DACEFBG D:ADCFEG
若输入bcdefgh、m、abcdefg,以下程序的输出结果为( )。
#include<stdio.h>
#include<string.h>
main( )
int i;
char string[20],str[3][20];
for(i=0;i<3;i++)gets(str[i]);
if(strcmp(str[0],str[1])>0)
strcpy(string,str[0]);
else strcpy(string,str[1]);
if(strcmp(str[2],string)>0)
strcpy(string,str[2]);
printf("%s",string);
A:bcdefgh m abcdefg bcdefgh或abcdefg
假定有以下函数过程:
Function Fun(S As String) As String
Dim SlAS String
For i=l TO Len(S)
S l=U Case(Mid(S,i,l))+S l
Nexti
Fun=S l
End Function
则Str2=Fun(“abcdefg”)的输出结果为( )。
A:abcdefg B:ABCDEFG C:gfedcba D:GFEDCBA
假定有以下函数过程:
Function Fun(S As String) As String
Dim sl As String
For i=1 To Len(S)
s1=UCase (Mid(S,i,1))+s1
Next i
Fun=s1
End Function
则Str2=Fun("abcdefg”)的输出结果为( )。
A:abcdefg B:ABCDEFG C:gfedcba D:GFEDCBA
若输入bcdefgh、m、abcdefg,以下程序的输出结果为( )。 #include<stdio.h> #include<string.h> main( ) { int i; char string[20],str[3][20]; for(i=0;i<3;i++)gets(str[i]); if(strcmp(str[0],str[1])>0) strcpy(string,str[0]); else strcpy(string,str[1]); if(strcmp(str[2],string)>0) strcpy(string,str[2]); printf("%s",string); }
A:bcdefgh B:m C:abcdefg D:bcdefgh或abcdefg
假定有以下函数过程: Function Fun(S As String) As String Dim sl As String For i=1 To Len(S) s1=UCase (Mid(S,i,1))+s1 Next i Fun=s1 End Function则Str2=Fun("abcdefg”)的输出结果为( )。
A:abcdefg B:ABCDEFG C:gfedcba D:GFEDCBA