更多“What a cold day! It ’s ________ day for a walk. ”相关问题
  • 第1题:

    英式标准的日期写法应为()

    A、day-month-year

    B、mouth-day-year

    C、year-month-day

    D、year-day-month


    参考答案:A

  • 第2题:

    给定日期DD,可以计算该日期当月最大天数的正确表达式是( )。

    A.Day(DD)

    B.Day(DateSerial(Year(DD), Month(DD), day(DD)))

    C.Day(DateSerial(Year(DD), Month(DD), 0))

    D.Day(DateSerial(Year(DD), Month(DD)+1, 0))


    正确答案:D

  • 第3题:

    已知学生记录描述如下,设变量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=11

    C.s.year=1984;s.month=11;s.day=11

    D.s.birth.year=1984;s.birth.month=11; s.birth.day=11;


    s.birth.year=1984;s.birth.month=11; s.birth.day=11;

  • 第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;


    正确答案:D
    解析:本题考查结构体变量的基本概念。引用结构体成员的方式为:结构体变量名.成员名“.”是“成员运算符”(分量运算符),如果成员本身又是一个结构体类型,则要用若干个成员运算符,一级一级地找到最低一级的成员。只能对最低级的成员进行赋值或存取以及运算,所以选项D)正确。

  • 第5题:

    Calendar类中,表示当前日期是星期几的类常量是()。

    A.Calendar.DAY_OF_YEAR

    B.Calendar.DAY_OF_MONTH

    C.Calendar.DAY_OF_WEEK_IN_MONTH

    D.Calendar.DAY_OF_WEEK


    Calendar.DAY_OF_WEEK

  • 第6题:

    Calendar类中,表示当前日期是星期几的类常量是()。

    A.Calendar.DAY_OF_WEEK

    B.Calendar.DAY_OF_WEEK_IN_MONTH

    C.Calendar.DAY_OF_MONTH

    D.Calendar.DAY_OF_YEAR


    Calendar.DAY_OF_WEEK