参考答案和解析
正确答案: Frasier 45, Niles 41, Daphne 33.
解析:
根据题意,分别取其名字的第大写一个字母,可以得出如下的方程式:①F+N=86 ②N+D=74 ③F+D=78由①-②可以得出④F-D=12 由③-④可以得出D等于33,由此可知其他两人的年龄。
更多“问答题The combined age of Frasier and Niles is 86 years.  The combined age of Niles and Daphne is 74 years.  The combined age of Frasier and Daphne is 78 years.  Figure out each person’s age.”相关问题
  • 第1题:

    classMyApp{publicstaticvoidmain(String[]args){intage;System.out.println(age=”+age);}}执行上述代码后输出的结果是哪项?()

    A.age=0

    B.age=null

    C.age=

    D.程序编译错误


    参考答案:D

  • 第2题:

    S(S,SN,SEX,AGE,DEPT)C(C,CN)SC(S,C,GRADE)其中:S为学号,SN为姓名,SEX为性别,AGE为年龄,DEP

    S(S#,SN,SEX,AGE,DEPT) C(C#,CN) SC(S#,C#,GRADE) 其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号, CN为课程名,GRADE为成绩。检索所有比“王华”年龄大的学生姓名、年龄和性别。 正确的SELECT语句是______。

    A.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE FROM S WHERE SN=‘王华’)

    B.SELECT SN,AGE,SEX FROM S WHERE SN=‘王华’

    C.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE WHERE SN=‘王华’)

    D.SELECT SN,AGE,SEX FROM S WHERE AGE>王华 AGE


    正确答案:A
    解析:选项B查询的结果是显示出姓名为王华的学生姓名、年龄、和性别。选项C在嵌套的SELECT语句中缺少必要的短语FROM。选项D格式不正确。

  • 第3题:

    Person p = new Person(“张三”,23);这条语句会调用下列哪个构造方法给属性进行初始化()

    A.public Person(){}

    B.public Person(String name,int age) { this.name = name; this.age = age; }

    C.public Person(int age,String name) { this.age = age; this.name = name; }

    D.public Person(String name) { this.name = name; }


    答案:B
    解析:创建对象时会找到匹配的构造方法给属性进行初始化,由于Person p = new Person(“张三”,23);这条语句中有两个参数,而且第1个参数是String类型的,第2个参数是int类型的,因此会调用B选项中的构造方法。

  • 第4题:

    ——In this day and age, women can have children and jobs as well. ——I can’t agree more. it’s great to have the two .

    A.linked

    B.related

    C.connected

    D.combined


    正确答案:D

  • 第5题:

    An architectural Style defines as a family of such systems in terms of a ( )of structural organization. More specifically an architectural style defines a vocabulary of( ) and connector types, and a set of( )on how they can be combined. For many styles there may also exist one or more ( ) that specify how to determine a system's overall properties from the properties of its parts. Many of architectural styles have been developed over the years. The best-known examples of (请作答此空)architectures are programs written in the Unix shell.

    A.event-based
    B.object-oriented
    C.pipe-and-filter
    D.layered

    答案:C
    解析:

  • 第6题:

    Combined系统液压油箱可以通过什么液压泵增压?

    • A、Combined、Flight液压泵
    • B、Combined、辅助液压泵
    • C、Combined、Flight、Utility液压泵
    • D、Combined、Utility液压泵

    正确答案:D

  • 第7题:

    在Person的一个派生类Employee里调用Person类的构造函数正确方式为()。

    • A、base.Person(name,age)
    • B、base(name,age)
    • C、Person(name,age)
    • D、this(name,age)

    正确答案:B

  • 第8题:

    You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35. Which two EL code snippets will return true for this condition? ()

    • A、${client.age in [25,35]}
    • B、${client.age between [25,35]}
    • C、${client.age between 25 and 35}
    • D、${client.age <= 35 && client.age >= 25}
    • E、${client.age le 35 and client.age ge 25}

    正确答案:D,E

  • 第9题:

    液压系统由下述哪些子系统组成?

    • A、Combined、Flight、辅助系统
    • B、Combined、Flight、Utility
    • C、Combined、Flight、Utility、辅助系统
    • D、Combined、Flight

    正确答案:C

  • 第10题:

    问答题
    The combined ages of Frasier and Niles is 88 years; the combined ages of Niles and Daphne is 76 years; the combined ages of Frasier and Daphne is 80 years. Then, how old is Frasier?

    正确答案: 46 years old.
    解析:
    设Frasier的年龄为X,Niles 的年龄为Y,Daphne的年龄为Z;故可得出方程式如下:
      X+Y=88, Y+Z=76, X+Z=80;求解可得出X=46。

  • 第11题:

    问答题
    An idle youth, a needy age.

    正确答案: 少壮不努力,老大徒伤悲。
    解析: 暂无解析

  • 第12题:

    多选题
    You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35. Which two EL code snippets will return true for this condition? ()
    A

    ${client.age in [25,35]}

    B

    ${client.age between [25,35]}

    C

    ${client.age between 25 and 35}

    D

    ${client.age <= 35 && client.age >= 25}

    E

    ${client.age le 35 and client.age ge 25}


    正确答案: B,D
    解析: 暂无解析

  • 第13题:

    给出下面不完整的类代码,则横线处的语句应该为( )。 class Person { String name,department; int age; public Person (Strings) {name=s;} public Person (String s,int

    A.{name=s;age=a;} public Person (String n,String d,intA){ __________ department=d; } }A)Person (n,A);

    B.this (Person(n,A));

    C.this(n,A);

    D.this(name,age);


    正确答案:C
    解析:本题主要考查在同一个类的不同构造方法中调用该类的其他构造方法需要使用 this(…)的形式,而且必须是在构造方法的第一行调用。这个和普通方法重载调用的方式不同,普通方法可以直接使用方法名加参数来调用,而且调用位置没有限制,因此选项A是不行的,选项B的语法就是错误的,选项D的错误在于在父类型的构造方法被调用前不能引用类的成员。构造方法是一个类对象实例化的开始,因此在构造方法中不能将成员作为参数引用。

  • 第14题:

    根据下面的程序,可以在主程序中使用的合法语句是( )。 include using namespa

    根据下面的程序,可以在主程序中使用的合法语句是( )。 #include <iostream> using namespace std; class Person{ int age; voidtest(){} public: Person(intage){this->age=age;} void ShowAge(){cout<<"the Person's age is",<<age;} }; void main(){ Person wang(23); }

    A.wang.age=45

    B.wang.wang(45)

    C.wang.ShowAge()

    D.wang.test()


    正确答案:C
    解析:ShowAse是类的公有成员,可以由对象访问,其他的为私有成员,类对象不能访问。

  • 第15题:

    检索所有比“王华”年龄大的学生姓名、年龄和性别。正确的SELECT语句是______。

    A.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE FROM S WHERE SN='王华')

    B.SELECT SN,AGE,SEX FROM S WHERE SN='王华'

    C.SELECT SN,AGE, SEX FROM S WHERE AGE>(SELECT AGE WHERE SN='王华')

    D.SELECT SN,AGE,SEX FROM S WHERE AGE>王华 AGE


    正确答案:A

  • 第16题:

    Our ______ sensitivity decreases with age. By age 60, most people have lost 40 percent of their ability to smell and 50 percent of their taste buds.

    A.sensible
    B.senseless
    C.sensitive
    D.sensory

    答案:D
    解析:
    本题考查形容词词义辨析

    D选项,句意:我们的感官能力随着年龄的增长而下降。比如说,到60岁的时候,多数人失去了他们40%的嗅觉能力和50%的味觉能力。sensory意为“感觉的,传递感觉的”,综上,D选项正确。

    A选项,sensible意为“明智的,合情理的”,故排除。

    B选项,senseless意为“失去知觉的,不省人事的”,故排除。

    C选项,sensitive意为“敏感的”,故排除。

    故正确答案为D 项。

  • 第17题:

    An idle youth, a needy age.


    少壮不努力,老大徒伤悲。

  • 第18题:

    public class Person {  private String name, comment;  private int age;  public Person(String n, int a, String c) {  name = n; age = a; comment = c;  }  public boolean equals(Object o) {  if(! (o instanceof Person)) return false;  Person p = (Person)o;  return age == p.age && name.equals(p.name);  }  }  What is the appropriate definition of the hashCode method in class Person?() 

    • A、 return super.hashCode();
    • B、 return name.hashCode() + age * 7;
    • C、 return name.hashCode() + comment.hashCode() /2;
    • D、 return name.hashCode() + comment.hashCode() / 2 - age * 3;

    正确答案:B

  • 第19题:

    Given the uncompleted code of a class:     class Person {  String name, department;     int age;  public Person(String n){  name = n; }  public Person(String n, int a){  name = n;  age = a;  }  public Person(String n, String d, int a) {  // doing the same as two arguments version of constructor     // including assignment name=n,age=a    department = d;     }     }  Which expression can be added at the "doing the same as..." part of the constructor?() 

    • A、 Person(n,a);
    • B、 this(Person(n,a));
    • C、 this(n,a);
    • D、 this(name,age);

    正确答案:C

  • 第20题:

    class MyApp{   public static void main(String[] args){  int age;   System.out.println(“age=”+age);  }  }   执行上述代码后输出的结果是哪项?()  

    • A、age=0
    • B、age=null
    • C、age=
    • D、程序编译错误

    正确答案:D

  • 第21题:

    You are implementing an ASP.NET application. The application includes a Person class with property Age. You add a page in which you get a list of Person objects and display the objects in a GridView control. You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18. Which GridView event should you handle?()

    • A、RowDataBound
    • B、RowCommand
    • C、RowUpdated
    • D、RowEditing

    正确答案:A

  • 第22题:

    问答题
    The combined age of Frasier and Niles is 86 years.  The combined age of Niles and Daphne is 74 years.  The combined age of Frasier and Daphne is 78 years.  Figure out each person’s age.

    正确答案: Frasier 45, Niles 41, Daphne 33.
    解析:
    根据题意,分别取其名字的第大写一个字母,可以得出如下的方程式:①F+N=86 ②N+D=74 ③F+D=78由①-②可以得出④F-D=12 由③-④可以得出D等于33,由此可知其他两人的年龄。

  • 第23题:

    单选题
    在Person的一个派生类Employee里调用Person类的构造函数正确方式为()。
    A

    base.Person(name,age)

    B

    base(name,age)

    C

    Person(name,age)

    D

    this(name,age)


    正确答案: A
    解析: 暂无解析

  • 第24题:

    单选题
    public class Person {  private String name, comment;  private int age;  public Person(String n, int a, String c) {  name = n; age = a; comment = c;  }  public boolean equals(Object o) {  if(! (o instanceof Person)) return false;  Person p = (Person)o;  return age == p.age && name.equals(p.name);  }  }  What is the appropriate definition of the hashCode method in class Person?()
    A

     return super.hashCode();

    B

     return name.hashCode() + age * 7;

    C

     return name.hashCode() + comment.hashCode() /2;

    D

     return name.hashCode() + comment.hashCode() / 2 - age * 3;


    正确答案: D
    解析: 暂无解析