当前位置:编程学习 > C#/ASP.NET >>

某家 强企业面试题,看你能不能答出

QUESTION NO: 1 
Your are creating an ASP.NET application for an insurance company. Customers will use the application to file claim forms online.  You plan to deploy the application over multiple servers. You want to save session state information to optimize performance. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.) 
中文: 如果要把程序部署在多个服务器,你要保存session状态来优化执行,以下那两种方法能实现? 
A. Modify the Web.config file to support StateServer mode.  修改Web.config支持StateServer模式 
B. Modify the Web.config file to support SQLServer mode. 
C. Modify the Web.config file to support InProc mode. 
D. In the Session_Start procedure in the Global.asax file, set the EnableSession property of the WebMethod attribute to true. 
E. In the Session_Start procedure in the Global.asax file, set the Description property of the WebMethod attribute to sessionState. 


QUESTION NO: 2 
You are creating an ASP.NET application that will display facts about the solar system.    This application will support localization for users from France, Germany, Japan, and the United States. To see information about a particular planet, the user will select the planet from a drop-down list box on SolarSystem.aspx. You want to display the planet names in the drop-down list box in the language appropriate to the individual who is using the application. What should you do? 
中文: 如果有一个关于太阳系的系统程序支持不同的用户,来自法国,日本,美国。为了看特定的行星,用户将从一个下拉框中选择行星,你要显示那行星的名字在下拉框并且要用该用户的语言。你会怎么样做? 
A. Create a database table named Planets. Create three column named PlanetID, LocaleID, and Description. Use SqlCommand.ExecuteReader to query the table for the locale specified in the request. Using the locale specified in the request, translate the values by using the TextInfo.OEMCodePage property. Populate the drop-down list box with the translated text. 
B. Create a DataTable object named Planets. Populate the Planets DataTable object by using string constants. Using the locale specified in the request, translate the values by using a UnicodeEncoding object. Bind the DataSource property of the drop-down list box to the DataTable object. 
C. Create a database table named Planets. Create two columns named PlanetID and Description. Use a SqlDataAdapter to load the planet information into a DataSet object.    Using the locale specified in the request, use the String format provider to translate the values. Bind the DataSource property of the drop-down list box to the DataSet.DefaultView object. 
D. Create string resources assemblies for each locale. Using the locale specified in the request, use a ResourceManager to load the appropriate assembly. Populate an array with the string values from the assembly. Bind the DataSource property of the drop-down list box to the array. 


QUESTION NO: 3 
You are a software developer at Gsoft You develop a contact management application that will enable users to retrieve information from a central database named GsoftSales.  After the data is returned to your application, users must be able to view it, edit it, add new records, and delete existing records. All user changes must then be saved in the database. Your application design requires several ADO.NET object to work together to accomplish these requirements. You use classes from the System.Data and System.Data.OleDb namespaces. First you write the code to connect to the database. 
Which four actions should you take next? (Each correct answer presents part of the solution. Choose four). 
中文:  如果你开发一个通讯录管理程序使用用户能寻回信息从一个中心数据库名GsoftSales,在那数据返回到你的程序,用户必顺能见它,编辑它,和添加新的记录。 
所有用户操作必顺保存在数据库,你的程序设计需要几个ADO.NET对象工作在一起来完成这些需求。你从System.Data使用类和System.Data.OleDb命名空间。 
首先你写连接数据库的代码。你下一步将要做那些,请选择四个? 
A. Create an OleDbDataAdapter object and define the SelectCommand property. 
B. Create an OleDbCommand object and use the ExecuteScalar method. 
C. Create a DataTable object as container for the data. 
D. Create a DataSet object as a container for the data. 
E. Call the DataAdapter.Fill method to populate the DataSet object. 
F. Call the DataAdapter.Update method to populate the DataSet object. 
G. Call the DataAdapter.Update method to save changes to the database. 
H. Call the DataSet.AcceptChanges method to save changes to the database. 
--------------------编程问答-------------------- 挺有难度。等待学习一下 --------------------编程问答-------------------- 武汉地区招聘.NET程序员,有中级证的2000-3000,高级证的3000-5000,具体视能力来定。
联系电话:02787138803 --------------------编程问答-------------------- 这题我见过,别的就不想多说了。 --------------------编程问答-------------------- 没人能答上啊??? --------------------编程问答-------------------- 为了生存,我们还得努力? --------------------编程问答-------------------- 兄弟,怎么又发一样的帖子,答案又不贴出来
1.b,d 
2.d 
3.a.d.e.g
补充:.NET技术 ,  其他语言
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,