Animal is a super-ordinate term, while cow, horse, pig, dog, cat, etc. are().
第1题:
A.Objecto=newDog();
B.Animala=newDog();
C.Objectd=(Dog)newAnimal()
D.Animala=(Animal)newDog();
第2题:
A、every cat is lucky
B、every dog has its day
C、every cat has its day
D、every dog is fortunate
第3题:
设有以下说明和定义:typedef union{ long i;int k[5];char c; } DATE;struct date{ int cat;DATE cow;double dog; }too;DATE max;则下列语句的执行结果是______。printf("%d",sizeof (struct date) +sizeof(max));
A.26
B.30
C.18
D.8
第4题:
When the pig asked a dog, the dog ________ .
A. said nothing B. said the pig was the most important
C. said the pig was as important as the horse
第5题:
What’s the best title of this passage?__________ .
A. A pig and a cow B. A farm C. The most important animal
第6题:
Animal is a super-ordinate term, while cow, horse, pig, dog, cat, etc. are().
hyponyms
略
第7题:
在Java中,类Animal中的方法printA()定义如下: public void printA() { Int a=10; Int result =10%3; System.out.println(result); } 在类Dog中方法printA()定义如下: public void printA() { Int a=10; System.out.println(a/3); } Dog类的定义如下: Class Dog extends Animal{…}. Animal animal=new Dog(); animal.printA(); 以上语句输出结果为()。
第8题:
class Animal{ Animal getOne(){return new Animal();}} class Dog extends Animal{ //insert code here } class AnimalTest{ public static void main(String[] args){ Animal[] animal={ new Animal(), new Dog()}; for(Animal a:animal){ Animal x= a.getOne(); } } } 和代码: 3a.Dog getOne() { return new Dog();} 3b.Animal getOne() { return new Dog();} 第3行中插入的哪项编译且运行无异常?
第9题:
public class Pet{ public void speak(){ System.out.print(“ Pet ”); } } public class Cat extends Pet{ public void speak(){ System.out.print(“ Cat ”); } } public class Dog extends Pet{ public void speak(){ System.out.print(“ Dog ”); } } 执行代码 Pet[] p = {new Cat(),new Dog(),new Pet()}; for(int i=0;i〈p.length;i++) p[i].speak(); 后输出的内容是哪项?()
第10题:
Cat is-a Jumper
Cat is-a Animal
Dog is-a Jumper
Dog is-a Animal
Beagle has-a Jumper
Cat has-a Animal
Beagle has-a Tail
第11题:
第12题:
Cat is-a Animal
Cat is-a Jumper
Dog is-a Animal
Dog is-a Jumper
Cat has-a Animal
Beagle has-a Tail
Beagle has-a Jumper
第13题:
A.Cat is-a Animal
B.Cat is-a Jumper
C.Dog is-a Animal
D.Dog is-a Jumper
E.Cat has-a Animal
F.Beagle has-a Tail
G.Beagle has-a Jumper
第14题:
设有以下说明和定义:
typedef union {long i; int k[5]; char c;} DATE;
struct data { int cat; DATE cow; double dog;} too;
DATE max;
则语句 printf("%d",sizeof(struct date)+sizeof(max));的执行结果是:___52____
第15题:
B
Good evening, ladies and gentlemen, I’m Roy , and this is my show. This is a television show for all families, and I know you’ll enjoy it.
Let’s start with a story. Once there was a proud pig on a farm . He thought he was the most important of all the animals on the farm. But it was not enough that he himself thought this: he had to be sure that other animals thought it, too. So he went up to a chicken and asked, “ Who is the most important animal on the farm?” The chicken answered, “ You are, Mr. Pig .” Then he asked a dog, and he got the same reply.
Next, he asked a cow. When the cow seemed uncertained of the right answer, the pig looked angry, and showed his teeth, “ Oh, you are, of course, Mr. Pig.” said the cow. “ Of course, ” the pig said, “ there is no doubt about it. ”
At last the pig asked a big horse the same question. The horse lifted one foot, rolled the pig over and placed his foot on the pig’s head. “ I think you know the answer now. ” said the horse.
61. The Roy show is _________ .
A. a family show on TV B. for kids only C. a sports show
第16题:
The horse thought ________ was the most important on the farm.
A. he himself B. the pig C. the cow
第17题:
According to the passage we can see that Chinese people think of the pig as a ______animal.
A. clever
B. rich
C. good
D. all the above
32.答案为D 通过第一段...Pigs in Chinese culture is a sign of kindness and generosity得知中国人对猪积极的评价,选D。
第18题:
classCatextendsAnimal{}对于下述代码说法正确的是()
第19题:
10. interface Jumper { public void jump(); } ...... 20. class Animal {} ...... 30. class Dog extends Animal { 31. Tail tail; 32. } ...... 40. class Beagle extends Dog implements Jumper { 41. public void jump() { } 42. } ....... 50. class Cat implements Jumper { 51. public void jump() { } 52. } Which three are true?()
第20题:
11. class Animal { public String noise() { return “peep”; } } 12. class Dog extends Animal { 13. public String noise() { return “bark”; } 14. } 15. class Cat extends Animal { 16. public String noise() { return “meow”; } 17. } ..... 30. Animal animal = new Dog(); 31. Cat cat = (Cat)animal; 32. System.out.printIn(cat.noise()); What is the result?()
第21题:
1. class Animal { Animal getOne() { return new Animal(); } } 2. class Dog extends Animal { 3. // insert code here 4. } 5. 6. class AnimalTest { 7. public static void main(String [] args) { 8. Animal [] animal = { new Animal(), new Dog() } ; 9. for( Animal a : animal) { 10. Animal x = a.getOne(); 11. } 12. } 13. } 和代码: 3a. Dog getOne() { return new Dog(); } 3b. Animal getOne() { return new Dog(); } 第 3 行中插入的哪项将编译且运行无异常?()
第22题:
chasing
following
catching
fighting
第23题:
peep
bark
meow
Compilation fails.
An exception is thrown at runtime.
第24题:
Pet Pet Pet
Cat Cat Cat
Cat Dog Pet
Cat Dog Dog