问题
单项选择题
管道通信是以( )进行写入和读出。
A.消息为单位
B.自然字符流
C.文件
D.报文
答案
参考答案:B
解析: 管道是指用于连接一个读进程和一个写进程以实现进程之间通信的一种共享文件。向管道提供输入的是发送进程,也称为写进程,负责向管道输入数据,数据的格式是字符流。接受管道数据的接受进程为读进程。
管道通信是以( )进行写入和读出。
A.消息为单位
B.自然字符流
C.文件
D.报文
参考答案:B
解析: 管道是指用于连接一个读进程和一个写进程以实现进程之间通信的一种共享文件。向管道提供输入的是发送进程,也称为写进程,负责向管道输入数据,数据的格式是字符流。接受管道数据的接受进程为读进程。
第五部分:任务型阅读(共10小题,每小题1分,满分10分) ![]() ![]() ![]() The effect of quality after-school programs on academic performance is clear. Studies show that students who take part in such programs show better work habits, higher rates of homework completion, improved grades, and higher scores on achievement tests. They also have fewer absences and are less likely to blame. After-school programs also influence high-risk teen behavior. Various studies show decreased rates of crime, drug-taking, and teen sex among youth who join in well-run after-school programs when compared to similar youth who do not. Finally, after-school programs play an important role in supporting different kinds of fields of development: physical development, mental development and social development. Thus, one can safely say that after-school programming is an effective method to help young people become contributing members of society. Although there is enough proof from both small and large assessments that after-school programs can make a positive difference, it is important to note that not all programs are equal. First, dosage matters -- young people who attend the most hours over the most years benefit more than members who attend less often or over a shorter period of time. Next, after-school programs make a bigger difference for those students who need help most and have the fewest choices. Finally, program qualities matter. After-school programs work best when they create unique opportunities for youth. They should provide opportunities, skill building meaningful involvement, expression, suggestion, service, and work. Staff characteristics make an important difference in the quality of a program. The adults should treat youth as partners, create safe and fair environment, encourage personalized involvement, and actively create learning opportunities. In short, although after-school programs have a promising future, how they are designed and run matters. ![]()
|