I’m ()to graduate in the next half of the year.

题目
I’m ()to graduate in the next half of the year.

A、due

B、owing

C、thanks

D、because

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

b)

main()

{

union{ /*定义一个联合*/

int i;

struct{ /*在联合中定义一个结构*/

char first;

char second;

}half;

}number;

number.i=0x4241; /*联合成员赋值*/

printf("%c%c\n", number.half.first,

mumber.half.second);

number.half.first='a'; /*联合中结构成员赋值

*/

number.half.second='b';

printf("%x\n", number.i);

getch();

}


正确答案:

 

AB (0x41 对应'A',是低位;Ox42 对应'B',
是高位)6261 (number.i 和number.half 共用一块地址空
间)

第2题:

●试题二

阅读下列函数说明和C代码,将应填入(n)处的字句写在答题纸的对应栏内。

【说明】

该程序运行后,输出下面的数字金字塔

【程序】

include<stdio.h>

main ()

{char max,next;

int i;

for(max=′1′;max<=′9′;max++)

{for(i=1;i<=20- (1) ;++i)

printf(" ");

for(next= (2) ;next<= (3) ;next++)

printf("%c",next);

for(next= (4) ;next>= (5) ;next--)

printf("%c",next);

printf("\n");

}

}


正确答案:
●试题二【答案】(1)(max-′0′)(2)′1′(3)max(4)max-1(5)′1′【解析】该程序共有9行输出,即循环控制变量max的值是从1~9。每行输出分3部分,先用循环for语句输出左边空白,(1)空填"(max-′0′)";再用循环输出从1到max-′0′的显示数字,即(2)空和(3)空分别填1和max;最后输出从max-′1′~1的显示数字,即(4)空和(5)空分别填和max-1和′1′。

第3题:

When you compare the differences between half-duplex and full-duplex Ethernet, which of the following characteristics are exclusive to half-duplex? (Select two answer choices)

A.Half-duplex Ethernet operates in a shared collision domain.

B.Half-duplex Ethernet operates in an exclusive broadcast domain.

C.Half-duplex Ethernet has efficient throughput.

D.Half-duplex Ethernet has lower effective throughput.

E.Half-duplex Ethernet operates in an exclusive collision domain.


正确答案:AD
解析:Explanation:
A single device could not be sending a frame. and receiving a frame. at the same time because it would mean that a collision was occurring. So, devices simply chose not to send a frame. while receiving a frame. That logic is called half-duplex logic.

Ethernet switches allow multiple frames to be sent over different ports at the same time. Additionally, if only one device is connected to a switch port, there is never a possibility that a collision could occur. So, LAN switches with only one device cabled to each port of the switch allow the use of full-duplex operation. Full duplex means that an Ethernet card can send and receive concurrently.

Incorrect Answers:
B. Full duplex effectively doubles the throughput of half-duplex operation, because data can be both sent and received at the full 10/100 speed.

C, E. In half duplex operation, the network is shared between all devices in the collision domain.

第4题:

在KMP模式匹配中,用next数组存放模式串的部分匹配信息。当模式串位j与目标串位i比较时,两字符不相等,则i的位移方式是()。

A.i=next[j]

B.i不变

C..j不变

D.j=next[j]


表示下一趟从 j=0 位置开始比较

第5题:

I've been waiting for him for ______ hour and ______ half.

A. ×; ×
B. the; a
C. a; ×
D. an; a

答案:D
解析:
"an hour and a half"表示"一个半小时"。其他选项都不成立。

第6题:

执行下列语句后指针及链表的示意图为(43)。

L = (LinkList) malloc ( sizeof (LNode) );

P = L;

for(i =0;i <=3;i ++) {

P→next = (LinkList) malloc (sizeof (LNode));

P = P→next;

P→data = i * i + 1;

}

A.

B.

C.

D.


正确答案:B
解析:题中语句的作用是建一个带头结点的链表,链表中的各个元素为i*i+1(i=0,1,2,3),即1,2,5,10。

第7题:

What are the differences between full-duplex Ethernet and half-duplex Ethernet?()

A. Half-duplex Ethernet operates in a shared collision domain.

B. Full-duplex Ethernet has a lower effective throughput.

C. Half-duplex Ethernet operates in a private collision domain.

D. Full-duplex Ethernet allows two-way communication.

E. Half-duplex Ethernet operates in a private broadcast domain.


参考答案:A, D

第8题:

*((int *)pval)/=2; //我想问一下,这个语法怎么理解,太复杂了 具体代码如下。

#include "stdio.h"void half(void *pval,char type);main(){ int i=20; long l=100000; float ff=12.456; double d=123.044444; printf("%d\n",i); printf("%ld\n",l); printf("%f\n",ff); printf("%lf\n",d); half(&i,'i'); half(&l,'l'); half(&ff,'ff'); half(&d,'d'); printf("\n%d",i); printf("\n%ld",l); printf("\n%f",ff); printf("\n%lf",d); return 0; }void half(void *pval,char type){ switch(type) { case 'i': { *((int *)pval)/=2; //我想问一下,这个语法怎么理解,太复杂了 break; } case 'l': { *((long *)pval)/=2; break; } case 'ff': { *((float *)pval)/=2; break; } case 'd': { *((double *)pval)/=2; break; } } }


*((int *)pval)/=2; 一步步讲解: 1,(int*)pval 是把pval指针强制类型转化成 int*,这时pval可看作是个指向int的指针。为了方便说明我们可以int *p = (int*)pval;以后就可以用p代替(int*)pval了。 2,*(p) /=2;也就是 *p /= 2; 这里括号可以去掉了。 /=类似+=、*=, *p /=2;就是 *p = *p/2;

第9题:

在KMP模式匹配中,用next数组存放模式串的部分匹配信息。当模式串位j与目标串位i比较时,两字符不相等,则j的位移方式是()。

A.i=next[j]

B.i不变

C.j不变

D.j=next[j]


表示下一趟从 j=0 位置开始比较

第10题:

L1是不带头结点的单链表。以下算法功能是什么? Status fun(LinkList &L1, LinkList &L2) {p=L1; n=0; while(p){n++; p=p->next;} p=L1; for(i=1;i<n/2;i++)p=p->next; L2=p->next; p->next=NULL; return OK; }


A