The car won't start because the battery has______-_.A. run downB. run overC. run outD. run off

题目

The car won't start because the battery has______-_.

A. run down

B. run over

C. run out

D. run off


相似考题
更多“The car won't start because the battery has______-_. A. run down B. run over C. ”相关问题
  • 第1题:

    已经声明了类“publicclassthimplementsrunnable”,下面哪条语句可以启动该类型的线程_________?

    A.Tht=newTh();t.start();

    B.newTh.start();

    C.Threadt=newThread(newTh());t.start();

    D.Tht=newTh();t.run();


    正确答案:C

  • 第2题:

    如果类实现了Runnable接口,类必须包含的方法是( )。

    A.start()、stop()和run()

    B.actionPerformed()

    C.run()

    D.start()、stop()


    正确答案:C
    解析:本题考查线程机制。任何实现 Runnable接口的对象都可以作为一个线程的目标对象,类Thread本身也实现了接口 Runnable,可以通过下面两种方法实现线程体。①定义一个线程类,该类继承Thread类并重写其中的run()方法,初始化这个类的实例时,目标对象target可为null,将实例对象用来执行线程体。由于Java只支持单重继承,用这种方法定义的类不能再继承其他父类。②提供一个实现Runnable接口的类作为线程的目标对象,初始化一个Thread类或者 Thread子类的线程对象时,把目标对象传递给该线程对象,由目标对象提供线程体 run(),用这种方法定义的类可以继承其他父类。

  • 第3题:

    以下哪个方法用来定义线程的执行体?

    A.start()

    B.init()

    C.run() run()

    D.main()


    run()

  • 第4题:

    WhichmethodintheThreadclassisusedtocreateandlaunchanewthreadofexecution?()

    A. Run();

    B. Start();

    C. Execute();

    D. Run(Runnable r);

    E. Start(Runnable r);

    F. Execute(Thread t);


    参考答案:B

  • 第5题:

    当一个线程t调用start后,即Threadtest t=new Threadtest().start,下面哪种描述是正确的 ()

    A.该t线程立即开始执行run方法

    B.该t线程执行完了run方法

    C.该t线程处于不可运行状态,没有执行run方法

    D.该t线程处于可运行状态,还没有执行run方法


    该t线程处于可运行状态,还没有执行run方法

  • 第6题:

    设计一个交通工具类Vehicle,包含的数据成员有车轮个数wheels和车重weight。以及带有这两个参数的构造方法,具有Run方法,Run中方法输出running字样。小车类Car是它的子类,其中增加了数据成员车载人数passenger_load。Car类中有带参数的构造方法,重写Run方法:输出Car is running。并重写ToString()方法:显示car中信息(显示车轮数、车重、车载人数)。最后编写主方法,定义car的对象,并调用Run方法,以及显示car中信息。


    enum V_Type {RIVER,LAND,AIR};class Vehicle{private: V_Type kind;public: Vehicle(V_Type k) { kind = k; } void display() { if(kind == LAND) cout else if(kind == RIVER) cout else cout }};class Wheels{private: int num; double radias;public: Wheels(int n,double r) { num = n; radias = r; } void display() { cout }};class Car: public Vehicle{private: int passangers; double gas; Wheels wh;public: Car(V_Type k,int n,double r,int pass,double g):Vehicle(k),wh(n,r) { passangers = pass; gas = g; } void display() { Vehicle::display(); wh.display(); cout }};void startmove(Vehicle &v){ v.display();}int main(){ Vehicle v(LAND); v.display(); Car c(LAND,4,5.6,4,1.8); c.display(); startmove(v); startmove(c); return 0;}