【单选题】student1和student2是两个引用类型变量,Name是其属性值,设student1.Name="xiaoming";student2=student1;在改变student2的姓名之后,即改变student2.Name="xiaohua",请问sutdent1.Name和student2.Name的值分别是?
A.
student1.Name的值是“xiaoming”;student2.Name的值是“xiaoming”
B.
student1.Name的值是“xiaohua”;student2.Name的值是“xiaohua”
C.
student1.Name的值是“xiaoming”;student2.Name的值是“xiaohua”
D.
student1.Name的值是“xiaohua”;student2.Name的值是“xiaoming”
【简答题】句型转换。 1. The student has a cold. (改为同义句) The student _______a_______.= The student _______a_______ 2. I have a stomachache. (改为同义句) I have an _______ _______my stomach. I have a _______ _______my s...
【单选题】在该语句中 Student s1=new Student();谁是对象的名字?
【单选题】若有以下定义,则对变量 student1 中“生日”的正确赋值方式是 ( )。 struct student { int num; char name[20], sex; struct { int year, month, day; } birthday; } ; struct student student1;
A.
student1.birthday.year = 2003; student1.birthday.month = 5; student1.birthday.day = 1;
B.
year = 2003; month = 5; day = 1;
C.
birthday.year = 2003; birthday.month = 5; birthday.day = 1;
D.
student1.year = 2003; student1.month = 5; student1.day = 1;