网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

请看以下FOR循环语句:SQL>DECLAREV-iINT:=1;V-factorialINT:=1;BEGINFORv_iINl..10LOOPV_factorial:=V_factorial+v_i:ENDLOOP;END;/V_factorial的结果是()。

  • A、36
  • B、45
  • C、55
  • D、56

参考答案

更多 “请看以下FOR循环语句:SQLDECLAREV-iINT:=1;V-factorialINT:=1;BEGINFORv_iINl..10LOOPV_factorial:=V_factorial+v_i:ENDLOOP;END;/V_factorial的结果是()。A、36B、45C、55D、56” 相关考题
考题 执行以下程序,输出结果的最后一行语句是______。 include class Sample { int x,y; 执行以下程序,输出结果的最后一行语句是______。include <iostream.h>class Sample{int x,y;public:Sample(){x=y=0;}Sample(int a,int b){x=a;y=b;}~Sample(){if(x==y)cout<<"x!=y"<<end1;elsecout<<"x!=y"<<end1;}void disp(){cout<<"x="<<x<<",y="<<y<<end1;}};void main(){Sample s1(2,3);s1.disp();}

考题 以下程序段的输出结果是[ ]。 include void ref(int i); void main(){int val=1 以下程序段的输出结果是 [ ] 。include<iostream.h>void ref(int i);void main(){int val=1;cout<<“旧值:”<<val<<end1;ref(val);cout<<”新值:”<<val<<end1;}void ref(int i){i=10;}

考题 语句:print sgn(-6^2)+Abs(-6^2)+int(-6^2)的输出结果是( )A.-36B.1C.-1D.-7252967.以下语句a=sqr(3)print format(a,####.###)的输出结果是( )A.1.732B. 0001.732C.###1.732D. 1.7320

考题 执行下列语句段后程序的输出结果是______。int x[]={1,2,3,4,5};int q=x;cout*(++q)<<end1;

考题 以下语句输出结果是( )。 Private Sub Form_Click() A="Beijing" b="ShangHai" Print a;b End Sub A. Beijing ShangHaiB. AbeijingShangHaiC. BeijingShangHaiD. Abeijing

考题 以下程序段的输出结果是( )。int x = 5;do {cout<<x--<<end1;}while(!x);A.5B.无任何输出C.4D.陷入死循环

考题 以下程序的输出结果是【】。 includevoid main(){ char cha[3][5]={"AAAA","BBBB","CC 以下程序的输出结果是【 】。include<iostream. h>void main(){char cha[3][5]={"AAAA","BBBB","CC"];cout<<cha[1]<<end1;}

考题 若有以下变量定义和函数调用语句: int a=5; fun(a); 则执行下面函数后正确的输出结果是( )。 void fun(int*x) { cout<<++*x<<end1; }A.3B.4C.5D.6

考题 假设X的值是5,则执行以下语句时,可得到的输出结果是ABCDEF的Select Case语句是 ( )A.Select Case X Case 10 To 1 Print“ABCDEF” End SelectB.Select Case X Case Is>15,Is<5 Print"ABCDEF" End SelectC.Selecl Case K Case Is>5,1,3,To 10 Print"ABCDEF" End SelectD.Select Case X Case 1,3,Is>5 Print"ABCDEF" End Select

考题 以下程序的执行结果是______。 include class A{ int a: public: void seta(int x) { 以下程序的执行结果是______。include<iostream.h>class A{int a:public:void seta(int x) {a=x;}void showa() {cout<<a<<end1;}};class B{int b;public:void setb(int x) {b=x;}void showb(){cout<<b<<end1;}};

考题 执行以下语句后的输出结果是______。int x=3,y=0;printf("%d,%d”,-1>x>-101y> 执行以下语句后的输出结果是______。 int x=3,y=0; printf("%d,%d”,-1>x>-101<x<10,-1>y>-101<y<10);A.1 2B.1 1C.1 2D.2 2

考题 请看以下存储过程beginbegin语句1exceptionwhen othersdbms_output.put_line('错误1');end;begin语句2dbms_output.putline('错误2');end;exceptionwhen others thendbms_output.put_line("错误3");end;请问,当语句1,语句2出错时,该存储过程输出字符串分别是什么?

考题 以下语句错误的是A.If a=1 And b=2 Then C=3 End IfB.If a=1 Then C=2 Else If a=2 Then C=2 End IfC.If a=1 Then C=3 End IfD.If a=1 Then C=2 Else If a=2 Then C=2 End If End If

考题 语句cout<<setprecision (3)<<3.1415926<<end1;的输出为【 】。

考题 第三题:请看如下代码%TestString="Test"TestATestBResponse.write TestStringSub TestA()TestString="TestA"End SubSub TestB()Dim TestStringTestString="TestB"End Sub%这段代码执行后,运行结果是什么?并解释一下为什么?

考题 以下语句正确的是:______。A.Select Case a Case b=1 Case “B” b=2 Case Else b=3 End SelectB.Select Case a Case “A” b=1 Case “B” b=2 Case Default b=3 End SelectC.Switch a Case “A” b=1 Case “B” b=2 Case Else b=3 End SwitchD.Switch a Case “A” b=1 Case “B” b=2 Case Default b=3 End Select

考题 以下语句的输出结果是______。 Private Sub Command1_Click() x=10 y=1 Print x+y=101; End SubA.11B.101C.110D.False

考题 以下语句错误的是A.If a=1 And b=2 Then C=3 End lfB.If a=1 Then C=2 Else lf a=2 Then C=2 End lfC.If a=1 Then C=3 End IfD.If a=1 Then C=2E1se If a=2 Then C=2 End lf Eud If

考题 在while 表达式, 语句体, End 循环语句中,表达式的值()时表示循环条件为真,语句体将被执行,否则跳出该循环语句。

考题 下面()不是oracle程序设计中的循环语句。A、for…end forB、loop…end loopC、while…end loopD、For…end loop

考题 IF„;„;END;IF;是()。(华中系统)A、赋值语句B、条件判别语句C、循环语句D、无条件转移语句

考题 錾子经热处理后切削部分的硬度达到().A、HRC25~35B、HRC35~45C、HRC45~55D、HRC56~62

考题 下列对条件语句、分支语句、固定循环次数语句、不定循环次数语句关键字排序正确的是()A、if elseend;for end;switch case end;while end;B、if elseend;switch case end;for end;while end;C、for end;if else end;while end;switch case end;D、while end;for end;switch case end;if else end;

考题 语句PrintAbs(6^2)+Int(-3.6^2)的输出结果是()A、-36B、1C、-1D、23

考题 循环结束结束时要用END语句。

考题 填空题在while 表达式, 语句体, End 循环语句中,表达式的值()时表示循环条件为真,语句体将被执行,否则跳出该循环语句。

考题 单选题下列对条件语句、分支语句、固定循环次数语句、不定循环次数语句关键字排序正确的是()A if elseend;for end;switch case end;while end;B if elseend;switch case end;for end;while end;C for end;if else end;while end;switch case end;D while end;for end;switch case end;if else end;