填空题
某二叉树中度为2的结点有18个,则该二叉树中有()个叶子结点。
【参考答案】
S
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
在窗体上画一个名称为Commandl的命令按钮,然后编写如下程序: 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 Phvate Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) SW=False End Sub Phvate Sub Form_MouseUp(BuRon As Integer,Shin As Integer,X As Single,Y As Single) SW=Tree End Sub Pdvate Sub Commandl-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.无任何输出
点击查看答案&解析
单项选择题
在窗体上画一个名称为Commandl的命令按钮和一个名称为Text1的文本框,在文本框中输入以下字符串:Microsoft Visual Basic Programming 然后编写如下事件过程: Private Sub Commandl_Click() Open d: temp outf,txt For Ouput As #1 For i=1 To Len(Text1.Text) c=Mid(Text1.Text,i,1) If c>= A And C<= Z Then Print #1,LCase(C) End If Next i Close End Sub 程序运行后,单击命令按钮,文件outf.txt中的内容是()。
A.MVBP
B.mvbp
C.M
D.m V V B b P p
点击查看答案&解析
相关试题
在名称为Forml的窗体上画一个文本框,其名...
设有如下程序: Option Base 1 Privat...
设有如下程序: Private Sub Form_Clic...
阅读下面的程序: Private Sub Form_Cl...
问题处理方案的正确而完整的描述称为()。