电力技术监督上岗员(中国华能)

输入输出input and output(I/O)

题目

输入输出input and output(I/O)

参考答案和解析
正确答案:具有如下功能的部件或组件:能够将生产过程参数转换为工业控制计算机系统能够接收的数字信号输入系统,或将工业控制计算机系统输出的数字信号转换为相应过程控制部件、设备能够接收的物理量或电能量。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

View the exhibit and examine the output.Which statement can be an inference from the output?()

A. The FRA disk group has an asynchronous I/O bottleneck

B. The least number of I/Os are performed on the last data file in the list

C. The number of times that the backup or restore process directed the OS to wait until an I/O was complete is the highest for the last data file in the list

D. The number of times that the backup or restore process made an OS call to poll for I/O completion in Nonblocking mode is the least for the FRA disk group


参考答案:A

第2题:

下列程序的功能是:将数据1,2,…,8写入顺序文件Num.txt中,请选择正确的程序段( )。 Private Sub Form_Click() Dim i As Integer Open "Num.txt" For Output As #1 For i=1 To 8 ______ Next i Close #1 End Sub

A.print #1,i

B.input #1,i

C.print #1

D.input #1


正确答案:A
解析:顺序文件的写操作使用“Print#”语句或者“Write#”语句,而“Input#”语句是用于从一个顺序文件中读取数据。使用“Print#语句”向一个顺序文件写数据的格式是:Print#文件号,表达式表。各个表达式之间用逗号或分号隔开,如果省略表达式,则向顺序文件中写入一个空行。

第3题:

操作系统的主要操作有( )。Ⅰ.进程Ⅱ.内存分配Ⅲ.文件输入输出(I/O)Ⅳ.设备输入输出(I/O)

A.Ⅰ、Ⅱ、Ⅲ

B.Ⅰ、Ⅳ

C.Ⅰ、Ⅲ

D.全部


正确答案:D
解析:操作系统是计算机系统的重要组成部分,它是用户与计算机之间的接口。一般来说,单机操作系统可以定义为这样一个系统软件,它管理着一台计算机的4个主要操作:①进程;②内存分配;③文件输入输出(I/O);④设备输入输出(I/O)。

第4题:

I/O信号是指输入输出信号。()


正确答案:正确

第5题:

Most operating systems have a standard set of ( ) to handle the processing of all input and output instructions.

A.SPREADSHEET
B.CONTROL INSTRUCTIONS
C.I/O OPERATION
D.DATA TABLE

答案:B
解析:
翻译:多数操作系统都有一套标准的(71)去处理所有输入和输出指令。

A. 电子表格 B. 控制指令 C. 输入输出系统 D. 数据表

第6题:

Identify the channel settings that can be performed using the CONFIGURE CHANNEL or ALLOCATECHANNEL commands in RMAN() (choose all that apply)

A. Limiting the input/output (I/O) bandwidth consumption

B. Specifying the size of backup sets and backup pieces

C. Specifying vendor-specific information for a media manager

D. Specifying the parallelism for backup and restore operations


参考答案:A, C

第7题:

Most operating systems have a standard set of () to handle the processing of all input and output instructions.

A.spreadsheet

B.control instructions

C.I/O operation

D.data table


正确答案:B

第8题:

下列程序的功能是:将数据1,2,......,8写入顺序文件Num.txt中,请选择正确的程序段 Private Sub Form_Click() Dim i As Integer Open "Num.txt"For Output As #1 For i=1 To 8 ______ Next i Close #1 End SubA.print#1,i B.input#1,i C.print#1 D.input#1


正确答案:A
【解析】顺序文件的写操作使用“Print#”语句或者“Write#”语句,而“Input#”语句是用于从一个顺序文件中读取数据。使用“Print#语句”向一个顺序文件写数据的格式是:Print#文件号,表达式表。各个表达式之间用逗号或分号隔开,如果省略表达式,则向顺序文件中写入一个空行。

第9题:

逻辑覆盖法是设计白盒测试用例的主要方法之一,通过对程序逻辑结构的遍历实现程序的覆盖。针对以下由C语言编写的程序,按要求回答问题。
int XOR(char * filename,unsigned long key){ FILE * input = NULL , *output =NULL; //i char * outfilename = NULL; int len = strlen(filename); unsigned char buffer; if( (filename[len-2] == '.')&& (filename[len-1] == 'c') ) { //2,3 outfilename = new char[len+1]; //4 strcpy(outfilename, filename); outfilename[len-2] = '\0'; } else{ //5 outfilename = new char[len+5]; strcpy(outfilename, filename); strncat(outfilename,".c",2); } input =fopen(filename,"rb"); if( input == NULL) { //6 cout << "Error opening file " << filename << endl; //7 delete [] outfilename; outfilename = NULL; return 1; } output =fopen(outfilename,"wb"); if( output == NULL ) { //8 cout << "Error creating output file " << outfilename << endl; //9 delete [] outfilename; outfilename = NULL; return 1; } while( ! feof(input) ) { //10 if(fread(&buffer,sizeof(unsigned char),1,input) != 1 ) { //11 if( ! feof(input) ) { //12 delete [] outfilename; //13 outfilename = NULL; fclose(input); fclose(output); return 1; } } else{ //14 buffer ^= key; fwrite(&buffer,sizeof(unsigned char),1,output); } } fclose(input); //15 fclose(output); delete [] outfilename; return 0; }
请给出满足100%DC(判定覆盖)所需的逻辑条件。


答案:
解析:


本题考查白盒测试技术的应用。
1.本问题考查白盒测试用例设计方法:判定覆盖法。
判定覆盖指设计足够的测试用例,使得被测程序中每个判定表达式至少获得一次"真"值和"假"值,从而使程序的每一个分支至少都通过一次。本题中程序有6个判定,
所以满足判定覆盖一共需要12个逻辑条件。

第10题:

The basic units of a computer system are as follows()。

  • A、CPU, memory and disk
  • B、CPU, input  and  output  unit
  • C、CPU, memory and I/O system
  • D、CPU, memory and  ALU

正确答案:C

更多相关问题