PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you add to the console application?

You have a custom theme named MyTheme . The theme is defined in a file named
MyTheme.thmx . You have a console application that contains the following code segment. (Line
numbers are included for reference only.) 101 using ( SPSite sice = new SPSite ( “http://intranet”
}} 02 { 03 SPWeb web – site.OpenWeb (); 01 05 } You need to programmatically apply the theme
to a SharePoint site. Which code segment should you add to the console application?

How should you complete the relevant code?

DRAG DROP
You are developing a web application that uses Azure push notifications to interact with users.
You need to send a text notification to users to alert them that the application is ready to test.
How should you complete the relevant code? To answer, drag the appropriate code segment to the correct
location. Eachcode segment may be used once, more than once, or not at all. You may need to drag the split
bar between panes or scroll to view content.

Which code segment should you insert at line 11?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
create a Data Access Layer (DAL) that is database-independent. The DAL includes the following code
segment. (Line numbers are included for reference only.)
01 static void ExecuteDbCommand(DbConnection connection)
02 {
03 if (connection != null){
04 using (connection){
05 try{
06 connection.Open();
07 DbCommand command = connection.CreateCommand();
08 command.CommandText = “INSERT INTO Categories (CategoryName) VALUES (‘Low Carb’)”;
09 command.ExecuteNonQuery();
10 }
11
12 catch (Exception ex){
13 Trace.WriteLine(“Exception.Message: ” + ex.Message);
14 }
15 }
16 }
17 }
You need to log information about any error that occurs during data access. You also need to log the
data provider that accesses the database. Which code segment should you insert at line 11?

You need to design a remote monitoring strategy to monitor the usage time of the application by each user

You are developing an application by using Microsoft .NET Framework 4, The application
will be used by all employees of your company, Local file stores on the computers are
secure and inaccessible remotely. You need to design a remote monitoring strategy to
monitor the usage time of the application by each user. What should you do?

Which approach should you recommend?

You are designing the user interface for an ASP.NET Web application. The Web application
allows several departments to personalize the style of their sections of the Web application.
All departmental section styles derive from the core styles of the Web application and can
only append to the Web application’s core styles. The departmental master pages inherit
from the Web application’s master page. You need to ensure that core CSS styles appear
En all pages of the Web application. Which approach should you recommend?