Examen70516

Páginas: 5 (1042 palabras) Publicado: 22 de abril de 2012
xamenMicrosoft EXAM 70-516
Accessing Data with Microsoft .NET Framework 4

Total Questions:

87

For interactive and self-paced preparation of exam 70-516, try our practice exams. Practice exams also include self assessment and reporting features

1

Question: 1
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application uses theADO.NET Entity Framework to model entities. You define a Category class by writing the following code segment. (Line numbers are included for reference only.) public class Category { public int CategoryID { get; set; } public string CategoryName { get; set; } public string Description { get; set; } public byte[] Picture { get; set; } } You need to add a collection named Products to the Category class.You also need to ensure that the collection supports deferred loading. Which code segment should you insert at line 07? A. public static List Products { get; set; } B. public virtual List Products { get; set; } C. public abstract List Products { get; set; } D. protected List Products { get; set; }

Answer: B Question: 2
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 tocreate a Windows Forms application. You plan to deploy the application to several shared client computers. You write the following code segment. (Line numbers are included for reference only.) 01Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName); 02 03config.Save(); 04... You need to encrypt the connection string stored in the .config file. Which code segment shouldyou insert at line 02? A. ConnectionStringsSection section = config.GetSection("connectionString") as ConnectionStringsSection; section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider"); B. ConnectionStringsSection section = config.GetSection("connectionStrings") as ConnectionStringsSection; section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider"); C.ConnectionStringsSection section = config.GetSection("connectionString") as ConnectionStringsSection; section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider"); D. ConnectionStringsSection section = config.GetSection("connectionStrings") as ConnectionStringsSection; section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider");

For interactive andself-paced preparation of exam 70-516, try our practice exams.

2

Answer: D Question: 3
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Microsoft Windows Forms application. You plan to deploy the application to several shared client computers. You write the following code segment. (Line numbers are included for reference only.) 01?Dim config As Configuration =ConfigurationManager.OpenExeConfiguration(exeConfigName) 02 03config.Save() 04... You need to encrypt the connection string stored in the .config file. Which code segment should you insert at line 02? A. Dim section As ConnectionStringsSection = TryCast(config.GetSection("connectionString"), ConnectionStringsSection) section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider") B. Dimsection As ConnectionStringsSection = TryCast(config.GetSection("connectionStrings"), ConnectionStringsSection) section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider") C. Dim section As ConnectionStringsSection = TryCast(config.GetSection("connectionString"), ConnectionStringsSection) section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider") D. Dimsection As ConnectionStringsSection = TryCast(config.GetSection("connectionStrings"), ConnectionStringsSection) section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider")

Answer: D Question: 4
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server database. The application uses the...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS