• 2022-06-18
    If any input to an OR is 1, the output is 1
  • 内容

    • 0

      为了读取数据,需打开顺序文件“D:\data5.txt”,以下正确的命令是 A: Open D:\data5.txt For Input As #1 B: Open "D:\data5.txt"For Input As #2 C: Open D:\data5.txt For Output As #1 D: Open "D:\data5.txt"For Output As #2

    • 1

      下面是四选一数据选择器的部分代码,要补全代码可以选择( )。(?)always@(*)begin if (s==2'b00) y=p0; else if (s==2'b01) y=p1; else if (s==2'b10) y=p2; else y=p3;end A: module mux4_1 (p3,p2,p1,p0,s,y);input p3,p2,p1,p0;input[1:0] s;output y;... ...endmodule B: module mux4_1 (p3,p2,p1,p0,s,y);input p3,p2,p1,p0;input[1:0] s;output y;reg y;... ...endmodule C: module mux4_1 ( input p3,p2,p1,p0; input[1:0] s; output reg y;)... ...endmodule D: module mux4_1 (input p3,p2,p1,p0;input[1:0] s;output y )... ...endmodule

    • 2

      C language has no input/output statement, just input/output functions instead.

    • 3

      Which of the following will result in an increase in productivity A: 10% decrease in both output and input B: 10% increase in output and 5% increase in input C: 5% increase in output and 10% increase in input D: 10% increase in both output and input

    • 4

      下列程序的功能是:将数据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