单项选择题

在一个长度为n的线性表中删除一个元素,最坏情况下需要移动的数据元素数目为( )。

A.1
B.n-1
C.n+1
D.n/2
<上一题 目录 下一题>
热门 试题

单项选择题
以下选项中,属于合法语句的是( )。
A.char nm[10]; nm="C Program";
B.char str1[10]="computer",str2[10]; str2=str1;
C.char str[7]="siring!";
D.char sp[]="Hello!";
单项选择题
下列方法中不属于KeyListener接口中方法的是( )。
A.keyPressed(KeyEvent)
B.keyPushed(KeyEvent)
C.keyTyped(KeyEvent)
D.keyReleased(KeyEvent)
相关试题
  • 下面程序输出的结果是什么 ( ) public...
  • 以下程序输出结果为( )。 class test...
  • 有如下程序; public class MethTest s...
  • 下列程序运行后的输出结果是( )。 publ...
  • 下列代码段的输出结果为( )。 public ...