给出程序的运行结果() classPerson{ Stringname; intage; Person(){ System.out.println('Person()'); } voidPerson(){ System.out.println('method()'); } publicvoidtell(){ System.out.println('姓名:'+name+',年龄:'+age); } } publicclassClassTest02{ publicstaticvoidmain(String[]args){ Personperson=newPerson(); person.name='张三'; person.age=30; person.tell(); } }
给出程序的运行结果() classPerson{ Stringname; intage; Person(){ System.out.println('Person()'); } voidPerson(){ System.out.println('method()'); } publicvoidtell(){ System.out.println('姓名:'+name+',年龄:'+age); } } publicclassClassTest02{ publicstaticvoidmain(String[]args){ Personperson=newPerson(); person.name='张三'; person.age=30; person.tell(); } }
【单选题】classPerson{privateinta;publicintchange(intm){returnm;}}publicclassTeacherextendsPerson{publicintb;publicstaticvoidmain(Stringarg[]){Personp=newPerson();Teachert=newTeacher();inti;//pointx}}Whicharesyntacticallyvalidstatementat//pointx? A. i = m; B. i = b; C. i = p.a; D. i = p.change(30);
【单选题】classPerson{privateinta;publicintchange(intm){returnm;}}publicclassTeacherextendsPerson{publicintb;publicstaticvoidmain(Stringarg[]){Personp=newPerson();Teachert=newTeacher();inti;//pointx}}Whicharesyntacticallyvalidstatementat//pointx? A. i = m; B. i = b; C. i = p.a; D. i = p.change(30);
下面代码的输出是什么?() functionPerson(firstName,lastName){ this.firstName=firstName; this.lastName=lastName; } constlydia=newPerson("Lydia","Hallie"); constsarah=Person("Sarah","Smith"); console.log(lydia); console.log(sarah); A: Person{firstName:"Lydia",lastName:"Hallie"}andundefined B: Person{firstName:"Lydia",lastName:"Hallie"}andPerson{firstName:"Sarah",lastName:"Smith"} C: Person{firstName:"Lydia",lastName:"Hallie"}and{} D: Person{firstName:"Lydia",lastName:"Hallie"}andReferenceError
下面代码的输出是什么?() functionPerson(firstName,lastName){ this.firstName=firstName; this.lastName=lastName; } constlydia=newPerson("Lydia","Hallie"); constsarah=Person("Sarah","Smith"); console.log(lydia); console.log(sarah); A: Person{firstName:"Lydia",lastName:"Hallie"}andundefined B: Person{firstName:"Lydia",lastName:"Hallie"}andPerson{firstName:"Sarah",lastName:"Smith"} C: Person{firstName:"Lydia",lastName:"Hallie"}and{} D: Person{firstName:"Lydia",lastName:"Hallie"}andReferenceError
Identify the 5Ws and 1H of the following lead: 10%LOS ANGELES — Starting Monday, Mustafa Habib will take over as host of one oftelevision’s most popular children’s shows, “Yellow Clues,” replacing Jim Crawford, theshow’s host since it started eight years ago.Habib was selected from among hundreds of young actors who auditioned all over thecountry.Crawford said he was leaving the show to move onto other acting jobs. He hasbecome a beloved television celebrity to preschoolers, some of whom have been knownto cry at the news that he is leaving.“I hope kids know I won’t be replacing Jim,” said Habib. “Mustafa is a whole newperson for them to get to know and love.”Identify the 5Ws and 1H:Who:______________________What:_______________________________Where:_______________________________When:____________________________________Why:____________________________________How:_____________________________________
Identify the 5Ws and 1H of the following lead: 10%LOS ANGELES — Starting Monday, Mustafa Habib will take over as host of one oftelevision’s most popular children’s shows, “Yellow Clues,” replacing Jim Crawford, theshow’s host since it started eight years ago.Habib was selected from among hundreds of young actors who auditioned all over thecountry.Crawford said he was leaving the show to move onto other acting jobs. He hasbecome a beloved television celebrity to preschoolers, some of whom have been knownto cry at the news that he is leaving.“I hope kids know I won’t be replacing Jim,” said Habib. “Mustafa is a whole newperson for them to get to know and love.”Identify the 5Ws and 1H:Who:______________________What:_______________________________Where:_______________________________When:____________________________________Why:____________________________________How:_____________________________________