题库 第6188页
单选题:将{2, 10, 8, 7, 0, 6, 9, 12}插入一棵初始为空的2-3树(用简单分裂解决溢出),然后再删除8。则下列关于
将{2, 10, 8, 7, 0, 6, 9, 12}插入一棵初始为空的2-3树(用简单分裂解决溢出),然后再删除8。则下列关于结果树的陈述中哪句是错的? @[B](2)A. 包含 9 的结点的父节点有3个孩子B. 共有4个叶结点C. 根结…
单选题:以下代码的输出结果为( )。
以下代码的输出结果为( )。 @[C](2) public class Pass{ static int j = 20; public void amethod(int x){…
单选题:编译和运行下列程序会出现什么样的结果( )。
编译和运行下列程序会出现什么样的结果( )。 @[A](2) public class Ref { public static void main(String[] args){…
单选题:阅读下列程序,其功能是()。
阅读下列程序,其功能是()。 @[A](4)```typedef struct {ElemType *list;int size;intMaxSize;}SeqList;void fun1(SeqList&L) {inti, j;Ele…
单选题:已知A、B和C为3个元素递增有序的顺序表,且同一个表中元素值各不相同,下列算法对A做如下操作:删除那些既在表B又在表C中出现的元
已知A、B和C为3个元素递增有序的顺序表,且同一个表中元素值各不相同,下列算法对A做如下操作:删除那些既在表B又在表C中出现的元素。请将该算法补充完整。 @[B](4)```typedef struct {ElemType *list;…
单选题:当应用下列嵌入样式表到文档时,“第一段”和“第二段”字体大小为()。
当应用下列嵌入样式表到文档时,“第一段”和“第二段”字体大小为()。 <style> p.class1{font-size:12pt;}…
单选题:若有下面的语句:
若有下面的语句: @[D](2)```C++vector v;for (int i = 0; i ˂ 4; i++) v.push_back(i + 1);cout ˂˂ v.size() ˂˂ endl;```则执行后程序的输出…
单选题:下面关于类的继承与派生的程序,其输出结果是
下面关于类的继承与派生的程序,其输出结果是 @[C](4)```C++#includeusing namespace std;class A {public: A(int i) { x = i; } void dispa…
单选题:The following code fragment for the wait() semaphore operation i
The following code fragment for the wait() semaphore operation is from the textbook:@[B](1)```wait(S) : S.value--; if…
单选题:Given code below:
Given code below:```JAVA Set s = new HashSet(); s.add(1); s.add(2); s.add(1);```Which statement below is correct? @[A](…