【单选题】【消耗次数:1】
为AB类的一个无形式参数无返回值的方法method书写方法头,使得使用类名AB作为前缀就可以调用它,该方法头的形式为( )。
static void method( )
public void method( )
final void method( )
abstract void method( )
参考答案:
复制
纠错
相关题目
【单选题】 为AB类的一个无形式参数无返回值的方法method书写方法头,使得使用类名AB作为前缀就可以调用它,该方法头的形式为( )。
①  static void method( )
②  public void method( )
③  final void method( )
④  abstract void method( )
【单选题】 为 AB 类定义一个无返回值的方法 f,使得使用类名就可以访问该方法,该方法头的 形式为( )。
①  abstract void (f )
②  public void (f )
③  final void (f )
④  static void (f )
【单选题】 下面哪个函数是public void method(){ }的重载函数?( )
①  public void method( int m){ }
②  public int method(){ }
③  public void method2(){ }
④  public int method(int m,float f ){ }
【单选题】 若在某一个类定义中定义有如下的方法:abstract void performDial( );该方法属于( )。
①  接口方法
②  最终方法
③  抽象方法
④  空方法
【单选题】 Which of the following is not grammar presentation method?
①  Deductive method
②  Inductive method
③  Guided discovery method
④  Communicative teaching method.
【单选题】 有以下方法的定义,请选择该方法的返回类型( )。 ReturnType method(byte x, double y) { return (short)x/y*2; }
①  byte
②  short
③  int
④  double
【单选题】 Which of the following steps are typical for the deductive grammar teaching method?
①  Give examples→explain rules→students do practice activities
②  Authentic language data is provided→induces learners to realize grammar rules→apply the new structure to produce sentences (the inductive method)
③  Explicit rules are give to students→Authentic language data is provided→apply the new structure to produce sentences (the guided discovery method)
④  All of the above.
【单选题】 What are the characteristics of audio-lingual method?
①  Language is learned by constant repetition and the reinforcement of the teacher
②  Mistakes were immediately corrected, and correct utterances were immediately praised
③  Students should be allowed to create their own sentences based on their understanding of certain rules
④  Both A and B.
【单选题】 Which of the following teaching method is based on the behaviorist theory?
①  Grammar translation
②  Audio-lingual
③  Task-based teaching and learning
④  Communicative teaching.
【单选题】 A sudden idea ____ to him that he might try the new method.
①  occurred
②  happened
③  took place
④  took part
随机题目
【判断题】 顺序存储方式的优点是存储密度大,且插入、删除运算效率高。
①  正确
②  错误
【判断题】 在线性表的顺序存储结构中,逻辑上相邻的两个元素但是在物理位置上不一定是相邻的。
①  正确
②  错误
【判断题】 链表的物理存储结构具有同链表一样的顺序。
①  正确
②  错误
【判断题】 顺序存储方式只能用于存储线性结构。
①  正确
②  错误
【单选题】 在顺序表中,只要知道( ),就可在相同时间内求出任一结点的存储地址。
①  基地址
②  结点大小
③  向量大小
④  基地址和结点大小
【单选题】 线性表采用链式存储时,其地址( )。
①  必须是连续的
②  一定是不连续的
③  部分地址必须是连续的
④  连续与否均可以
【单选题】 在一个具有n个结点的有序单链表中插入一个新结点并保持该表有序的时间复杂度是( )。
①  O(1)
②  O(n)
③  O(n的平方)
④  O(log2n)
【单选题】 以下关于线性表的说法不正确的是( )。
①  线性表中的数据元素可以是数字、字符、记录等不同类型。
②  线性表中包含的数据元素个数不是任意的。
③  线性表中的每个结点都有且只有一个直接前趋和直接后继。
④  存在这样的线性表:表中各结点都没有直接前趋和直接后继。
【单选题】 在一个长度为n的顺序表中删除第i个元素(0<=i<=n)时,需向前移动( )个元素。
①  n-i
②  n-i+l
③  n-i-1
④  i
【单选题】 在一个单链表中,已知q结点是p结点的前趋结点,若在q和p之间插入s结点,则须执行( )。
①  s->next=p->next; p->next=s
②  q->next=s; s->next=p
③  p->next=s->next; s->next=p
④  p->next=s; s->next=q