You are developing an application to assist the user in cond

题目
单选题
You are developing an application to assist the user in conducting electronic surveys.The survey consists of 25 true-or-false questions.You need to perform the following tasks: Initialize each answer to true.Minimize the amount of memory used by each survey. Which storage option should you choose?()
A

BitVector32 answers = new BitVector32(1);

B

BitVector32 answers = new BitVector32(-1);

C

BitArray answers = new BitArray (1);

D

BitArray answers = new BitArray(-1);

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You install Windows Vista on a new computer by using the default settings. You create an administrator account and a standard user account.You log on to the computer as the standard user and attempt to install a new application. You are prompted for user credentials to complete the installation.You need to install the application on the computer.What should you do?()

A.A

B.B

C.C

D.D


参考答案:A

第2题:

You are developing a Windows Presentation Foundation (WPF) application The application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library code to validate license keys You need to ensure that the user enters a valid license key during installation of the software. Which deployment should reference the class library?()

  • A、 Click Once
  • B、 Setup Project
  • C、 XBAP
  • D、 XCopy

正确答案:B

第3题:

You use Microsoft .NET Framework 4 to create a Windows Forms client application.You write the following code segment.The application contains a form of type Form1 that contains a FormSettings object named frmSettings1.You need to maintain the user‘s form size preference each time the user executes the application.Which code segment should you use? ()

A.

B.

C.

D.


参考答案:D

第4题:

You are developing a user control for Windows Presentation Foundation (WPF) application. The user control contains a button. Both the user control and the hosting control must receive the button click event. You need to ensure that the user control responsd to the button click event before hosting control responds to the event. What should you do ?()

  • A、 Use a bubbling routed event. In the button click event handler, set the Handled property to True
  • B、 Use a bubbling routed event. In the button click event handler, set the Handled property to False
  • C、 Use a standard Microsoft .NET event. Set Handled property to true.
  • D、 Use a tunneling routed event. Set the handled property to false.

正确答案:B

第5题:

You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user. What should you do?()

  • A、Pass the object data in a hidden field.
  • B、Store the object instance in a session variable.
  • C、Use a cookie that contains the object data.
  • D、Encode the object data and pass it in a query string parameter.

正确答案:B

第6题:

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.

正确答案:A,D,E

第7题:

You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a Windows Service application. You need to change the security context in which the service runs. The service will be run in context of a non-privileged user on the local computer and present anonymous credentials to any remote server. You are required to set the Account property of the ServiceProcessInstaller class to specify the service account. What should you do?()

  • A、Use ServiceAccount.User.
  • B、Use ServiceAccount.LocalService.
  • C、Use ServiceAccount.LocalSystem.
  • D、Use ServceAccount.NetworkService.

正确答案:B

第8题:

You install a custom application on a computer that runs Microsoft Windows XP. The application stores each user’s data in the %programfiles%\app1\data folder on the computer. You install the custom application on a computer that runs Windows Vista.On the Windows Vista computer, you back up the %programfiles%\app1\data folder and notice that the backup contains no data.You need to back up the application’s user data on the Windows Vista computer.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第9题:

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") { 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.

正确答案:C,D

第10题:

单选题
You are developing an application that dynamically loads assemblies from an application directory. You need to write a code segment that loads an assembly named Company1.dll into the current application domain. Which code segment should you use?()
A

A

B

B

C

C

D

D


正确答案: A
解析: 暂无解析

更多相关问题