第1题:
顶风顶流情况下航行,船舶对水航程SL,对地航程SG,船速VE,航时t,则()。
A.SG
B.SL>VEt,且SL>SG
C.SG>SL>VEt
D.SLSL
第2题:
Thesl:shoppingListandsl:itemtagsoutputashoppinglisttotheresponseandareusedasfollows:11.<sl:shoppingList>12.<sl:itemname="Bread"/>13.<sl:itemname="Milk"/>14.<sl:itemname="Eggs"/>15.</sl:shoppingList>Thetaghandlerforsl:shoppingListisShoppingListTagandthetaghandlerforsl:itemisItemSimpleTag.ShoppingListTagextendsBodyTagSupportandItemSimpleTagextendsSimpleTagSupport.Whichistrue?()
A.ItemSimpleTagcanfindtheenclosinginstanceofShoppingListTagbycallinggetParent()andcastingtheresulttoShoppingListTag.
B.ShoppingListTagcanfindthechildinstancesofItemSimpleTagbycallingsuper.getChildren()andcastingeachtoanItemSimpleTag.
C.ItisimpossibleforItemSimpleTagandShoppingListTagtofindeachotherinataghierarchybecauseoneisaSimpletagandtheotherisaClassictag.
D.ShoppingListTagcanfindthechildinstancesofItemSimpleTagbycallinggetChildren()onthePageContextandcastingeachtoanItemSimpleTag.
E.ItemSimpleTagcanfindtheenclosinginstanceofShoppingListTagbycallingfindAncestorWithClass()onthePageContextandcastingtheresulttoShoppingListTag.
第3题:
有风无流时,如计程仪改正率ΔL=0%,则相对计程仪航程(SL)和实际航程(SG)之间的关系为()。
A.SL>SG
B.SL=SG
C.SL
D.视风的顺逆而定
第4题:
下列程序段执行后,内存变量sl的值是( )。 s1="network" sl=stuff(sl,4,4,"BIOS") ? s1
A.network
B.netBl0S
C.net
D.BIOS
第5题:
下列程序段执行后,内存变量sl的值是( )。
s1="network"
sl=stuff(sl,4,4,"BIOS")
? s1
A.network
B.netBl0S
C.net
D.BIOS
第6题:
下列给定程序中函数fun()的功能是;先将在字符串s中的字符按逆序存放到t串中,然后把s中的字符按正序连接到t串的后面。例如:当s中的字符串为ABCDE时,则t中的字符串应为EDCBAABCDE。
请改正程序中的错误,使它能得出正确的结果。
注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。
试题程序:
include <conio.h>
include <stdio.h>
include <string.h>
void fun (char *s, char *t )
{
int i,sl;
sl=strlen(s);
for (i=0;i<sl;i++)
t[i]=s[sl-1];
for (i=0; i<sl; i++)
/*************found**************
t [sl+i]=s [i];
t [2*sl]-'\0';
}
main ( )
{ char s[100], t[100];
clrscr();
printf("\nPlease enter string s: ");
scanf ("%s", s);
fun (s,t);
printf ("The result is: %s\n",t);
}
第7题:
SSN1SF16是OSN设备的STM-16(带外FEC)光接口板,主要是完成2.67G光信号收发、STM-16信号的开销处理等功能,它关闭FEC功能才能与SSN1SL16对接。SSN1SL16暂不能与SL16对接,有指导书可以与OSN9500的2.5G单板,但需将单板模式改为DCC模式,默认是GCC的SST2SL64/SST2SL64A是R3版本上新开发的STM-64线路板,所以只有把OSN3500的配套版本升级到R3及其以上的版本才可以使用该类单板。T系列单板只能用在OSN7500上。
此题为判断题(对,错)。
第8题:
顺风顺流情况下航行,船舶对水航程SL,对地航程SG,船速VE,航时t,则()。
A.SG
B.SL>VEt,且SL>SG
C.SG>SL>VEt
D.SLSL
第9题:
若有定义语句:
char}sl=‘’0K”,:It s2=”ok”;
以下选项中,能够输出“OK”的语句是( )。
A.if(strcmp(sl,s2)!=0)puts(s2);
B.if(strcmp(sl,s2)!=0)puts(s1);
C.if(strcmp(sl,s2)==1)puts(s1);
D.if(strcmp(sl,s2)==0)puts(s1);
第10题:
已知G4=(VT{a,',',(,)},VN={S,L,L'},S,P),其中P为, S→(L)|a|ε L→SL' L'→,SL'|ε FIRST(SL')是(29)。
A.{',',ε}
B.{(,a}
C.{(,a,',')
D.{(,a,',' ,ε)