题库 第6112页
单选题:Insert {20, 25, 13, 22, 4, 9, 29, 35, 14, 17} one by one into an
Insert {20, 25, 13, 22, 4, 9, 29, 35, 14, 17} one by one into an initially empty hash table of size 13 with the hash fun…
单选题:Suppose that the range of a hash table is [0, 16], and the hash
Suppose that the range of a hash table is [0, 16], and the hash function is H(Key)=Key%13. If linear probing is used to…
单选题:The array representation of the disjoint sets is given by { 3, 1
The array representation of the disjoint sets is given by { 3, 1, -5, 2, 1, -3, -1, 6, 6 }. Keep in mind that the elemen…
单选题:The array representation of the disjoint sets is given by { 4, 1
The array representation of the disjoint sets is given by { 4, 1, 2, -5, 1, -3, 9, -1, 6 }. Keep in mind that the elemen…
单选题:一般函数与一个类的友元函数不同的是,一般函数只能够访问该类的?
一般函数与一个类的友元函数不同的是,一般函数只能够访问该类的? @[B](2)A. 所有成员B. 公有成员C. 私有成员D. 保护成员A.所有成员B.公有成员C.私有成员D.保护成员答案:B…
单选题:在类体内说明友元使用的关键字是?
在类体内说明友元使用的关键字是? @[B](2)A. virtualB. friendC. inlineD. staticA.virtualB.friendC.inlineD.static答案:B…
单选题:友元的作用是?
友元的作用是? @[A](2)A. 提高程序的运用效率B. 加强类的封装性C. 实现数据的隐藏性D. 增加成员函数的种类A.提高程序的运用效率B.加强类的封装性C.实现数据的隐藏性D.增加成员函数的种类答案:A…
单选题:已知类 A 是类 B 的友元,类 B 是类 C 的友元,下列说法正确的是?
已知类 A 是类 B 的友元,类 B 是类 C 的友元,下列说法正确的是? @[D](2)A. 类A的成员函数能访问类C的私有成员B. C 一定是类 A 的友元C. C 的成员函数可以访问类 B 的对象的任何成员D. A 的成员函数可以…
单选题:关于友元函数的描述中,错误的是?
关于友元函数的描述中,错误的是? @[B](2)A. 友元函数不是成员函数B. 友元函数必须在类体内定义C. 友元函数可以访问类的私有数据成员D. 友元函数破坏了类的封装A.友元函数不是成员函数B.友元函数必须在类体内定义C.友元函数可…
单选题:已知森林 $$F$$ 及与之对应的二叉树 $$T$$,若 $$F$$ 的先根遍历序列是 a, b, c, d, e, f,后根遍
已知森林 $$F$$ 及与之对应的二叉树 $$T$$,若 $$F$$ 的先根遍历序列是 a, b, c, d, e, f,后根遍历序列是 b, a, d, f, e, c,则 $$T$$ 的后序遍历序列是:@[C](2)A. b, a, d…