根据程序描述的逻辑功能,下列说法正确的有: module Learn6_1(clk,CLR,LD,out); input clk,CLR,LD,data; output reg [3:0] out; always@(posedge clk or negedge CLR) begin if(!CLR) out<=0; else if(!LD) out<=data; else out<=out+1; end endmodule
A.同步清零,同步置数
B.同步清零,异步置数
C.异步清零,同步置数
D.异步清零,异步置数
第1题:
Giventhefollowingcode:if(x>0){System.out.println("first");}elseif(x>-3){System.out.println("second");}else{System.out.println("third");}Whichrangeofxvaluewouldprintthestring"second"?()
A.x>0
B.x>-3
C.x<=-3
D.x<=0&x>-3
x>0时打印"first",x>-3&&x<=0时打印"second",x<=-3时打印"third"。这个题目没有什么难的,只要理解if语句的语法就可以了。
第2题:
执行下面程序后输出的正确结果是( )。 public class Test{ public static void main(String args[]){ System.out.print(100%3); System.out.print(","); System.out.print(100%0); } }
A.1,1
B.1,1.0
C.1.0, l
D.1.0,1.0
第3题:
有如下程序段: if(x>0){ System.out. println("first");} else if(x>-4){ System.out.println("second");} else { System.out.println("third");}x的取值在什么范围内时,将打印出字符串 "second" ?
A.x>0
B.x>-4
C.x<= -4
D.x<= 0&&x> -4
第4题:
写异步D触发器的verilog module。(扬智电子笔试)
module dff8(clk , reset, d, q);
input clk;
input reset;
input [7:0] d;
output [7:0] q;
reg [7:0] q;
always @ (posedge clk or posedge reset)
if(reset)
q <= 0;
else
q <= d;
endmodule
第5题:
给出下列代码片断: if(x>0) {System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 请问x处于什么范围时将打印字符串“second”?( )
A.x>0
B.x>-3
C.x<=3
D.x<=0&x>-3
第6题:
public void foo( boolean a, boolean b ){ if( a ) { System.out.println( “A” ); } else if ( a && b ) { System.out.println( “A&&B” ); } else { 17. if ( !b ) { System.out.println( “notB” ); } else { System.out.println( “ELSE” ); } } } What is correct?()
第7题:
8253—5每个计数器都有()引脚与外部进行联系。
第8题:
请说明Intel8253各个计数通道中三个引脚信号CLK,OUT和GATE的功能。
第9题:
8253定时器/数器中,在门控制信号上升沿到来后的()时刻,输出信号OUT变成低电平。
第10题:
8254为了与外部进行联系,内部的每个计数器都有的引脚是()
第11题:
If a is true and b is true then the output is “A&&B”.
If a is true and b is false then the output is “notB”.
If a is false and b is true then the output is “ELSE”.
If a is false and b is false then the output is “ELSE”.
第12题:
x > 0
x > -3
x <= -3
x <= 0 & x > -3
第13题:
publicvoidfoo(booleana,booleanb){if(a){System.out.println(A”);}elseif(a&&b){System.out.println(A&&B”);}else{17.if(!b){System.out.println(notB”);}else{System.out.println(ELSE”);}}}Whatiscorrect?()
A.Ifaistrueandbistruethentheoutputis“A&&B”.
B.Ifaistrueandbisfalsethentheoutputis“notB”.
C.Ifaisfalseandbistruethentheoutputis“ELSE”.
D.Ifaisfalseandbisfalsethentheoutputis“ELSE”.
第14题:
有如下程序段 if(x<0){System.out.println("first");} else if(x<-4){System.out.println("second");} else{System.out.println("third");} x的取值在( )范围内时,将打印出字符串"second"。
A.x>0
B.x>-4
C.x<=-4
D.x<=0 &&x>-4
第15题:
给出下面程序段: if(x>0){System.out.printlh("Hello. ");} else if(x>-3){System.out.println("Nice to meet you!");} else{System.out.println("How are you?");} 若打印字符串"How are you?",则x的取值范围是
A.x>0
B.x>-3
C.x<=-3
D.x<=0&x>-3
第16题:
下列代码中 d(x>0)(System.out.Pdntln("first");} else if(x>-3){System.out.pnntln("second");} else{System.out.pdlldn("third");)要求打印字符串为"second"时,x的取值范围是( )。
A.x<=0并且x>-3
B.x>O
C.x>-3
D.x<=-3
第17题:
给出下列代码片段: if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 当x处于( )范围时打印字符串"second"。
A.x>0
B.x>-3
C.-3<x<=0
D.x<=-3
第18题:
8253—5工作于方式3时,当写入控制字CW和许数初值后,()开始减l计数过程。
第19题:
Given the following code: if (x>0) { System.out.println("first"); } else if (x>-3) { System.out.println("second"); } else { System.out.println("third"); } Which range of x value would print the string "second"?()
第20题:
8253工作在()时,计数到0时OUT引脚能输出一个CLK周期宽度的负脉冲。
第21题:
8253工作在()时,OUT引脚能输出一个CLK周期宽度的负脉冲。
第22题:
public static void main(String[]args){ String str="null"; if(str==null){ System.out.println("null"); }else(str.length()==0){ System.out.println("zero"); }else{ System.out.println("some"); } } What is the result?()
第23题:
输出OUT高电平后,再经过一个CLK下降沿
经过一个CLK上升沿
输出OUT变为低电平后,再经过一个CLK下降沿
经过一个CLK下降沿
第24题:
null
zero
some
Compilationfails.
Anexceptionisthrownatruntime.