16. Date d = new Date(0L); 17. String ds = “December 15, 2004”; 18. // insert code here What updates d‟s value with the date represented by ds?()
第1题:
查询十天前的记录应使用( )作为准则。
A.Between Date() And Date()-10
B.<Date()-10
C.>Date()-10
D.Between Date()-10 And Date()
第2题:
YouarecreatinganonlinecatalogapplicationthatwilldisplayproductinformationonthecompanyWebsite.TheproductdataisstoredinaSQLServer2005database.ThedataisstoredasrelationaldatabutmustbepassedtotheapplicationasanXMLdocumentbyusingFORXML.YoutestyourapplicationandnoticethatnotalloftheitemsmatchingyourqueryappearintheXMLdocument.Onlythoseproductsthathavevaluesforallelementsintheschemaappear.
YouneedtomodifyyourTransact-SQLstatementsothatallproductsmatchingyourqueryappearintheXMLdocument.
Whatshouldyoudo?()
第3题:
A、the date of record
B、the date of payment
C、the date of announcement
D、the date of declaration
第4题:
有以下程序: 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
第5题:
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)
第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.df=newDateFormat();
B.df=Date.getFormatter();
C.df=date.getFormatter();
D.df=date.getDateFormatter();
E.df=DateFormat.getDateInstance();
F.df=DateFormat.getInstance();
第8题:
查询最近30天的记录应使用( )作为准则。
A.Between Date()And Date()-30
B.Between Date()-30 And Date()
C.<=Date()-30
D.<Date()-30
第9题:
查询十天前的记录应使用( )作为准则。
A.Between Date( )And Date( )-10
B.<Date( )-10
C.>Date( )-10
D.Between Date( )-10 And Date( )
第10题:
设有如下变量声明: 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")