题库 第5988页
单选题:下列关于构造函数的描述中,错误的是()
下列关于构造函数的描述中,错误的是() @[B](2)A. 构造函数名与类名相同B. 构造函数可以有返回值C. 构造函数可以重载D. 每个类都有构造函数A.构造函数名与类名相同B.构造函数可以有返回值C.构造函数可以重载D.每个类都有构…
单选题:Determine the displaying of the following program:
Determine the displaying of the following program: @[C](1)A.…
单选题:Determine the displaying of the following program:
Determine the displaying of the following program: @[D](1)A.…
单选题:Determine the displaying of the following program:
Determine the displaying of the following program: @[A](1)A.…
单选题:Determine the displaying of the following program:
Determine the displaying of the following program: @[B](1)A.…
单选题:The output of this program is ( ).
The output of this program is ( ).```#define add(a,b) (a+b)int main(){ printf("%d\n",5*add(3,4)); return 0;}``` @[…
单选题:无向图的邻接矩阵是一个\_\_\_\_。
无向图的邻接矩阵是一个\_\_\_\_。 @[A](2)A. 对称矩阵B. 零矩阵C. 上三角矩阵D. 对角矩阵A.对称矩阵B.零矩阵C.上三角矩阵D.对角矩阵答案:A…
单选题:带权有向图G用邻接矩阵A存储,则顶点i的入度等于A中\_\_\_\_。
带权有向图G用邻接矩阵A存储,则顶点i的入度等于A中\_\_\_\_。 @[D](2)A. 第i行非∞的元素之和B. 第i列非∞的元素之和C. 第i行非∞且非0的元素个数D. 第i列非∞且非0的元素个数A.第i行非∞的元素之和B.第i…
单选题:具有6个顶点的无向图至少应有\_\_\_\_条边才可能是一个连通图。
具有6个顶点的无向图至少应有\_\_\_\_条边才可能是一个连通图。 @[A](2)A. 5B. 6C. 7D. 8A.5B.6C.7D.8答案:A…
单选题:一个有n个顶点的无向图最多有\_\_\_\_条边。
一个有n个顶点的无向图最多有\_\_\_\_条边。 @[C](2)A. nB. n(n-1)C. n(n-1)/2D. 2nA.nB.n(n-1)C.n(n-1)/2D.2n答案:C…