网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

You are building a dating web site. The client’s date of birth is collected along with lots of other information.You have created an EL function with the signature: calcAge(java.util.Date):int and it is assigned to the name, age, in the namespace, funct. In one of your JSPsyou need to print a special message to clients who are younger than 25.  Which EL code snippet will returntrue for this condition?()

  • A、${calcAge(client.birthDate) < 25}
  • B、${calcAge[client.birthDate] < 25}
  • C、${funct:age(client.birthDate) < 25}
  • D、${funct:age[client.birthDate] < 25}
  • E、${funct:calcAge(client.birthDate) < 25}

参考答案

更多 “ You are building a dating web site. The client’s date of birth is collected along with lots of other information.You have created an EL function with the signature: calcAge(java.util.Date):int and it is assigned to the name, age, in the namespace, funct. In one of your JSPsyou need to print a special message to clients who are younger than 25.  Which EL code snippet will returntrue for this condition?()A、${calcAge(client.birthDate)  25}B、${calcAge[client.birthDate]  25}C、${funct:age(client.birthDate)  25}D、${funct:age[client.birthDate]  25}E、${funct:calcAge(client.birthDate)  25}” 相关考题
考题 With a clear purpose, definite target market, targeted goals, a domain name and a clear structure, you are now ready to begin building the pages for your successful web site.() 此题为判断题(对,错)。

考题 下列程序的输出结果为main (){union u{char *name;int age;int income;}ss.name="WANGLIONG";s.age=28;s.income=1000;printf("%d\n",s.age);}A.28B.1000C.0D.不确定

考题 已知学生记录描述为 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;

考题 给出下列的不完整的类代码,则哪个语句可以被加到横线处? ( ) class Person{ String name,department; int age; public Person(String n){name=n;} public Person(String n,int s){name=n; age=a;} public Person(String n,String d,int a){ department=d;______ } }A.Person(n,a);B.this(Person(n,a));C.this(n,s);D.this(name,age);

考题 Your Web site uses custom Themes. Your Web site must support additional Themes based on the user‘s company name. The company name is set when a user logs on to the Web site. The company‘s Theme name is stored in a variable named ThemeName. You need to use this variable to dynamically set the Web site‘s Theme.What should you do?()A.B.C.D.

