题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-08-01 05:06:39

[填空题]若定义#define PI 3.14159,则执行完下列程序后输出结果是______。
#definePI 3.14159;printf("PI=%f’,PI);

更多"若定义#define PI 3.14159,则执行完下列程序后输出结果"的相关试题:

[填空题]若定义#define PI 3.14159,则执行完下列程序后输出结果是______。
#define PI 3.14159;printf("PI=%f",PI);
[填空题]若定义#define PI 3.14159,则执行完下列程序后输出结果是______。 #definePI 3.14159;printf("PI=%f’,PI);
[填空题]以下程序的输出结果是 【11】
# define MCNA(m)2*m
# define MCNB(n, m)2*MCRA(n)+m
# define f(x)(x*x)
main( )
int i=2, j=3;
printf("% d/n", MCRB(j, MCRA(i)));

[单项选择]运行下面程序后,正确的输出结果是( )。 public class Sun { public static void main(String args[ ]) { int x=6; if(x>6) System.out.println("x>6"); else if(x<8) System.out.println("x<8"); else if(x==6) System.out.println("x=6"); } } A) x<8x=6 B) x<8 A) x=6 D) x<8或x=6
[单项选择]有如下事件程序,运行该程序后输出结果是______。
Private Sub Command33_Click( )
Dim x As Integer,y As Integer
x=1:y=0
Do Until y<=25
y=y+x*x
x=x+1
Loop
MsgBox"x="&x&", y="&y
End Sub
A. x=1,y=0
B. x=4,y=25
C. x=5,y=30
D. 输出其他结果
[单项选择]执行下面程序后输出的正确结果是
public class Test
public stoic void main (String args[])
byte x=3, y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);


A. 20.0, 1
B. 20.0, 1.0
C. 20,0
D. 20, 1.0
[单项选择]执行下面程序后输出的正确结果是
public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);


A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]执行下面程序后输出的正确结果是
Public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(”,”);
System.out.print(x/y);


A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]有下列程序段,单击命令按钮执行程序后,输出结果是( )。

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[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);


A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]执行下面程序后输出的正确结果是( )。
public class Test
public static void main(String args[])
System.out.print(100%3);
System.out.print(",");
System.out.print(100%3.0);


A. 1,1
B. 1,1.0
C. 1.0, l
D. 1.0,1.0

我来回答:

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

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码