填空题

某二叉树中度为2的结点有18个,则该二叉树中有______个叶子结点。

【参考答案】

S
<上一题 目录 下一题>
热门 试题

单项选择题
在窗体上绘制一个名称为Command1的命令按钮,然后编写如下程序: Option Base 1 Private Sub Commandl_Click() Dim c As Integer,d As Integer d=0 c=6 x=Array(2,4,6,8,10,12) For i=1 To 6 If x(i)>c Then d=d+x(i) c=x(i) Else d=d-c End If Next i Print d End Sub 程序运行后,如果单击命令按钮,则在窗体上输出的内容为
A.10
B.16
C.12
D.20
单项选择题
设有如下程序: Private Sub Command1_Click() Dim C As Integer, d As Integer c=4 d=InputBox(“请输入一个整数”) Do While d>0 If d>c Then c=c+1 End If d=InputBox(“请输入一个整数”) Loop Print c+d End Sub 程序运行后,单击命令按钮,如果在输入对话框中依次输入1、2、3、4、5、6、7、8、 9和0,则输出结果是
A.12
B.11
C.10
D.9
相关试题
  • 关系数据库管理系统能实现的专门关系运算包...
  • 以下语句的输出结果是______。Print...
  • 设有如下程序Private Sub Search(a()A...
  • 设有如下程序Private Sub Form Click(...
  • 在窗体中添加一命令按钮,(其Name属性为Co...