当前位置:首页
> Luz 第6041页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论单选题:一个栈的入栈序列是a,b,c,d,e,则出栈序列不可能是( )。
一个栈的入栈序列是a,b,c,d,e,则出栈序列不可能是( )。 @[C](2)A. e,d,c,b,aB. d,e,c,b,aC. d,c,e,a,bD. a,b,c,d,eA.e,d,c,b,aB.d,e,c,b,aC.d,c…
单选题:若已知一个栈的入栈序列是1,2,3,…,n,其输出序列为p1,p2,p3,…,pn,若p1=n,则pi为( )。
若已知一个栈的入栈序列是1,2,3,…,n,其输出序列为p1,p2,p3,…,pn,若p1=n,则pi为( )。 @[C](2)A. iB. n-iC. n-i+1D. 不确定A.iB.n-iC.n-i+1D.不确定答案:C…
单选题:What will happen to access an invalid index of an array?
What will happen to access an invalid index of an array? @[B](2)A. Program terminated. B. Exception thrown. C. System c…
单选题:Which one below is NOT correct to declare a variable of array?
Which one below is NOT correct to declare a variable of array? @[D](2)A. int[] a B. int a[] C. int[][] a D. int[]a[]A.i…
单选题:Which statement below is NOT correct?
Which statement below is NOT correct? @[C](2)A. A thread is an instance of Thread class.B. A thread runs the run() met…
单选题:About AWT and Swing, which statement below is correct?
About AWT and Swing, which statement below is correct? @[D](2)A. Swing is a subset of AWT.B. AWT displays the same am…
单选题:To make `method( -4.4 ) == -4` successful, which method of `java
To make `method( -4.4 ) == -4` successful, which method of `java.lang.Math` should be used? @[A](2)A. round() B. min() C…
单选题:Which expression below is for generating a random number of [20,
Which expression below is for generating a random number of [20,999]? @[B](2)A. `(int)(20+Math.random()*979) `B. `20+(i…
单选题:设循环队列中数组的下标范围是0—n-1,其头尾指针分别为f和r,头指针f总是指向队头元素,尾指针r总是指向队尾元素的下一个位置,
设循环队列中数组的下标范围是0—n-1,其头尾指针分别为f和r,头指针f总是指向队头元素,尾指针r总是指向队尾元素的下一个位置,则其元素的个数为( )。 @[D](2)A. r-fB. r-f+1C. (r-f)%n+1D. (r…
单选题:设循环队列中数组的下标范围是0—n-1,其头尾指针分别为f和r,头指针f总是指向队头元素,尾指针r总是指向队尾元素的下一个位置,
设循环队列中数组的下标范围是0—n-1,其头尾指针分别为f和r,头指针f总是指向队头元素,尾指针r总是指向队尾元素的下一个位置,则队满的条件是( )。 @[B](2)A. r==fB. (r+1)%n==fC. r+1==fD.…