题目详情
题目详情:
发布时间:2024-01-09 18:27:01

[单项选择]当程序需要()接通时,全部输出继电器的输出自动断开,而其他继电器仍继续工作。
A. M70
B. M71
C. M72
D. M77

更多"当程序需要()接通时,全部输出继电器的输出自动断开,而其他继电器仍继续"的相关试题:

[单项选择]当程序需要()接通时,全部输出继电器的输出自动断开,而其他继电器仍继续工作。
A. M70
B. M71
C. M72
D. M77
[单选题]PLC程序中,手动程序和自动程序需要( )。
A.自锁
B.互锁
C.保持
D.联动
[单选题]5 2 1
PLC 程序中,手动程序和自动程序需要
( )。
A.自锁
B.互锁
C.保持
D.联动
[单项选择]在编写JavaApplication程序时,若需要使用到标准输入输出语句,则必须在程序的开头 写上( )语句。
A. import java.awt.*;
B. importjava.applet.Applet;
C. impoortjava.io.*;
D. importjava.awt.Graphics;
[单项选择]有下列程序段,单击命令按钮执行程序后,输出结果是( )。

Option Base 1

Private Sub Command1 Click( )

Dim x

x=Array(23,-5,17,38,-31,46,11,8,5,-4)

31=0

s2=0

For k=1 To 10

If(x(k)>0)Then

S1=S1+x(k)

Else

s2=s2+x(k)

End If

Next k

Y=s1/Abs(s2)

Print Y

End Sub
A. 148
B. 40
C. 40
D. 3.7
[单项选择]下面程序段的输出结果为
public class Test

public static void main(String args[])

boolean a,b,c;
a=(3<5);
b=(a==true);
System.out.println("a="+a+"b="+b);
c=(b==false);
System.out.println("b="+b+"c="+c);


A. a=true b=false
B. a=true b=false
C. a=true b=true
D. a=false b=false
[单项选择]下面程序段的输出结果是( )。 publicclassTest{ publicstaticvoidmain(Stringargs[]){ intx,y; x=(int)Math.sqrt(5)/2+(int)Math.random( )*5/2; Y=(int)Math.sqrt(3)/2+(int)Math.random( )*3/2; if(x>y) System.out.println9"x>y"); elseif(x==y) System.out.println("x=y"); else System.out.println("x<y"); } }
A. x>y
B. x=y
C. x<y
D. 编译错误
[单项选择]下面程序段的输出结果为( )。
packagetest;
publicclassClassA

intx=20;
staticinty=6;
publicstaticvoidmain(Stringargs[])

ClassBb=newClassB( );
b.go(10);
System.out.println("x="+b.x);


classClassB

intX;
voidgo(inty)

ClassAa=newClassA( );
X=a.y;


A. x=10
B. x=20
C. x=6
D. 编译不通过
[单项选择]若希望下列的程序运行后输出25,程序空白处的正确选项是( )。
main( )
int id=50,a[]=7, 4, 10, 5, 8;
for( )
j+=a[i];
printf("%d", j-40);

A. i=1; i<4; ++i
B. i=1; i<3; ++i
C. i=4; i>2; i==
D. i=2; i<4; ++i
[单项选择]下面程序段的输出结果是
class Test
public static void main(String args[])
MyThread t=new MyThread( );
t.displayOutput("t has been createD) ");
t.start( );


class MyThread extends Thread
public void displayOutput(String s)
System.out.println(s);

public void run( )
displayOutput("t is running.");


A. t has been created.
B. t has been created.
C. t is running.
D. 编译出错
[简答题]阅读下列程序,请写出该程序的输出结果。
class MyThread extends Thread
String message,int s;
MyThread(String message,int sec)this. message=message;s=sec;
public void run( )
trysleep(s);catch(InterruptedException e)
System. out. println(message+" "+getPriority( ));


class ThreadTest
public static void main(String args[])
Thread foo=new MyThread("Foo",1000);
foo. setPriority(Thread.MIN_PRIORITY);foo.start( );
Thread bar=new MyThread("Bar",800);
bar.setPriority(3);bar.start( );
Thread gar=new MyThread("Gar",400);
gar. setPriority(7);gar.start( );
Thread kar=new MyThread("Kar",100);
kar. setPriority(Thread.MAX_PRIORITY);kar.start( );


注:假设处理机中没有其他线程占用资源。
[填空题]下列程序用于在带垂直滚动条的文本框Text1中输出3到100之间的全部素数。请填空。
Private Sub Command1_click( )
Text1.Text=""
For n=3 to 100
k=Int(Sqr(n))
i=2
Flag=0
Do While i<=______And Flag=0
If n Mod i=0 Then
Flag=1
Else
i=i+1
End If
Loop
If______Then
Text1.Text=Text1.Text&Str(n)&Chr(13)&Chr(10)
End If
Next n
End Sub
[简答题]阅读下列程序,请写出该程序的输出结果。
class Test33
String myString="1";
public static void main(String args[])
Test33 myObj=new Test33( );
myObj. stringModifier(myObj. myString);
System. out. println(" "+myObj. myString);

void stringModifier(String theString)
theString=theString+"2";System. out. print(theString);


[单项选择]下面程序段的输出结果为( )。
mblic class Test
public static void main(String args[])

boolean a,b,c;
a=(3<5);
b=(a==true);
System.out.println("a="+a+"b="+b);
c=(b=false);
System.out.println("b="+b+"c="+c);


A. a=true b=false
B. a=true b=false
C. a=true b=true
D. a=false b=false
[单项选择]下面程序段的输出结果是( )。
public class Test
public static void main ( String[] args)
int result=0;
for ( int i=1;i<=5;i++)
if ( i%2==0 ) continue;
result + =i;

System. out. println ("result is " + result );


A. result is 7
B. result is 8
C. result is 9
D. result is 10
[简答题]请在下面程序中的每条横线处填写一个语句,使程序的功能完整。程序的输出结果为:
TIME=1867
b=9
i=123
注意:请勿改动main( )主方法和其他已有的语句内容,仅在横线处填入适当的语句。
源程序文件代码清单如下:
import java.io.*;
public class DataType

public ______ void main(String args[])

byte b;
int i;//定义变量i为int类型
______//定义常量TIME为整型,且值为1867
i=123;//给变量i赋值,该值为十进制的123
______//给变量赋值,改值为八进制的11,十进制的9
System.out.println("TIME"+TIME);
System.out.println("b="+b);
System.out.println("i="+i);


[单项选择]下面是一个Java的应用程序,其输出结果是
public class Testll
public static void main (String args[])
char c='i';
for(int n;6;n<11;m + +)
if(n = =8)continue;
System.out.print(c + +);
A. ij
B. ijkc)ijklD)ijklm
[单项选择]下列程序运行时输出的结果是 Option Base 1 Private Sub Form_Click( ) Dim x(10) As Integer,y(5) As Integer    For i=1 to 10     x(i)=10-i+1    Next   For i=1 to 5    y(i)=x(2*i-1)+x(2*i)   Next   For i=1 to 5    Print y(i)   Next End Sub
A. 3 7 11 45 19
B. 19 15 11 7 3
C. 1 3 5 7 9
D. 不确定的值

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码