单选题H旗的意思是“我船上有引员”。()A The meaning of Flag H is “I have a pilot on board”.B You should stop your vessel instantly.C The meaning of Flag H is “I require assistance.”D The meaning of Flag H is “I have PSC on board”.

题目
单选题
H旗的意思是“我船上有引员”。()
A

The meaning of Flag H is “I have a pilot on board”.

B

You should stop your vessel instantly.

C

The meaning of Flag H is “I require assistance.”

D

The meaning of Flag H is “I have PSC on board”.

参考答案和解析
正确答案: C
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

如果一个正整数从高位到低位上的数字依次递减,则称其为降序数(如:9632是降序数,而8516则不是降序数)。现编写如下程序,判断输入的正整数是否为降序数。 Private Sub Command1 Click( ) Dim n As Long Dim flag As Boolean n=InputBox("输入一个正整数") S=Trim(Str(n)) For i=2 To Len(s) If Mid(s,i-1,1)<Mid(S,i,1)Then Exit For Next i If i=Len(S)Then flag=True Else flag=False If flag Then Print n;"是降序数" Else Print n;"不是降序数" End If End Sub 运行以上程序,发现有错误,需要对给flag变量赋值的If语句进行修改。以下正确的修改是( )。

A.If i=Len(s)+1 Then flag=False Else flag=True

B.If i=Len(s)+1 Then flag=True Else flag=False

C.If i=Len(s)-1 Then flag=False Else flag=True

D.If i=Len(s)-1 Then flag=True Else flag=False


正确答案:B
B。【解析】此题的考查点在for循环,当最后一次执行完Next的时候,i会越界。越界后是len(s)+1,已经比i的长度要长了。因此要对越界进行判断。

第2题:

Take down ___ (G旗).

A.Flag “H”

B.Flag “G”

C.Flag “Q”

D.Flag


正确答案:B

第3题:

以上程序段运行的结果是:______. Dim a(-1 To 5) As Boolean Dim flag As Boolean flag = False Dim i As Integer Dim j As Integer Do Until flag = True For i = -1 To 5 j=j+1 if a(i)= False Then a(i)= True Exit For End If If i = 5 Then flag = True End If Next Loop Print j

A.20

B.7

C.35

D.8


正确答案:C
解析:该程序段的作用是给数组a的每个数组元素赋值True,具体实现的方式为: 每次从数组a的第一个元素开始判断,该元素是否为False,如果是,则令此元素为True,然后跳出循环,重新从数组a的第一个元素开始判断;如果当前元素不为False,则判断下一个元素。因此语句j=j+1将执行 1+2+3+4+5+6+7=28次,即j=28。然后再遍历一遍数组a的所有元素,最后结束程序段。所以j最终的值是: j=28+7=35。

第4题:

Your vessel is being assisted through an ice field in Thunder Bay by the Canadian Coast Guard icebreaker Alexander Henry.The starboard lookout reports that the icebreaker has run up the code flag N(November).What action should you take ________.

A.Reduce speed

B.Stop your engines

C.Reverse your engines

D.Stop your vessel instantly


正确答案:B

第5题:

以下程序段运行的结果是______。Dim a(-1 To 5) As BooleanDim flag As Booleanflag = FalseDim i As IntegerDim j As IntegerDo Until flag = True For i=-1 To 5 j=j+1 If a(i)= False Then a(i)= True Exit For End If If i = 5 Then flag = True End If NextLoopPrint j

A.20

B.7

C.35

D.8


正确答案:C
解析:该程序段的作用是给数组a的每个数组元素赋值True,具体实现的方式为:每次从数组a的第一个元素开始判断,该元素是否为False,如果是,则令此元素为True,然后跳出循环,重新从数组a的第一个元素开始判断;如果当前元素不为False,则判断下一个元素。因此语句j=j+1将执行1+2+3+4+5+6+7=28次,即j=28。然后再遍历一遍数组a的所有元素,最后结束程序段。所以j最终的值是:j=28+7=35。

第6题:

We shall hoist the ___ (H旗) as soon as a pilot comes on board

A.Fag “H”

B.Flag “G”

C.Flag “Q”

D.Flag


正确答案:A

第7题:

请补充main函数,该函数的功能是:把1~100间的所有素数保存在数组aa中,然后输出这些素数并计算它们的和。

注意:部分源程序给出如下。

请勿改动主函数main和其他函数中的任何内容,仅在 main函数的横线上填入所编写的若干表达式或语句。

试题程序:

include<stdio.h>

main()

{

int n, i, j, k, flag, sum;

int aa [50];

sum=O;

k=O;

clrscr ();

for (i=2; i<100; i++)

{

【 】;

for (j=2; j<i&&flag; j++)

if (i%j==O)

{

【 】;

}

if (flag)

{

sum+=i;

【 】;

}

}

printf("\n*** prime number ***\n");

for (i=0; i<k; i++)

{

if (i%10==0)

printf ("\n");

printf ("%4d", aa [i]);

}

printf ("\nsum=%d", sum);

}


正确答案:flag=1 flag=0 aa[k+++]=i
flag=1 flag=0 aa[k+++]=i 解析:第一空:由后面的if句可以看出,当nag为1时,当前数是素数,所以此处先假设当前数为素数,即置flag为1,再进行判断,如果不是素数,则再将fflag清零。第二空:如果一个数能被除了1和其自身之外的数整除,即余数为0,则这个数不是素数。如果当前数不是素数,则将flag清零。第三空:如果当前数是素数,则将它保存在数组bb中。

第8题:

What is the meaning of the word “ROGER” when used in radio communication?__________.

A.Please repeat your message

B.Not readable

C.Correct

D.I have received your transmission satisfactorily


正确答案:D
当使用无线电通信的时候单词“明白了”是什么意思?我已经满意的收到了你的传送。

第9题:

用“起泡法”对输入的10个字符排序后按从小到大的次序输出。

#define N 10

char str[N];

main()

{ int i,flag;

for(flag=1;flag==1;)

{ scanf("%s",str);

flag=0;

printf("\n");

}

sort(___(4)___);

for(i=0;i<N;I++)

printf("%c",str[i]);

printf("\n");

}

sort(char str[N])

{ int i,j;

char t;

for(j=1;j<N;J++)

for(i=0;(i<N-J)&&(STR[I]!='\0');I++)

if(str[i]>str[i+1])

{ t=str[i];

____(5)____;

____(6)____;

}

}


正确答案:
2.(4) str (5) str[i]=str[i+1] (6) str[i+1]=t

第10题:

Write an essay of 160-200 words based on the following picture.In your essay,you should(1)describe the picture briefly(2)interpret the meaning,and h(3)give your comments.You should write neatly on the ANS WER SHEET.(20 points)


答案:
解析:
In the picture above,in an unattended bookstore where there is no cashier and no staff,a customer is paying for the book he has chosen of his own free will.Such a bookstore is basically based on the customers'integrity.This illustration reveals the importance of integrity in todays society.cheif ieav-os onion,toona when no one is around There are many reasons why integrity is important Integrity means doing the right thing even when no one is around in our lives.First,living a life of integrity means that we never have to spend time or energy questioning ourselves.When we listen to our hearts and do the right thing,life becomes simple.Our actions are open to others,and we don't have to worry about hiding anything.What's more,when we have integrity,we gain the trust of others.We're dependable,and we become role models for others to follow when we hold ourselves accountable for our actions In our lives,we are going to be tested at one point or another by our integrity and ethics.Every time we do what we think is the right thing even though no one else sees us do it,we have taken a big step toward strengthening our integrity

更多相关问题