考题 有以下程序:includeincludeusingnameSpacestd;classperson{ intage; Char*nam 有以下程序:include <iostream>include <string>using nameSpace std;class person{int age;Char * name;public:person ( int i, Char * str ){int j;j = strlen( str ) + 1;name = new char[ j ];strcpy( name, str );age = i;}~person(){delete name;cout<<"D";}void display(){cout<<name<<":"<<age;}};int main(){person demo( 30,"Smith" );demo.display();return 0;}则该程序的输出结果为:【 】。

考题 Youarebuildingawebapplicationwithaschedulingcomponent.OntheJSP,youneedtoshowthecurrentdate,thedateofthepreviousweek,andthedateofthenextweek.Tohelpyoupresentthisinformation,youhavecreatedthefollowingELfunctionsinthe’d’namespace:name:curDate;signature:java.util.DatecurrentDate()name:addWeek;signature:java.util.DateaddWeek(java.util.Date,int)name:dateString;signature:java.util.StringgetDateString(java.util.Date)WhichELcodesnippetwillgeneratethestringforthepreviousweek?A.${d:dateString(addWeek(curDate(),-1))}B.${d:dateString[addWeek[curDate[],-1]]}C.${d:dateString[d:addWeek[d:curDate[],-1]]}D.${d:dateString(d:addWeek(d:curDate(),-1))}

考题 请使用VC6或使用【答题】菜单打开考生文件夹projl下的工程projl。程序中位于每个“//ERROR****found料****之后的一行语句有错误,请加以改正。改正后程序的输出结果应为: Name:Smith Age:21 ID:99999 CourseNum:12 Record:970 注意:只修改每个“//ERROR****found****”下的那一行,不要改动程序中的其他内容。 includeiostream using namespace std; class Studentlnfo { protected: //ERROR********************found**************** char Name; int Age; int ID: int CourseNum; float Record; public: Studentlnfo(char*name,int Age,int ID,int coumeNum,float record); //ERROR ********************found******************** void~Studentlnfo{} float AverageRecord{ return Record/CourseNum; } void showconst{ cout”Name:”Name”Age:”Age”ID:”ID ”CourseNum:”CourseNum”Record:”Recordendl; } }; //ERROR ******************found************** StudentInfo StudentInfo(char*Name,int Age,int ID,int CourseNum,float Record) { Name=name; Age=age; this一ID=ID: CourseNum=courseNum: Record=record; } int main { Studentlnfo st(’’Smith”,21,99999,12,970); st.show; return 0; }

考题 下列程序的输出结果为 main() { union u {char *name; int age; int income;}s s.name="WANGLIONG"; s.age=28; s.income=1000; printf("%d\n",s.age); }A.28B.1000C.0D.不确定

考题 You are building a dating service web site. Part of the form to submit a client’s profile is a groupIIof radio buttons for the person’s hobbies: 20.Hiking  21.Skiing  22.SCUBA Diving 23. After the user submits this form, a confirmation screen is displayed with these hobbies listed. Assume thatan application-scoped variable, hobbies, holds a map between the Hobby enumerated type and the displayname. Which EL code snippet will display Nth element of the user’s selected hobbies?()A、${hobbies[hobbyEnum[N]}B、${hobbies[paramValues.hobbyEnum[N]]}C、${hobbies[paramValues@’hobbyEnum’@N]}D、${hobbies.get(paramValues.hobbyEnum[N])}E、${hobbies[paramValues.hobbyEnum.get(N)]}

考题 You are building a web application with a scheduling component. On the JSP, you need to show the currentdate, the date of the previous week, and the date of the next week. To help you present this information,you have created the following EL functions in the ’d’ namespace: name: curDate; signature: java.util.DatecurrentDate() name: addWeek; signature: java.util.Date addWeek(java.util.Date, int) name: dateString;signature:java.util.String getDateString(java.util.Date) Which EL code snippet will generate the string for the previousweek?A、${d:dateString(addWeek(curDate(), -1))}B、${d:dateString[addWeek[curDate[], -1]]}C、${d:dateString[d:addWeek[d:curDate[], -1]]}D、${d:dateString(d:addWeek(d:curDate(), -1))}

考题 You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35. Which two EL code snippets will return true for this condition? ()A、${client.age in [25,35]}B、${client.age between [25,35]}C、${client.age between 25 and 35}D、${client.age = 35  client.age = 25}E、${client.age le 35 and client.age ge 25}

考题 Given an EL function foo, in namespace func, that requires a long as a parameter and returns a Map, which two are valid invocations of function foo?()A、 ${func(1)}B、 ${foo:func(4)}C、 ${func:foo(2)}D、 ${foo(5):func}E、 ${func:foo(“easy”)}F、 ${func:foo(“3”).name}

考题 A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()A、 The method invoked by this function must be statie.B、 The function class must implement the Function interface.C、 The expression is NOT a valid EL expression for invoking a function.D、 The function must be declared in a web.xml file using the  element.E、 The function class must have a method with the signature:Void bloof (java.lang.Strings)

考题 Given an EL function declared with:11.  12.spin 13.com.example.Spinner 14. 15.java.lang.String spinIt() 16. 17. Which two are true?()A、The function method must have the signature: public String spin().B、The method must be mapped to the logical name "spin" in the web.xml file.C、The function method must have the signature: public String spinIt().D、The function method must have the signature public static String spin().E、The function method must have the signature: public static String spinIt().F、The function class must be named Spinner, and must be in the package com.example.

考题 You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site. What should you do? ()A、Use the Publish Web tool.B、Use the Copy Web tool.C、Use the command line to XCOPY the files.D、Create a Web Setup project.

考题 You are the administrator of your company’s network. You attempt to install a printer driver on a Windows 2000 Professional computer for a user named Lori. You receive the following error message: ‘CANNOT INSTALL PRINTER DRIVER’. The driver was originally downloaded for the manufacturers web site. You have successfully used the driver on other Windows 2000 Professional computers. You want to configure Lori’s computer to check the driver’s integrity and to allow you to install printer driver. What should you do?()A、Configure driver signing to display a message before installing an unsigned driver.B、Configure driver signing to ignore file signature verification. Create a local computer policy to enable windows file protection.C、Use the Add Printer wizard to install the driver and create a local computer policy to enablewindows file protection.D、Use the printer troubleshooter configures the computer to prevent the installation of unsigned drivers.

考题 You have 10 servers that run Windows Server 2008. The servers have the Web Server (IIS) server role installed. The servers are members of a Web server farm. The servers host the same Web site. You need to configure the servers to meet the following requirements:  Allow changes to the Web server configurations that are made on one server to be made on all servers in the farm.  Minimize administrative effort to perform the configuration changes. What should you do?()A、On all servers, configure the Shared Configuration settings.B、On one server, configure the Shared Configuration setting.C、On one server, create a scheduled task that copies the Intepub folder to the other servers.D、Create a DFS Namespace. On each server configure the Inetpub folder as the target of the DFS Namespace.

考题 You have a server that runs Windows Server 2008. The server has the Web Server (IIS) server role installed.   The server contains a Web site that is configured to use only Windows Authentication. You have a security group named Group1 that contains several user accounts.  You need to prevent the members of Group1 from accessing a Web site. You must not prevent other users from accessing the Web site.  Which Web site feature should you configure?()A、AuthenticationB、Authorization RulesC、IIS Manager PermissionsD、SSL Settings

考题 You work as the IT professional in an international company which is named Wiikigo. You are experiencedin implementing and administering a network operating system. You are specialized in deploying servers,configuring Windows Server 2008 Terminal services and network application services, and configuring aweb services infrastructure. There is a Windows Server 2008 server, and the Web Server (IIS) server roleis installed on the server. Multiple Web sites are hosted by the server. Since you are the technical support,you are required to set the server to make it automatically release memory for a single Web site. What's more, no other Web sites should be impacted. Which action should be performed to achieve the goal?()A、From the Application Pool Defaults, the Recycling options should be changed.B、A new Web site should be created and the bindings should be edited for the Web site.C、A new application pool should be created and the Web site should be associated to the application pool.D、A new virtual directory should be created and the Physical Path Credentials on the virtual directoryshould be changed.

考题 单选题A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()A  The method invoked by this function must be statie.B  The function class must implement the Function interface.C  The expression is NOT a valid EL expression for invoking a function.D  The function must be declared in a web.xml file using the  element.E  The function class must have a method with the signature:Void bloof (java.lang.Strings)

考题 单选题You have 10 servers that run Windows Server 2008. The servers have the Web Server (IIS) server role installed. The servers are members of a Web server farm. The servers host the same Web site. You need to configure the servers to meet the following requirements:  Allow changes to the Web server configurations that are made on one server to be made on all servers in the farm.  Minimize administrative effort to perform the configuration changes. What should you do?()A On all servers, configure the Shared Configuration settings.B On one server, configure the Shared Configuration setting.C On one server, create a scheduled task that copies the Intepub folder to the other servers.D Create a DFS Namespace. On each server configure the Inetpub folder as the target of the DFS Namespace.

考题 多选题Given an EL function declared with:11.  12.spin 13.com.example.Spinner 14. 15.java.lang.String spinIt() 16. 17. Which two are true?()AThe function method must have the signature: public String spin().BThe method must be mapped to the logical name spin in the web.xml file.CThe function method must have the signature: public String spinIt().DThe function method must have the signature public static String spin().EThe function method must have the signature: public static String spinIt().FThe function class must be named Spinner, and must be in the package com.example.

考题 单选题You are building a dating web site. The client’s date of birth is collected along with lots of other information.You have created an EL function with the signature: calcAge(java.util.Date):int and it is assigned to the name, age, in the namespace, funct. In one of your JSPsyou need to print a special message to clients who are younger than 25.  Which EL code snippet will returntrue for this condition?()A ${calcAge(client.birthDate)  25}B ${calcAge[client.birthDate]  25}C ${funct:age(client.birthDate)  25}D ${funct:age[client.birthDate]  25}E ${funct:calcAge(client.birthDate)  25}

考题 单选题有如下定义:struct{  int num;  char name[10];  struct {  int y;  int m;  int d; }birth; }s,*ps=s;以下对内嵌结构体成员的引用形式错误的是(  )。A ps.birth.yB s.birth.yC ps-birth.yD (*ps).birth.y

考题 多选题You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35. Which two EL code snippets will return true for this condition? ()A${client.age in [25,35]}B${client.age between [25,35]}C${client.age between 25 and 35}D${client.age = 35  client.age = 25}E${client.age le 35 and client.age ge 25}