在下面的程序运行时,如果从键盘上输入1298并回车,则输出结果为 [7] 。 # i

题型:填空题

问题:

在下面的程序运行时,如果从键盘上输入1298并回车,则输出结果为 [7] 。 # include <iostream. h>  void main() {int n1, n2;cin>>n2;while (n2!=0) { n1=n2%10; n2=n1/10; cout<<rd<< ","} }

考点:计算机等级考试C++二级C++笔试49
题型:填空题

用括号内所给词的适当形式填空(每空不限一词)。

1. When I saw this photo, I ________ (think) of my uncle.

2. The patient (病人) feels much ________ (well) today.

3. We won't go to the park if it ________ tomorrow. (rain)

4. Do you think Rose is ________ (pretty) of her three sisters?

5. Remember               (not make) much noise in the reading room.

6. My mother cooks very                (taste) meals.

7. We have a great time                (play) softball after school.

8. They were the                (hero) of the World War II.

9. Helen asked ________ (she), "What will I be in the future?"

10. Lin Tao goes to the country to see his grandparents               (two) a month.

题型:填空题

自然数中除了质数就是合数.______.

题型:填空题

[说明]
以下程序的功能是计算三角形、矩形和正方形的面积并输出,程序由5个类组成:AreaTest是主类,类Trianlge、Rectangle和Square分别表示三角形、矩形和正方形,抽象类Figure提供了一个计算面积的抽象方法。
[程序]
public class AreaTest
public static void main(String args [])
Figure [] figures= new Triangle (2,3,3) ,new Rectangle (5,8) ,new Square (5) ;
for (int i=0; 1< figures .length; i++)
System. out .println (figures [i] +"area=" +figures [i]. getArea ());



public abstract class Figure
public abstract double getArea() ;

public class Rectangle extends (1)
double height;
double width;
public Rectangle(double height, double width)
this .height=height;
this.width=width;

public String toString ()
return "Rectangle: height= "+height+" , width= "+width+":";

public double getArea ()
return (2) ;

class Square extends (3)
public Square(double width)
(4) ;

public string toString ()
return "Square: width= "+width+" : " ;


class Triangle extends (5)
double la;
double lb;
double lc;
public Triangle(double la,double lb, double lc)
this.la=la; this.lb=lb; this.lc=lc;

public String toString()
return "Triangle : sides= "+la+" , "+lb+" , " +lc+" : " ;

public double getArea ()
double s= (la+lb+lc)/2.0;
return Math. sqrt (s* (s-la) * (s-lb) * (s-lc)) ;

题型:填空题

生产、生活离不开化学。下列说法不正确的是(  )

A.不需要通过化学反应就能从海水中获得食盐和淡水

B.燃料电池的燃料都在负极发生反应

C.氯气与烧碱溶液或石灰乳反应都能得到含氯消毒剂

D.工业上常用高纯硅制造光导纤维

题型:填空题

横担装在受电侧距杆顶()mm处,横担安装应平直。

A、1000

B、500

C、600

D、800

更多题库