12. Date date = new Date(); 13. df.setLocale(Locale.ITALY); 14. String s = df.format(date); The variable df is an object of type DateFormat that has been initialized in line 11. What is the result if this code is run on December 14, 2000?()
第1题:
查询十天前的记录应使用( )作为准则。
A.Between Date() And Date()-10
B.<Date()-10
C.>Date()-10
D.Between Date()-10 And Date()
第2题:
A. SUM(start_date)
B. AVG(start_date)
C. COUNT(start_date)
D. AVG(start_date, end_date)
E. MIN(start_date)
F. MAXIMUM(start_date)
第3题:
A、the date of record
B、the date of payment
C、the date of announcement
D、the date of declaration
第4题:
设有如下变量声明: Dim Test Date AS Date 为变量Test Date正确赋值的表达式是( )。
A.Test Date=#1/1/2002#
B.TestDate#"1/1/2002"#
C.Test Date=date("1/1/2002")
D.Test Date=Format("m/d/yy","1/1/2002")
第5题:
有以下程序: class Date { public: Date(int y,int m,int D) ; { year =y; month=m; day=d; } Date(int y=2000) { year=y; month=10; day=1; } Date(Date &D) { year=d.year; month=d.month; day=d.day; } void print () { cout<<year<<"."<<month<<"."<<day<<end1; } private: int year,month,day; }; Date fun(Date D) { Date temp; temp=d; return temp; } int main() { Date date1(2000,1,1),date2(0,0,0); Date date3(date1); date2=fun(date3); return 0; } 程序执行时,Date类的拷贝构造函数被调用的次数是
A.2
B.3
C.4
D.5
第6题:
有以下程序:
class Date
{
public:
Date(int y,int m,int d);
{
year=y;
month=m
day=d;
}
Date(int y=2000)
{
year=y;
month=10;
day=1;
}
Date(Date &d)
{
year=d.year;
month=d.month;
day=d.day;
}
void print( )
{
cout<<year<<"."<<month<<"."<<day<<endl;
}
private:
int year,month,day;
};
Date fun(Date d)
{
Date temp;
temp=d;
return temp;
}
int main( )
{
Date datel(2000,1,1),date2(0,0,0);
Date date3(datel);
date2=fun(date3);
return 0;
}
程序执行时,Date类的拷贝构造函数被调用的次数是
A.2
B.3
C.4
D.5
第7题:
查询十天前的记录应使用( )作为准则。
A.Between Date( )And Date( )-10
B.<Date( )-10
C.>Date( )-10
D.Between Date( )-10 And Date( )
第8题:
查询最近30天的记录应使用( )作为准则。
A.Between Date()And Date()-30
B.Between Date()-30 And Date()
C.<=Date()-30
D.<Date()-30
第9题:
在VFP的命令窗口中进行日期的设置,要求以MM-DD-YY形式显示日期“11-15- 05”,应使用命令(57)。
A.SET DATE TO MDY ? DATE()&&显示"11-15-05"
B.SET DATE TO MDY DATE( )&& ,显示" 11 - 15 -05"
C.SET DATE TO MDY ? DATE( )显示" 11 - 15 -05"
D.SET DATE TO MDY ? DATE( )显示" 11 - 15 - 05"
第10题:
查询最近30天的记录应俄用( )作为准则
A. Between Date(1 And Date0—30
B. Between Date一30 And Date
C. <=Date-30
D. <Date0-30