题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-11-22 05:15:36

[填空题]以下程序段的输出结果为_____。
class Cruncher
void crunch(int i)
System.out.println("int");

void crunch(String s)
System.out.println("String");

public static void main(String args[])
Cruncher crun=new Cruncher( );
char ch="p":
crun.crunch(ch);



更多"以下程序段的输出结果为_____。 class Cruncher "的相关试题:

[填空题]以下程序段的输出结果为_____。
class Cruncher
void crunch(int i)
System.out.println("int");

void crunch(String s)
System.out.println("String");

public static void main(String args[])
Cruncher crun=new Cruncher( );
char ch="p":
crun.crunch(ch);


[单项选择]下列程序段的输出结果是
#include<iostream.h>
void fun(int * x,int * y)
cout << * X << * y;
*X=3;
*y=4;

void main( )
int x=1,y=2;
fun(&y,&x);
cout << X << y<<endl;

A. 2143
B. 1212
C. 1234
D. 2112
[填空题]执行下列程序段以后程序的输出是______。 void add(int &x) { x++; } int main( ) { int y=3; add(y); cout<<y<<end1; }
[单项选择]

下列程序的输出结果是()。
public class fff
void printValue(int m)
do System.out.println("The value is" +m);
while( - - m > 10)
public static void main(String arg[ ] )
int i = 10;
Test t = new Test( );
t.printValue(i);


A. 8
B. 9
C. 10
D. 11
[单项选择]以下程序运行后的输出结果是 void swap(int x, int y) {int t; t=x;x=y;y=t; } main( ) {int a=15, b=16; swap(a, b); printf("% d % d", a, b); }
A. 15, 16
B. 16, 15
C. 15, 15
D. 16, 16
[单项选择]以下程序的输出结果是( )。
void fun(int *a, int i, int j)
int t;
if(i<j)
t=a[i]; a[i]; a[j]; a[j]=t;
i++; j--;
fun(a, i, j);


main( )
int x[3=2, 6, 1, 8), i;
fun(x, 0, 3);
for(i=0; i<4; i++)printf("%2d", x[i]);
printf("/n");

A. 1,2,6,8
B. 8,6,2,1
C. 8,1,6,2
D. 8,6,1,2
[填空题]以下程序的输出结果是
void reverse(int a[],int n)
int i,t;
for(i=0;i<n/2;i++)
t=a[i];a[i]=a[n-1-i];a[n-1-i]=t;

main( )
int b[10]=1,2,3,4,5,6,7,8,9,10;int i,s=0;
reverse(b,8);
for(i=6;i<10;i++)s+=b[i];
printf("%d//n",s);

[填空题]以下程序运行后的输出结果是【 】。 void swap(int x,int y) { int t; t=x;x=y;y=t;printf("%d%d",x,y); } main( ) { int a=3,b=4; swap(a,b);pintf(("%d%d",a,b); }
[填空题]以下程序运行后输出的结果是______。
void swap(int x,int y)
int t;
t=x;x=y;y=t;printf("%d %d”,x,y);

void main( )
int a=3,b=4;
swap(a,b); printf("%d %d",a,b);
[填空题]以下程序运行后的输出结果是______。
void swap(int x,int y)
int t;
t=x;x=y;y=t; printf("%d %d ",x,y);

main( )
int a=3,b=4;
swap(a,b); printf("%d %d/n",a,b);

[填空题]以下程序运行后的输出结果是______。
void swap(int X,int y)
int t;
t=x;x=y;y=t;printf("%d%d",x,y);

main( )
int a=3,b=4;
swap(a,b);printf("%d%d/n",a,b);

我来回答:

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

订单号:

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