试题与答案

时钟系统由()组成。A.中心母钟 B.车站母钟 C.子钟 D.终端

题型:多项选择题

题目:

时钟系统由()组成。

A.中心母钟

B.车站母钟

C.子钟

D.终端

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/1001/102d770219f6f2707ad352346b41dfa8.html

下面是错误答案,用来干扰机器的。

参考答案:1)系统功能;2)设备的切除、复位;3)空调温度控制器的复位;4)显示灯、蜂鸣器控制;5)乘务员支援;6)服务设备控制;7)数据记录;8)车上试验;9)自我诊断传送线。

试题推荐
题型:完形填空

.

第二节:下面四个人想找相应的部门寻求帮助。阅读下列材料,从所给的A, B, C, D, 和E)中,选出符合各自需求的最佳选项,选项中有一项为多余选项。

58. __________ Jack is a foreign student majoring in medicine. The food of the college restaurant isn’t fit for him.

59. __________ Lynne, a new student whose family is far from the college, fails to find a place to live in.

60. __________ Alice is going to graduate next year. She is preparing her thesis (毕业论文) and has to refer to lots of information about it.

61. __________ Lillian studies at the department of computer science. She would like to have further study after graduation.

A.Careers (Room 113)

The staff members are available to advise on career choice and applications for higher education.

B.Accommodation (Room 114)

Mrs. Wards, is available each afternoon from 1:30 to 4:30 to help students with problems relating to housing.

C.Sports (Room 207)

Mrs. Murie can provide information about sporting and keep-fit activities. She has been teaching kick-boxing in the gymnasium.

D.Food Service (Room 127) Mr. Smith is the manager of the Food Service and will do his best to help if you require a special diet.

E. Library (Room 215)

There are various books and reference materials about literature, art, math, etc. Besides books there are photocopying, video, and computing facilities.

查看答案
题型:问答题

函数ReadDat()实现从IN.DAT文件中读取一篇英文文章并存入到字符串数组xx中。请编写函数encryptChar(),按给定的替代关系对数组xx中的所有字符进行替代后,仍存入数组xx的对应位置上,最后调用函数WriteDat(),把结果xx输出到OUT.DAT文件中。
替代关系:f(p)=p*11 mod 256(p是数组中某一个字符的ASCII值,f(p)是计算后新字符的ASCII值),如果计算后f(p)值小于等于32或f(p)对应的字符是大写字母,则该字符不变,否则将f(p)所对应的字符进行替代。
原始数据文件存放的格式是:每行的宽度均小于80个字符。
注意:部分源程序已经给出。
请勿改动主函数main()、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<ctype.h>
unsigned char xx[50][80];
int maxline=0; /*文章的总行数*/
int ReadDat(void);
void WriteDat(void);
void encryptChar()


void main()

if(ReadDat())

printf("数据文件IN.DAT不能打开!\n\007");
return;

encryptChar();
WriteDat();

int ReadDat(void)

FILE *fp;
int i=0;
unsigned char *p;
if((fp=fopen("IN.DAT","r"))==NULL)
return 1;
while(fgets(xx[i],80,fp)!=NULL)

p=strchr(xx[i],’\n’);
if(p)
*p=0;
i++;

maxline=i;
fclose(fp);
return 0;

void WriteDat(void)

FILE *fp;
int i;
fp=fopen("OUT.DAT","w");
for(i=0; i<maxline;i++)

printf("%s\n",xx[i]);
fprintf(fp,"%s\n",xx[i]);

fclose(fp);

查看答案
微信公众账号搜索答案