已知有下面过程: Private Sub proc1(a As Integer,b As String,Optional x As Boolean) ...... End Sub 正确调用此过程的语句是______。A.Call procl(5)B.Call procl 5,"abc",FalseC.procl(12,"abc",True)D.procl 5,"abc"

题目

已知有下面过程: Private Sub proc1(a As Integer,b As String,Optional x As Boolean) ...... End Sub 正确调用此过程的语句是______。

A.Call procl(5)

B.Call procl 5,"abc",False

C.procl(12,"abc",True)

D.procl 5,"abc"


相似考题
更多“已知有下面过程:Private Sub proc1(a As Integer,b As String,Optional x As Boolean) ......End ”相关问题
  • 第1题:

    已知中序后序求前序

    procedure Solve(mid,post:string);

    var i:integer;


    正确答案:

     

    begin
    if (mid='''') or (post='''') then exit;
    i:=pos(post[length(post)],mid);
    pre:=pre+post[length(post)]; {加上根,递归结束后pre即为前序遍历}
    solve(copy(mid,1,I-1),copy(post,1,I-1));
    solve(copy(mid,I+1,length(mid)-I),copy(post,I,length(post)-i));
    end;

  • 第2题:

    下面程序中错误之处是 ______。 include classA{private:intxl;protected:intx2;publ

    下面程序中错误之处是 ______。

    include<iostream.h>

    class A{

    private:

    int xl;

    protected:

    int x2;

    public:

    int x3;

    };

    class B: public A{

    private:

    int b1;

    protected:

    int b2;

    public:

    int b3;

    void disp(){cout<<x1<<b2<<end1;} //A

    void set(int i){x3=i;} //B

    };

    void main()

    B bb;

    bb. a3=10 //C

    bb. b3=10 //D

    }


    正确答案:√
    1

  • 第3题:

    下面说法不正确的是:()

    A.PHP有4种标量类型:布尔型(boolean)、整型(integer)、浮点型(float)、字符串(string)

    B.浮点型(float)与双精度型(double)是同一种类型

    C.复合类型包括:数组(array)、对象(object)、资源(resource)

    D.数字型(number)、回调(callback)


    ABC

  • 第4题:

    已知前序后序求中序的一种

    function ok(s1,s2:string):boolean;

    var i,l:integer; p:boolean;


    正确答案:

     

    begin
    ok:=true;
    l:=length(s1);
    for i:=1 to l do begin
    p:=false;
    for j:=1 to l do
    if s1[i]=s2[j] then p:=true;
    if not p then begin ok:=false;exit;end;
    end;
    end;

    procedure solve(pre,post:string);
    var i:integer;
    begin
    if (pre='''') or (post='''') then exit;
    i:=0;
    repeat
    inc(i);
    until ok(copy(pre,2,i),copy(post,1,i));
    solve(copy(pre,2,i),copy(post,1,i));
    midstr:=midstr+pre[1];
    solve(copy(pre,i+2,length(pre)-i-1),copy(post,i+1,length(post)-i-1));
    end;

  • 第5题:

    有以下程序:include include using namespace std;class Y;class X{private

    有以下程序: #include <iostream> #include <string> using namespace std; class Y; class X { private: int x; char *strx; public: X(int a, char *str) { x=a; strx=new char[strlen(str)+1]; strcpy(strx,str); } void show(Y &ob) ; }; class Y { private: int y; char *stry; public: Y(int b,char *str) { y=b; stry=new char[strlen(str)+1]; strcpy(stry, str); } friend void X: :show(Y &ob) ; }; void X: :show(Y &ob) { cout<<strx<<", "; cout<<ob, stry<<end1; } int main ( ) { X a(10,"X"); Y b (20, "Y"); a. show(B) ; return 0; } 执行后的输出结果是( )。

    A.X,Y

    B.a,b

    C.X,X

    D.Y,Y


    正确答案:A
    解析:本题考核类的定义和友元函数的应用。①该程序中,类X的成员函数show()在类Y中说明为友元,因此,在该友元成员show()中可以访问类Y的私有成员stry。②成员函数show()的功能就是输出类X的私有成员strx和Y对象ob的私有成员stry,③主函数main()中定义了X类的一个对象a和Y类的一个对象b,并且都进行了初始化。然后调用对象a的成员函数show,输出对象a中私有成员strx中的内容和对象b中私有成员stry中的内容,即字符串stringX和stringY。

  • 第6题:

    11、下面哪些定义是类型正确的?

    A.f :: (Integer, Integer) -> Float f (x,y) = x / y

    B.f :: (Integer, Integer) -> Float f (x,y) = (fromInteger x) / (fromInteger y)

    C.f :: (Integer, Integer) -> Float f (x,y) = 3*x + y

    D.f :: (Integer, Integer) -> Integer f (x, y) = 3*x + y


    AFT 通常由含有一个双氢呋喃环和一个氧杂萘邻酮(香豆素)的基本架构单位构成 AFT 分为 黄曲霉毒素B1(AFB1)、黄曲霉毒素 B2 (AFB2) 黄曲霉毒素G1(AFG1)、黄曲霉毒素 G2(AFG2) 黄曲霉毒素M1(AFM1)、黄曲霉毒素 M2(AFM2) B1、G1的呋喃环氢键异构。M1型氢键变为羟基。 1比2呋喃环上多了一个双键。