题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-07-28 07:15:51

[填空题]有如下程序
a$="Flying":b$="IS":c$="funny!”
Printa$+""+LCase$(bS)十+""UCaseS(c$S)
End
运行后输出的结果是 【12】

更多"有如下程序 a$='Flying':b$='IS':c$='funn"的相关试题:

[填空题]有如下程序: AS="Flying": b$="Is":c$="funny!" Print a$+""+LCase$(b$)+""+ UCase$(e$) End 运行后输出的结果是 【15】
[填空题]有如下程序: 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】
[填空题]有如下程序
aS="Flying":b$="IS’:c$="funny!"
Print a$+”"+LCase$(b$)+""+UCase$(cS)
End
运行后输出的结果是 【13】
[填空题]有如下程序:
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】
[单项选择]有如下程序:   #inelude   usingnamespacestd;   classTest   {   public:   Test(){n+=2;}   ~Test(){n-=3;}   staticintgetNum(){returnn;}   private:   staticintn;   };   intTest::n=1;   intmain()   Test*P=newTest:   deleteP;   cout<<"n="<  return0;   }   执行后的输出结果是(  )。
A. n=0
B. n=1
C. n=2
D. n=3
[单项选择]有如下程序:   #included   usingnamespacestd;   classTestClass{   protected:   TestClass(  ){cout<<’X’;}   TestClass(charc){cout<  classTestClassl:publicTestClass{   public:   TestClassl(charc){cout<  intmain(  ){   TestClassld1(’y’);   return0;}   执行这个程序,屏幕上将显示输出(  )。
A. y
B. yx
C. xy
D. yy
[单项选择]有如下程序:   #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( ); } }

我来回答:

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

订单号:

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