创建一个对象obj,该对象包含一个名为"name"的属性,其值为"value"。以下哪一段JavaScript代码无法得到上述的结果?()
第1题:
以下程序的执行结果为( )。 #include<iostream.h> class myClass { Dublic: myClass(int data) ; myClass(){value=0; }; myClass(myClass &obj); void print(){ cout<<value<<end1; } ~myClass(){} private: int value; }; myClass::myClass(int data) {value=data; } myClass::myClass(myClass &Obj) { value=obj.value; } void main() { myClass a(100); myClass b(a) ; b.print(); }
A.0
B.100
C.10
D.程序编译时出错
第2题:
在HTML页面中,定义了如下的Javascript函数,则正确调用该函数的HTML代码是() function compute(op){ alert(op); }
第3题:
在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()。
第4题:
在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()
第5题:
表单元素重置按钮的代码为()。
第6题:
表单元素一般按钮的代码为()。
第7题:
Which HttpSession method stores an object in a session?()
第8题:
${requestScope[’priority’] = ’medium’}
<c:set var=priority value=medium />
<c:set var=priority scope=request>medium</c:set>
<c:set var=priority value=medium scope=request />
第9题:
〈input name=“mybutton” type=“button” onBlur=“compute()” value=“计算”〉
〈input name=“mybutton” type=“button” onFocus=“compute()” value=“计算”〉
〈input name=“mybutton” type=“button” onClick=“functioncompute()” value=“计算”〉
〈input name=“mybutton” type=“button” onClick=“compute()” value=“计算”〉
第10题:
MyClass. Property
obj. Property
TestClass. Property
obj. Property()
第11题:
<c:set var=’order’ property=’shipAddress’value=’${client.homeAddress}’ />
<c:set target=’${order}’ property=’shipAddress’value=’${client.homeAddress}’ />
<jsp:setProperty name=’${order}’ property=’shipAddress’ value=’${client.homeAddress}’ />
<c:set var=’order’ property=’shipAddress’><jsp:getProperty name=’client’ property=’homeAddress’ /> </c:store>
<c:set target=’${order}’ property=’shipAddress’><jsp:getProperty name=’client’ property=’homeAddress’ /> </c:set>
第12题:
( 难度:中等)以下哪条语句会产生运行错误:( )
A.var obj = ( );
B.var obj = [ ];
C.var obj = { };
D.var obj = / /;
答案:A
第13题:
设有如下代码:
interface IFace{}
class CFace implements IFace{}
class Base{}
public class ObRef extends Base{
public static void main(String argv[]){
ObRef bj = new ObRef();
Base b = new Base();
Object obj1 = new Object();
IFace obj2 = new CFace();
//Here
}
}
则在 //Here处插入哪个代码将不出现编译和运行错误。
A.obj1=obj2;
B.b=obj;
C.obj=b;
D.obj1=b;
第14题:
创建一个对象obj,该对象包含一个名为"name"的属性,其值为"value"。以下哪一段JavaScript代码无法得到上述的结果()
第15题:
以下为一段浏览器中可运行的Javascript代码,则运行该段Javascript代码的页面弹出框中显示的结果是:() 1 var obj = {"key":"1","value":"2"}; 2 var newObj = obj; 3 newObj.value += obj.key; 4 alert(obj.value);
第16题:
void waitForSignal() { Object obj = new Object(); synchronized (Thread.currentThread()) { obj.wait(); obj.notify(); } } Which is true?()
第17题:
以下装箱、拆箱语句中,错误的有()
第18题:
In a JSP-centric shopping cart application, you need to move a client’s home address of the Customerobject into the shipping address of the Order object. The address data is stored in a value object classcalled Address with properties for: street address, city, province, country, and postal code. Which two JSPcode snippets can be used to accomplish this goal?()
第19题:
var obj=new Object();obj[name]=value;
var obj=new Object();obj.prototype.name=value;
var obj={name:value};
var obj=new function(){this.name=value;}
第20题:
object obj=100; int m=(int)obj;
object obj=100; int m=obj;
object obj=(int)100; int m=(int)obj;
object obj=(object)100; int m=(int)obj;
第21题:
This code may throw an InterruptedException.
This code may throw an IllegalStateException.
This code may throw a TimeoutException after ten minutes.
This code will not compile unless “obj.wait()” is replaced with “((Thread) obj).wait()”.
Reversing the order of obj.wait() and obj.notify() may cause this method to complete normally.
A call to notify() or notifyAll() from another thread may cause this method to complete normally.
第22题:
put(String name. Object value)
set(String name. Object value)
setAttribute(String name. Object value)
putAttribute(String name. Object value)
addAttribute(String name. Object value)
第23题:
var obj = new Object();obj[name] = value;
var obj = new Object();obj.prototype.name = value;
var obj = {name : value};
var obj = new function() { this.name = value;}