-->
当前位置:首页 > 题库

题库 第6108页

  • 最新
  • 浏览
  • 评论

单选题:以下说法中正确的是?

Luz5年前 (2021-05-10)1625
以下说法中正确的是? @[C](2)A. 一个类一定会有无参构造函数B. 构造函数的返回值类型是voidC. 一个类只能定义一个析构函数,但可以定义多个构造函数D. 一个类只能定义一个构造函数,但可以定义多个析构函数A.一个类一定会有无…

单选题:以下关于 this指针的说法中不正确是?

Luz5年前 (2021-05-10)2385
以下关于 this指针的说法中不正确是? @[A](2)A. const成员函数内部不可以使用this指针B. 成员函数内的this指针,指向成员函数所作用的对象C. 在构造函数内部可以使用this指针D. 在析构函数内部可以使用thi…

单选题:以下说法不正确的是(假设在公有派生情况)?

Luz5年前 (2021-05-10)2500
以下说法不正确的是(假设在公有派生情况)? @[A](2)A. 可以将基类对象赋值给派生类对象B. 可以将派生类对象的地址赋值给基类指针C. 可以将派生类对象赋值给基类的引用D. 可以将派生类对象赋值给基类对象A.可以将基类对象赋值给派…

单选题:以下说法正确的是?

Luz5年前 (2021-05-10)1451
以下说法正确的是? @[B](2)A. 在虚函数中不能使用this指针B. 在构造函数中调用虚函数,不是动态联编C. 抽象类的成员函数都是纯虚函数D. 构造函数和析构函数都不能是虚函数A.在虚函数中不能使用this指针B.在构造函数中调…

单选题:Given input { 321, 156, 57, 46, 28, 7, 331, 33, 34, 63 }. Which

Luz5年前 (2021-05-10)1253
Given input { 321, 156, 57, 46, 28, 7, 331, 33, 34, 63 }. Which one of the following is the result after the 2nd run of…

单选题:Given an integer sequence 25、84、21、47、15、27、68、35、20, after the

Luz5年前 (2021-05-10)1335
Given an integer sequence 25、84、21、47、15、27、68、35、20, after the Heapsort's initial heap building, this interger sequenc…

单选题:假设有以下类A,下面程序片段,哪个是不正确的?

Luz5年前 (2021-05-10)2695
假设有以下类A,下面程序片段,哪个是不正确的? @[D](2)```class A{ public: int func(int a){return a*a;}};``` A. `A a;a.func(5);`B. `A *p=n…

单选题:以下对类A的定义,哪个是正确的?

Luz5年前 (2021-05-10)3143
以下对类A的定义,哪个是正确的? @[B](2)A. `class A{ private:int v; public:void fun(){}}`B. `class A{ int v; A * next; void fun(){}};…

单选题:If keys are pushed onto a stack in the order { 1, 2, 3, 4, 5} ,

Luz5年前 (2021-05-10)1086
If keys are pushed onto a stack in the order { 1, 2, 3, 4, 5} , then in the following sequence, the legal output sequenc…

单选题:If keys are pushed onto a stack in the order **abcdef**, then it

Luz5年前 (2021-05-10)1001
If keys are pushed onto a stack in the order **abcdef**, then it's impossible to obtain the output sequence ( ). @[D]…