题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-11-05 05:01:16

[单项选择] You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the.. You need to ensure that users cannot tab out of the name field without entering data What should you do ?()
A.  Validate the name field in the CellValidating event. Set e.Cancel = true if the name field is
B.  Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..
C.  Validate the name field in the CellEnter event. Set the focus on the name field if the name ...
D.  Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...

更多"You are developing a Windows Forms "的相关试题:

[单项选择] You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the.. You need to ensure that users cannot tab out of the name field without entering data What should you do ?()
A.  Validate the name field in the CellValidating event. Set e.Cancel = true if the name field is
B.  Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..
C.  Validate the name field in the CellEnter event. Set the focus on the name field if the name ...
D.  Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...
[多项选择]You are developing an application that connects to a Microsoft SQL Server database using the SqlConnection object. Your connection objects are being pooled. As the pool fills up, connection requests are queued. Some connection requests are rejected. You need to ensure that the application releases connections back to the pool as soon as possible. Also, you need to decrease the likelihood that connection requests will be rejected. Which three actions should you perform?()
A. Ensure that the Close method is called on each connection object after it has finished executing.
B. Ensure that each connection object is left open after it has finished executing.
C. Increase the Max Pool Size value inside the connection string.
D. Increase the Min Pool Size value inside the connection string.
E. Increase the Connection Lifetime value inside the connection string.
F. Increase the value of the ConnectionTimeout property of the SqlConnection object.
[单项选择] You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service. Which hosting environment should you choose? ()
A. Microsoft Internet Information Services (IIS) 6.0
B. Windows Process Activation Services (WAS)
C. A Windows Forms application
D. A Windows Service
[单项选择] You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service.(Line numbers are included for reference only.) 01 BasicHttpBinding myBinding = new BasicHttpBinding( ); 02 EndpointAddress myEndpointAddress = new EndpointAddress("http://contoso.com/TaxService.svc"); 03 ... 04 ITaxService client = channelFactory.CreateChannel( ); 05 string data = client.GetData(1); You need to consume the service. Which code segment should you insert at line 03?()
A. var channelFactory = new ChannelFactory();
B. var channelFactory = new ChannelFactory(myBinding);
C. var channelFactory = new ChannelFactory(myBinding, myEndpointAddress);
D. var channelFactory = new ChannelFactory("http://contoso.com/TaxService.svc");

[单项选择] You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()
A. TimeoutException
B. FaultException
C. DivideByZeroException
D. FaultException
[单项选择]In()to your inquiries, we regret to inform you that we can’t help you in this matter.
A. order
B. response
C. answer
D. reaction
[单项选择] You are developing and XBAP application for your company intranet. During several development iterations, you manually executable, application, and deployement manifest to the test Web Server. You create an HTML file that has a manifest that you use for testing. During the next iteration, you enchance the XBAP application by making changes. When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes. You need to ensure that the changes you make are visible when you test the deployment from your machine. What should you do ?()
A.  Restart Microsoft Internet Information Services (IIS). Then click the Install hyperlink again.
B.  Open Visual Studio command prompt and run mage -cc. Then click the Install hyperlink again.
C.  Delete the application, deployment, and executable files from Web Server. Then rebuild the XBAP solution files from the project bin directory to the Web Server and click the Install hyperlink again
D.  Delete the application, deployment, and executable files from Web Server. Then recopy the same files to the Web Server, restart IIS and click the Install hyperlink again
[多项选择] You are developing a Web application to display products. Products are displayed on different pages on your Web site. You want to create a user control to manage the display of products. You need a default visual implementation of the UI of the user control. In addition, you need to provide developers with the flexibility to change the layout and controls of the UI. Which three actions should you perform?()
A. Apply the TemplateContainerAttribute to a property of type ITemplate. Pass the type of the template's naming container as the argument to the attribute.
B. Apply the TemplateContainerAttribute to the user control's class declaration.
C. Implement a property of type INamingContainer in the user control's code-behind class.
D. Implement a property of type ITemplate in the user control's code-behind class.
E. Define a new class that inherits from the ITemplate interface. Implement the InstantiateIn method of the ITemplate interface.
[单项选择] You are developing a Web application. Your code restricts access to some pages based on the users credentials. You need to configure IIS to supply the user's Windows credentials to your Web application. These credentials must be encrypted. What should you do? ()
A. Enable Anonymous access. Enable Integrated Windows authentication.
B. Enable Anonymous access. Enable Basic authentication.
C. Disable Anonymous access. Enable Integrated Windows authentication.
D. Disable Anonymous access. Enable Basic authentication.
[多项选择]You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.If Page.User.Identity.Name <> "CONTOSO/Administrator" Then Response.Redirect("login.aspx")End IfYou are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
A. In the Web.config file, enable impersonation.
B. In IIS, enable anonymous access.
C. In IIS, disable anonymous access.
D. In the Web.config file, set the authentication mode to Windows.
[单项选择] You.create Windows.Forms.applications.by.using.the .NET Framework 3.5. You plan to use the Windows Installer to deploy a new application.   The application must meet the following requirements:  (1)Support deployment to 32bit and 64bit operating systems   (2)Use the 64bit Program Files folder when deployed to 64bit platforms    You need to ensure that the application is deployed appropriately.    What should you do?()
A. Create a single MSI file.Add a launch condition that is set to Version NT64
B. Create a single MSI file.Add a launch condition that is set to NOT Version NT64
C. Create an MSI file that is targeted to 64bit platforms.Create an MSI file that is targeted to 32bit platforms
D. Create a single MSI file.Create a merge module that contains the 32bit and 64bit code
[单项选择]Your tank vessel is fully loaded, and you find that she is down slightly by the head. To adjust the trim, you may().
A. add ballast aft
B. load more cargo aft
C. shift cargo aft
D. All of the above
[单项选择] You create Windows Forms applications by using the .NET Framework 3.5. You plan to deploy a new application by using the ClickOnce technology.During deployment, the application performs the following tasks: (1)Modifies registry keys   (2)Modifies the files located in the %PROGRAM FILES% folder  (3)Administrative permissions are not granted to users who install the application    You need to ensure that the following requirements are met:  (1)The application can be deployed to Windows Vista client computers that are not part of an Active Directory domain  (2)When the application is deployed, users are not prompted to elevate their permissions    What should you do?()
A. Create a manifest and set the RequestedExecutionLevel level attribute to AsInvoker.
B. Create a manifest and set the RequestedExecutionLevel level attribute to As Administrator.
C. Create a new certificate trust list (CTL).Use the CertMgr.exe tool to install the CTL on the local computer.
D. Create a new certificate trust list (CTL).Install the CTL on the server that has theClickOnce application published.

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码