填空题

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

【参考答案】

n+1
<上一题 目录 下一题>
热门 试题

填空题
软件定义时期主要包括______和需求分析两个阶段。
单项选择题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Dim SW As Boolean Function func(X As Integer)As Integer If X<20 Then Y=X Else Y=20+X End If func=Y End Function Private Sub Form_MouseDown(Button As Integer,_Shift As Integer,X As Single,Y As Single) SW=False End Sub Private Sub Form_MouseUp(Button As Integer,_Shift As Integer,X As Single,Y As Single) SW=True End Sub Private Sub Command1_Click() Dim intNum As Integer intNum=InputBox( ) If SW Then Print func(intNum) End If End Sub 程序运行后,单击命令按钮,将显示一个输入对话框,如果在对话框中输入25,则程序的执行结果为
A.输出0
B.输出25
C.输出45
D.无任何输出
相关试题
  • Exit for
  • j<=i
  • 在一个窗体上有一个命令按钮CmdMax。单击Cm...
  • 在3种不同类型的组合框中,只能选择而不能...
  • 执行如下程序段后,intsum的值为_____...