考题
已知职工记录描述如下,structworker{intno;charname[20];charsex;struct{intday;intmonth;intyear;}birth;};structworkerw;设变量w中的“生日”是“1993年10月25日”,下列对“生日”的正确赋值方式是()
A、day=25;month=10;year=1993;B、w.birth.day=25;w.birth.month=10;w.birth.year=1993;C、w.day=25;w.month=10;w.year=1993;D、birth.day=25;birth.month=10;birth.year=1993;
考题
已知学生记录描述为 struct student { int no; char name[20]; char sex; struct { int year; int month; int day; } birth; }; struct student s;变量s中的“生日”应是“1985年4月4日”,下列对“生日”的正确赋值方式是______。A.year=1985;month=4;day=4;B.birth.year=1985;birth.month=4;birth.day=4;C.s.year=1985;s.month=4;s.day=4;D.s.birth.year=1985;s.birth.month=4;s.birth,day=4;
考题
已知学生记录描述为:struct student{ int no;char name[20],sex;struct{ int year,month,day;} birth;};struct student s;设变量s中的"生日"是"1984年11月12日",对"birth"正确赋值的程序段是A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;
考题
已知学生记录描述为: struct student { int no; char name[20],sex; struct { int year,month,day; } birth; }; struct student s; 设变量s中的“生日”是“1984年11月12日”,对“birth”正确赋值的程序段是( )。A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;
考题
在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData(________) throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MONTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)); }A.Employee[]eB.employee.datC.PrintWriter outD.BufferedWriter
考题
在下面附属类方法中的下划线处应填入的正确参数是public void writeData( )throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar,setTime(hireDay); out.println(name+"|" +salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MONTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)):}A.Employee[]eB.employee.datC.PrintWriter outD.BufferedWriter
考题
已知学生记录描述如下,设变量s中的“生日”应是“1984年11月11日”,下列对生日的正确赋值方式是()。 struct student{ int no; char name[20]; char set; struct{ int year; int month; int day; } birth; }; struct student s;A.year=1984;month=11;day=11;B.birth.year=1984; birth.month=11; birth.day=11C.s.year=1984;s.month=11;s.day=11D.s.birth.year=1984;s.birth.month=11; s.birth.day=11;
考题
08110062:已知职工记录描述为: struct workers{ int no; char name[20]; char sex; struct{ int day; int month; int year; }birth; }; struct workers w; 设变量w中的“生日”应是“1993年10月25日”,下列对“生日”的正确赋值方式是()。A.day=25;month=10;year=1993;B.w.day=25;w.month=10;w.year=1993;C.w.birth.day=25;w.birth.month=10;w.birth.year=1993;D.birth.day=25;birth.month=10;birth.year=1993;
考题
下面哪个方法可以获得Calendar实例()A.new Calendar()B.Calendar.getInstance()C.get(Calendar.YEAR))D.get(Calendar.MONTH))
考题
Calendar类中,表示当前日期是星期几的类常量是()。A.Calendar.DAY_OF_WEEKB.Calendar.DAY_OF_WEEK_IN_MONTHC.Calendar.DAY_OF_MONTHD.Calendar.DAY_OF_YEAR