题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-07-29 01:27:00

[单项选择]执行下列程序后,结果K是( )。
K=0
D0 10 M=1,2
D0 10 N=1,2
10 K=K+M/N
WRITE(*,*)K
END
A. 0
B. 2
C. 1
D. 4

更多"执行下列程序后,结果K是( )。 K=0 D0 10 M=1,2"的相关试题:

[单项选择]执行下面程序后,结果是   public class Testrr      public static void main(String args[])      int i=0xFFFFFFF1;      int j=-i;      System.out.println("j="+j);       A) j=-15 B) j=-16C) j=16
D) j=15

[填空题]执行下列程序后,输出到屏幕的结果为( ) 。 【程序清单】 CLEAR STORE 5 TO ml,m2 STORE 1 TO m3,m4 DO PA WITH ml,m2,m3,m4 m4 PROCEDURE PA PARAMETER a,b,c,d d=b^2-4*a*c DO CASE CASE d<0 d=100 CASE d=0 d=200 CASE d>0 d=300 ENDCASE RETURN
[单项选择]执行下列程序后,显示结果为( )。
*MAIN.PRG
A. RETURN 3 4
B. 5 4
C. 5 5
D. 5 3
[单项选择]有下列程序段,单击命令按钮执行程序后,输出结果为( )。
Option Base 1
Private Sub Command1_Click( )
Dim x
x=Array(23,-5,17,38,-31,46,11,8,5,-4)
s1=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
[单项选择]有下列程序段,单击命令按钮执行程序后,输出结果是( )。 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[])
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,1
D. 1.0,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
[单项选择]执行下面程序后输出的结果是( )。
#include <iostream>
using namespace std;
int main( )
int a[4][4]=1,2,3,-4,7,-12,-13,8,-21,9,0,-24,-31,10,-33,11;
int i,j,s=0;
for(i=0;i<4;i++)
for(j=0;j<4;j++)
if(a[i][j]>=0)continue;
s+=a[i][j];


coat<<s<<endl;
return 0;

A. 141
B. -138
C. -1
D. 75
[单项选择]执行以下程序后的输出结果为( )。
#include <iostream>
Using namespace std;
void fun(int x,int y,int *cp,int *dp)
*cp=x+y;*dp=x-y;)
void main( )

int a,b,c,d;
a=30; b=50;
fun(a,b,&c,&d);
cout>>c>>','<<d<<endl;

A. 50,30
B. 30,50
C. 80,-20
D. 80,20
[单项选择]执行下面程序后输出的正确结果是( )。
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,1
D. 1.0,1.0
[填空题]执行如下程序后的输出结果是 【15】
#include <iostream>
#include <fstream>
using namespace std;
int main ( )

char s[25];
ofstream fl("data.txt");
f1<<"C++ Programming";
f1.close ( );
ifstream f2 ("data.txt");
if (f2.good( )) f2>>s;
f2.close( );
cout<<s;
return 0;

[填空题]执行以下程序后的输出结果是【 】。 main( ) {int a=10; a=(3*5,a+4);printf("a=%d\n",a); }
[单项选择]执行下列程序后输出的结果是( )
#include<stdio.h>
main( )

int j,i,k=0,m=0;
for(i=0;i<2;i++)

for(j=0;j<3;j++)
k++,k-=j;

m=i+j;
print("k=%d,m=%d/n",k,m);

A. k=0,m=5
B. k=0,m=3
C. k=1,m=5
D. k=1,m=3
[填空题]若定义#define PI 3.14159,则执行完下列程序后输出结果是______。
#define PI 3.14159; printf("PI=%f",PI);

我来回答:

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

订单号:

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