Which of the following is TRUE according to the text?
A.The author thinks that voucher program is more of a curse than a blessing.
B.The U. S Supreme Court will not support voucher program.
C.Parents will have no choice but send their children to religious schools if they join in the voucher program.
D.Voucher program is still a controversial issue in legal and political areas.
第1题
为完成下面的程序,应在划线处填入的语句是()。 #include <iostream> using namespace std; class Base { private: int x; public: Base(int i) { x=i; } ~Base(){} }; class Derived : public Base { public: _______________ //完成类Derive构造函数的定义 }; int main() { Derived Obj; return 0; }
A.Derived(int i):Base(i){}
B.Derived(){}
C.voidDerived(int i):Base(0){}
D.Derived(int i){Base(i);}
第2题
为使该程序执行结果为10,那么应该在程序划线处填入的语句是()。 #include<iostream> using namespace std; class MyClass { public: MyClass (int a) { x=a; } ___________ //取x值 private: int x; }; int main() { MyClass my(10); cout<<my.GetNum()<<end1; return 0; }
A.return x;
B.int GetNum(){ return x;}
C.intreturn x;
D.void GetNum(){return x;}
第3题
应在下列程序画线处填入的正确语句是 ()。 #include <iostream> using namespace std; clas Base { public: void fun() { cout<<"Base::fun"<<end1; } }; class Derived : public Base { void fun() { ________________//显示调用基类的函数 fun() cout<<"Derived::fun"<<end1; } };
A.fun();
B.Base.fun();
C.Base::fun();
D.Base->fun();
第4题
为使程序的输出结果为: Base:: fun 那么应在下列程序画线处填入的正确语句是()。 #include <iostream> using namespace std; class Base { public: void fun () { cout<<"Base: :fun"<<end1; } }; class Derived : public Base { public: void fun () { cout<<"Derived: :fun"<<end1; } }; int main () { Base a,*pb; Derived b; _________; pb->fun(); //调用基类的成员函数 fun() return 0 ; }
A.pb=&a
B.pb=b
C.pb=&b
D.pb=&Base
第5题
在下面的程序的横线处填上适当的语句,使该程序的输出结果为12。
include<iostream>
using namespace std;
class TestClass
{
public:
int a,b;
TestClass(int i,int j)
{
a=i;
b=j;
}
};
class TestCla
第6题
下列程序中划线处正确的语句是()。 # include <iostream> using namespace std; class Base { public: void fun(){cout<<"Base:: fun" <<endl;} }; class Derived:public Base { void fun() { ______ ∥显式调用基类的函数fun() cout<<"D
A.fun();
B.Base.fun();
C.Base::fun();
D.Base- >fun();
第7题
在下列程序画线处填入的正确语句是()。 #include <iostream> using namespace std; class Base { public: void fun() { cout<<"Base::fun",<<end1; } }; class Derived:public Base { void fun() { ______________ //显式调
A.fun();
B.Base.fun();
C.Base::fun();
D.Base->fun();
第8题
第9题
下列程序中划线处正确的语句是()。#include <iostream>using namespace std;class Base{public:void fun() { cout<<"Base:: fun"<<end1; }};class Derived: public Base{ void fun() { _______________________ //显试调用基类的函数 fun() cout <<"Derived:: fun"<<end1;};
A.fun();
B.Base. fun();
C.Base:: fun();
D.Base->fun();
第10题
A.Base.fun();
B.Base::fun();
C.Base->fun();
D.fun();
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!