更多"下面程序的输出结果为______。 a=4.5 b=-123 c"的相关试题:
[填空题]下面程序的输出结果为______。
a=4.5
b=-123
c=Len(Str(b)+Str(a))
MsgBox c
[填空题]下面程序的输出结果为______。
a=4.5
b=-123
c=Len(Str(b)+Str(a))
MsgBox c
[填空题]下面程序的运行结果为 【15】 。
x=-2.3
y=125
z=Len(Str$(x)+Str$(Y))
Print z
[填空题]下面程序的运行结果为【16】。
x;-2.3
y=125
z=Len(Str$(x)+Str$(y))
Print z
[填空题]下列程序的输出结果为______。
a=4.5
b=-123
c=Len(Str(b)+Str(a) )
MsgBox c
[填空题]下面程序的运行结果为 【11】 。
x = -2.3
y = 125
z = Len(Str$(x) + Str$(Y))
Print z
[单项选择]下面程序的输出结果是( )。
#include<iostream.h>
#include<string.h>
void main( )
char p1[10],p2[10];
strcpy(p1,"abc");
strcpy(p2,"ABC");
char str[50]="xyz";
strcpy(str+2,strcat(p1,p2));
cout<<str;
A. xyzabcABC
B. zabcABC
C. xyabcABC
D. yzabcABC
[填空题]下面程序的输出结果是 【16】 。
#include<stdio.h>
main( )
static char a[]="language" ,b[]="program";
char*ptrl=a,*ptr2=b;
int k;
for(k=0;k<7;k++)
if(*(ptrl+k)==*(ptr2+k))
printf("%c",*(ptrl+k));
[单项选择]下面程序执行后的输出结果为( )。
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!
[单项选择]下面程序段的输出结果为______。
public class Test
public static void main(String args[])
booleana, 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 Quiz2 { public static void main(String args[]) { try {throw new MyException( ); }catch(Exception e) { System.out.println("It’s caught!"); }finally{ System.out.println("It’s finally caught!"); } } } class MyExeeption extends Exception{}
A. It’s finally caught!
B. It’s caught!
C. It’s caught!/It’sfinally caught!
D. 无输出
[单项选择]下面程序输出的结果为
#include"iostream.h"
class A
public:
A( )cout<<"CLASSA"<<endl;
~A( )
;
class B:public A
public:
B( )cout<<"CLASSB"<<endl;
~B( )
;
void main( )
A * p;
p=new B;
B *q;
q=new B;
A. CLASS A
B. CLASS A
C. CLASS A
D. CLASS A
[单项选择]下面程序输出的结果是( )。
#include<iostream>
using namespace std;
int fuc (char *x);
int main( )
cout<<fuc("hello")<<endl;
return 0;
int fuc(char *x)
char *y=x;
while(*y! =’/0’)y++;
return(y-x);
A. 5
B. 6
C. 0
D. 语法错误,不能输出结果