填空题
某二叉树由5个度为2的结点以及3个度为1的结点,则该二叉树中共有 【1】 个结点。
【参考答案】
N
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是() public class FindKeyWords{ public static void main(sring[] args){ sting text= “ An array is a data structur that stores a collection of” + “values of the same type . You access each individual value” + “through an integer index . For example,if a is an array” + “of inergers, then a[i] is the ith integer in the array.”; Int arrayCount =0; Int idex = -1; Sting arrarStr =”array”; Index = text.indexof(arrayStr); While(index 0) { ++arrayCount; Index += arrayStr.length(); Index = text.indexof(arrayStr,index); } System.out.println (“the text contains” + arrayCount + “arrays”); } }
A.<
B.=
C.<=
D.>=
点击查看答案&解析
单项选择题
在下列程序的空白处,应填入的正确选项是() import java.io.*; Public class writeInt{ Public static void main(string[ ] a) { Int[ ] myArray = {10,20,30,40}; try{ DataOutputSystem dos= new DataOutputSystem (new FileOutputSystem(“ints.dat”)); for (int i=0;I dos。writeInt(myArray[i]); dos._____ System.out.println (“Have written binary file ints.dat”); } Catch(IOException ioe) { System.out.println(“IO Exception”); } } }
A.start( )
B.close( )
C.read( )
D.write( )
点击查看答案&解析
相关试题
抛出异常的语句是 【15】 语句。
表达式(10*49.3)的类型是 【14...
代码System.out.println(066)的输出...
请在下列程序的空白处,填上适当的内容: ...
Swing中用来表示工具栏的类是 javax.swin...