【单选题】【消耗次数:1】
在创建对象时必须( )
先声明对象,然后才能使用对象
先声明对象,为对象分配内存空间,然后才能使用对象
先声明对象,为对象分配内存空间,对对象初始化,然后才能使用对象
上述说法都对
参考答案:
复制
纠错
相关题目
【单选题】 ()对象能使用print方法。
①  文本框
②  命令按钮
③  图片框
④  标签
【单选题】 ()对象不能使用print方法。
①  图片框
②  文本框
③  窗体
④  立即窗口
【判断题】 在JavaScript中,使用内置对象Array创建数组对象。
①  正确
②  错误
【判断题】 创建对象时系统将调用适当的构造方法给对象初始化。
①  正确
②  错误
【单选题】 声明并创建一个按钮对象b,应该使用的语句是( )
①  Button b=new Button();
②  button b=new button();
③  Button b=new b();
④  setLabel(“确定”);
【单选题】 AutoCAD中,使用鼠标框选图形对象时,()不可以选中对象
①  从左向右部分框住对象
②  从右向左部分框住对象
③  从左向右全部框住对象
④  从右向左全部框住对象
【单选题】 下列声明并创建Connection对象的语句,正确的是( )。
①  Dim ADOcn As New Connection
②  Dim ADOcn As Connection
③  Declare ADOcn As New Connection
④  Declare ADOcn As Connection
【判断题】 灵活运用比喻、拟人等多种修辞,才能使描绘对象更加生动传神。( )
①  正确
②  错误
【单选题】 要将A对象的特性匹配到B对象上,可以使用的方法是( )。
①  调用“特性匹配”,首先选择“源对象”A,然后选择“目标对象”B
②  调用“特性匹配”,首先选择“目标对象”B,然后选择“源对象”A
③  调用“特性匹配”,同时选择A和B
④  先选择A和B,再调用“特性匹配”
【单选题】 在DOM对象模型中,直接父对象为根对象window的对象中不包括()。
①  history
②  document
③  location
④  form
随机题目
【单选题】 Do you mind if I take a couple of hours off this afternoon?
①  Never mind
②  OK, but what for?
③  Yes, please help yourself
④  Yes, but I don’t care
【单选题】 Would you like to have dinner with us this evening?
①  OK, but I have to go to a meeting now
②  No, I can’t
③  I’d love to, but this evening I have to go to the airport to meet my parents
④  I don’t know
【单选题】 Hurry up please, or I’ll be late.
①  Sorry sir, bur the traffic is thick now
②  Well, it’s alright, sir
③  How can you say that, sir?
④  Oh, we are going the right way
【单选题】 Are you ready to order desert, please?
①  Yes, please
②  Please don’t order it
③  No, don’t mention it
④  Yes, I’d like to have some chocolate cake
【单选题】 The donated liver came from the UK, but the hospital is giving no further __________ .
①  instance
②  character
③  items
④  details
【单选题】 Well, it’s getting late. I must be going. Thank you again for inviting me to the party.
①  Oh, it’s so late
②  Thank you for coming
③  Oh, so soon?
④  I really had a happy time
【单选题】 I won’t be able to attend the meeting tonight because _________ .
①  I must teach a class
②  I teach a class
③  I will be teaching a class
④  I will have been teaching a class
【单选题】 Excuse me, but can you tell me the way to the airport?
①  Don’t ask that
②  Sorry, I’m a stranger here
③  No, I can’t say that
④  No, you’re driving too fast
【单选题】 These two areas are similar __________ they both have a high rainfall during this season.
①  to that
②  besides that
③  in that
④  except that
【单选题】 Success results ___________ hard work, and hard work results in success.
①  from
②  in
③  by
④  with