题目详情
题目详情:
发布时间:2023-10-27 22:10:19

[单项选择]当输入1、2、3、4、5、6时,下列程序执行后的输出结果为:DIMENSIONA(2,3)READ(*,*)ACALLSSl(A)ENDSUBROUTINESS1(B)DIMENSIONB(3,2)WRITE(*,*)B(3,1)END()
A. 2
B. 3
C. 4
D. 5

更多"当输入1、2、3、4、5、6时,下列程序执行后的输出结果为:DIMEN"的相关试题:

[单项选择]下面C程序中,若在屏幕上输入数值331后回车,程序执行后,屏幕上显示的输出结果应为 ________ 。 main(void) { unsigned int a,b,c,d; Scanf("%o",&a); b = a>>4; c = ~ (~ 0 << 4); d = b & c; printf("d=%o/n",d); }
A. d=10
B. d=15
C. d=25
D. d=45
[单项选择]以下程序运行时输入:12<回车>,执行后输出结果
#include<stdio.h>
main( )
char ch1,ch2;int n1,n2;
ch1=getchar( );ch2=getchar( );
n1=ch1-’0’;n2=n1*10+(ch2-’0’);
printf("%d/n",n2);

[单项选择]窗体上有一个命令按钮和一个文本框,程序执行后,在文本框中输入12345,单击命令按钮后的输出结果为( )。
Private Sub Command1_Click( )
Dim A As Integer,B As Integer
Text1.SelStart=2
Text1.SelLength=2
A=Val(Text1.SelText)
B=Len(Text1.Text)
Print A*B
End Sub
A. 68
B. 115
C. 170
D. 1170
[单项选择]下面程序执行后的输出结果为( )。
public class fun

public static void main(String args[])

String greets="How are you!";
String s=greets.substring(0,3);
System.out.println(S);


A. How
B. are.
C. you
D. how ate you!
[单项选择]以下程序执行后的输出结果是 #include<iostream>. using namespace std; void try(int,int,int,int); int main( ) { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }
A. 18
B. 9
C. 10
D. 不确定
[填空题]有以下程序,程序执行后,输出结果是
#include<stdio.h>
void fun(int*A)
a[0]=a[1];
main( )
int a[10]=10,9,8,7,6,5,4,3,2,1,,i;
for(i=2;i>1=0;i-) fun(&a[i]);
for(i=0;i<10;i++) printf("%d,a[i]);
printf("//n");

[填空题]如下程序执行后的输出结果是 【14】
#include <iostream>
using namespace std;
class Base

public:
Base(int x,int y)

a=x;
b=y;

void Show( )

cout<<"Base: "<<a<< ’,’ <<b<<" ";

private:
int a,b;
;
class Derived : public Base

public:
Derived(int x, int y, int z) : Base(x,y),c(z)
void Show( )

cout<<"Derived:"<<c<<end1;

private:
int c;
;
int main( )

Base b(100,100),*pb;
Derived d(10,20,30);
pb=&b;
pb->Show( );
pb=&d;
pb->Show( );
return 0;

[填空题]当运行以下程序时,输入abcd,程序的输出结果是【 】 insert(char str[]) {int i; i=strlen(str); while(i>0) {str[2*i]=str[i];str[ 2*i-1]=’’*’’;i--;} printf("%S\n",str); } main( ) {char str[40]; scanf("%S",str);insert(str); }
[单项选择]以下程序执行后的输出结果是
#include<iostream>
using namcspace std;
void try(int,int,int,int);
int main( )

int x,y,z,r;
x=1;
y=2;
try(x,y,z,r);
cout<<r<<end1;
return 0;

void try(int x,int y, int z,int r)

z = x+y;
x = x*x;
y = y*y;
r = z+x+y;

A. 18
B. 9
C. 10
D. 不确定
[单项选择]以下程序执行后的输出结果是 ( )。
#include <iostream.h>
class Basel

public:
void fun( ) cout<<"Basel"<<end1;
;
class Base2

public:
void fun( ) cout<<"Base2"<<end1;

class Derived : public Basel,public Base2

;
void main( )

Derived Obj;
Obj.fun( );

A. Basel
B. Base2
C. BaselBase2
D. 程序产生二义性
[单项选择]下面程序执行后,输出的结果是( )。
public class Test
public static void main (String[] )args)
boolean m=true;
if(m==false) System.out.println("假");
else
if(m====true) System.out.println("真");
else System.out.println ("错误");


A. 真
B. 假
C. 错误
D. 编译出错
[填空题]当运行以下程序时,输入abcd,程序的输出结果是 【19】
insert(char str[ ] )
int i;
i = stolen(str);
while (i>0)
str[2*i] =str[i]; str[2 * i-1] = ’* ’; i--;
printf( "% s /n", sir);main( )
char str[40];
seanf( "% s" ,str); insert(str);

[单项选择]下列程序执行后的输出结果是( )。
void funcl(int i);
void func2(int i);
char st[]="hello,friend!”;
void funcl(int i)
printf("%c",st[i]);
if(i<3)i+=2;func2(i);

void func2(int i)
printf("%c",st[i]);
if(i<3)i+=2;funcl(i);

main( )
int i=0;funcl(i);printf("/n");
A. hello
B. hel
C. hol
D. hlm
[填空题]在下面程序的横线处填上适当的内容,使程序执行后的输出结果为ABCD。 #include<iostream.h> using namespace std; class A { public:A( ){cout<<‘A’;} }; class B:______ { public:B( ){cout<<‘B’;) }; class C://______ { public:C( ){cout<<‘C’;} }; class D://public B,public C { public:D( ){cout<<‘D’;} }; void main( ){D obj;}
[单项选择]在下列程序的横线处填上适当的内容,使程序执行后的输出结果为ABCD。 #include<iostream> using namespace std; class A { public:A( ){cout<<’A’;} }; class B: ______ { public:B( ){cout<<’B’;} }; class C:virtual public A { public:C( ){cout<<’C’;} }; class D:public B,public C { public:D( ){cout<<’D’;} }; void main( ){D obj;}
A. public A
B. private A
C. protected A
D. virtual public A

我来回答:

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

订单号:

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