更多"有如下程序 aS='Flying':b$='IS’:c$='funn"的相关试题:
[填空题]有如下程序:
A$="Flying": b$="is":C$="funny!"
Print a$+""+LCase$(b$)+""+UCase$(C$)
End
运行后输出的结果是 【12】 。
[填空题]有如下程序
aS-"Flying"b$="IS":c$""funny!"
PrInt aS+""+LCase$(b$)+""+UCase$(cS)
End
运行后输出的结果是 【15】 。
[填空题]有如下程序:
A$="Flying": b$="is":C$="funny!"
Print a$+""+LCase$(b$)+""+UCase$(C$)
End
运行后输出的结果是 【12】 。
[填空题]有如下程序
a$="Flying":b$="IS":c$="funny!"
Print a$+""+LCase$(b$)+""+UCase$(c$)
End
运行后输出的结果是 【15】 。
[填空题]有如下程序:
AS="Flying": b$="Is":c$="funny!"
Print a$+""+LCase$(b$)+""+ UCase$(e$)
End
运行后输出的结果是 【15】 。
[单项选择]如下程序的输出结果是( )。 public class Test { void printValue(int m) { do { System.out.println("The value is"+m); } while(--m > 10 ) } public static void main(String args[]) { int i=10; Test t= new Test( ); t.printValue(i); } }
A. The value is 8
B. The value is 9
C. The value is 10
D. The value is 11
[单项选择]有如下程序:
#include
usingnamespacestd;
intmain()
{
int*P;
*P=9:
cout<<"ThevalueatP:"<<*P;
return0;
}
编译运行程序将出现的情况是( )。
A. 编译时出现语法错误,不能生成可执行文件
B. 运行时一定输出ThevalueatP:9
C. 运行时一定输出ThevalueatP:*9
D. 运行时有可能出错
[单项选择]有如下程序:
#include
using namespace std;
class Boat;
class Car{
public:
Car(int i):weight(i){ }
friend int Total(const Car &c.const Boat &b); //①
private:
int weight;
};
class Boat{
public:
Boat(int i):weight(i){ }
friend int Total(const Car &c,const Boat &b);
private:
int weight;
};
int Total(const Car &c,const Boat &b){ //②
return c.weight+b.weight;
}
int main( ){
Car c(10);
Boat b(8);
cout<<"The total weight is"<A. 程序编译正确
B. 程序编译时语句①出错
C. 程序编译时语句②出错
D. 程序编译时语句③出错
[单项选择]如下程序是为变量i赋值。若程序的输出结果是180。请将程序补充完整。
注意:不改动程序结构,不得增行或删行。
class Base
int i;
Base( )
add(10);
void add(int v)
i+=v;
void print( )
System.out.println(i);
class Extension extends Base
Extension( )
add(______);
void add(int v)
i+=v*2;
public class ConstructTest3
public static void main(String args[])
bogo(new Extension( ));
static void bogo(Base b)
b.add(60);
b.print( );
[单项选择]有如下程序:
* * *主程序:P.prg* * * * * *子程序:P1.prg* * *
SET TALK OFF X2=X2+1
STORE 2 TO X1,X2,X3 DO P2
X1=Xl+1 X1:Xl+1
DO PI RETURN
xl+x2+x3 * * *子程序:P2.prg* * *
RETURN x3=x3+l
SET TALK ON RETURN TO MASTER
执行命令DOP后,屏幕显示的结果为( )。
A. 12
B. 15
C. 6
D. 5