2
2.5
32/2
16
第1题:
以下程序段的执行结果为【 】。
include<iostream.h>
define PLUS(x, y) x+ y
void main()
{
int x=1, y=2,z=3,sum;
sum=PLUS(x+ y, z)*PLUS(y, z);
cout<<"SUM="<<sum;
cout<<end1;
}
第2题:
下面程序的输出结果是 ( ) main( ) {int x,y,z; x=0;y=z=-1; x+=-z - - -y printf("x=%d\n",x); }
A.x=4
B.x=0
C.x=2
D.x=3
第3题:
下面程序的输出结果是 ( )
main( )
{ int x,y,z;
x=0,y=z=-1;
x+=-z- - -y;
pritnf("x=%d\n",x);
}
A.x=4
B.x=0
C.x=2
D.x=3
第4题:
我们可以在下列哪个HTML元素中放置javascript代码?()
第5题:
第6题:
单击一次窗体之后,下列程序代码的执行结果为______。 Private Sub Command1_ Click() Dim x As Integer, y As Integer, z As Integer x = 1: y = 2: z = 3 Call fun1 (x, y, z) Print x; y; z Call fun2(x, y, z) Print x; y; z End Sub Private Sub fun1(x As Integer, y As Integer, z As Integer) x = 10 * z y=z*z+ x z=x+ y+ z End Sub Private Sub fun2 (ByVal x As Integer, ByVal y As Integer, ByVal z As Integer) x=10*z y=z*z+ x z=x+ y +z End Sub
A.1 2 3 30 39 72
B.1 2 3 1 2 3
C.30 39 72 1 2 3
D.30 39 72 30 39 72
第7题:
下面程序运行的结果是______。 main() { int x,y,z; x=0;y=z=-1; x+=-z---y; printf("x=%d\n",x); }
A.x=4
B.x=0
C.x=2
D.x=3
第8题:
Totakeadvantageofthecapabilitiesofmodernbrowsersthatusewebstandards,suchasXHTMLandCSS,yourwebapplicationisbeingconvertedfromsimpleJSPpagestoJSPDocumentformat.However,oneofyourJSPs,/scripts/screenFunctions.jsp,generatesaJavaScriptfile.Thisfileisincludedinseveralwebformstocreatescreen-specificvalidationfunctionsandareincludedinthesepageswiththefollowingstatement:
10.<head>
11.<scriptsrc=‘/scripts/screenFunctions.jsp‘
12.language=‘javascript‘
13.type=‘application/javascript‘></script>
14.</head>
15.<!--bodyofthewebform-->
WhichJSPcodesnippetdeclaresthatthisJSPDocumentisaJavaScriptfile?()
第9题:
第10题:
Javascript中, 以下代码运行后变量y的值是:() var x = [‘abcde’ , 123456]; var y = typeof typeof x[1];