Consider the following code snippet: namespace ExtensionMethods { public static class NumericExtensionMethods { public static bool IsNumeric(this string s) { float output; return floa...
test.IsNumeric(); 100.0%
ExtensionMethods.NumericExtensionMethods.IsNumeric(); 0.0%
NumericExtensionMethods m = new NumericExtensionMethods(); m.IsNumeric(test); 0.0%
None of the above 0.0%
Considering the image, which of the following is the correct syntax for encoding a particular string in .Net framework 4.0?
Only a 0.0%
Only b 0.0%
Both a and b 100.0%
How can you determine, at runtime, if your application is running in the 64-bit version of .Net framework 4.0?
Check IntPtr.Size property for a value of 8. 100.0%
Call the Environment.GetEnvironmentVariable method and pass in the string "Platform" as an argument. Check for a return value of "x64". 0.0%
Call the WOW64 emulator method Isx64() and check the boolean return value. 0.0%
How do you add MetaDescription to your web page in .Net framework 4.0?
HtmlMeta meta2 = new HtmlMeta(); meta2.Name = "description"; meta2.Content = "add meta description"; Page.Header.Controls.Add(HtmlMeta ); 0.0%
Page.MetaDescription 100.0%
Both a and b are correct. 0.0%
None of the above. 0.0%
How is data passed from controllers to views in an ASP.NET MVC Application?
Using ViewData 100.0%
Using ViewState 0.0%
Using Sessions 0.0%
Using Cookies 0.0%
How many columns can you select by $orderby OData system query option in .Net Framework 4.0?
5 0.0%
12 100.0%
20 0.0%
infinite 0.0%
How will you count the odd numbers from the array shown below using LINQ in .Net framework 4.0? int[]numbers={5,4,1,3,9,8,6,7,2,0};
int findoddNumbers = numbers.Count(n => n % 2 == 1); 50.0%
int findoddNumbers = numbers.Count( n % 2 == 1); 0.0%
int findoddNumbers = (from number in numbers where numbers%2==1 select Count()); 0.0%
int findoddNumbers = (from number in numbers where number%2==1 select numbers).Count(); 50.0%
How will you display the view data in the view of an ASP.NET MVC Application?
<%: ViewData["CurrentTime"] %> 100.0%
<%=ViewData["CurrentTime"] %> 0.0%
%ViewData["CurrentTime"] % 0.0%
<ViewData["CurrentTime"] > 0.0%
How will you implement the logic for the following scenario in .Net framework 4.0? Suppose you have a GridView with paging enabled. You select the third row on page 1 and then move to page 2. Noth...
Set the GridView DataKeyNames property. 0.0%
Set the GridView EnablePersistedSelection property to true. 100.0%
Set the Gridview PagerSettings-Mode property. 0.0%
It is not possible to implement the given logic for the scenario described above. 0.0%
In WCF, what is the significance of the ReceiveRetryCount property of a Poison message in .Net framework 4.0?
It is an integer value that indicates the maximum number of times to retry delivery of a message from the application queue to the application. 100.0%
It is an integer value that indicates the maximum number of retry cycles. 0.0%
It is the time delay between retry cycles. 0.0%
Suppose you want to eliminate duplicate elements from the array int[] source = { 7, 4, 1, 3, 9, 8, 6, 7, 2, 1, 8, 15, 8, 23} and sort the elements in descending order using LINQ in .Net framework...
var result = (from s in source orderby s select distinct s).Descending(); 0.0%
var result = (from s in source orderby s descending select s).Distinct(); 100.0%
var result = select distinct s from s in source sortby s descending; 0.0%
var result = from s in source orderby s descending group p by s select s; 0.0%
Suppose your site has a page called Index.aspx that you no longer use. Search engines may keep requesting this page. Which of the following method will you add to the CodeBehind file of Index.aspx...
Server.Transfer 0.0%
Response.Redirect 0.0%
Response.RedirectPermanent 100.0%
Server.Execute 0.0%
Suppose your WCF service root URL is "http://examples.svc". What will be the response when you request a WCF data service URL with a $skip system query option, as shown below, in .Net framework 4.0...
The response will be the first two product entries from the collection of all products after sorting the collection in descending order of Rating. 0.0%
The response will be the third and fourth product entries from the collection of all products after sorting the collection in ascending order of Rating. 100.0%
The response will be the second and third product entries from the collection of all products after sorting the collection in descending order of Rating. 0.0%
What is a Decorator in WPF of .Net framework 4.0?
It is used to add functional handles to elements or provide state information about a control. 0.0%
It is the base class for elements that apply effects onto or around a single child element, such as Border or Viewbox. 100.0%
It provides a set of services that can be used to extend the functionality of a common language runtime property. 0.0%
It is a property with the exception that its value cannot be set outside the class that declared the read-only property. 0.0%
What is default format used to represent data returned in an ADO.NET Data Services response in .Net framework 4.0?
XAML 0.0%
SOAP 0.0%
Atom 100.0%
WSDL 0.0%
What is DLR in .Net framework 4.0?
It defines the common types that are supported by the languages which are compatible with the .Net framework. 0.0%
It represents the data types of different languages in a specific format specification. 0.0%
It is a programming language that manages the execution of programs written in any of several supported languages, allowing them to share common object-oriented classes written in any of the languages. 0.0%
It is a runtime environment that adds a set of services for dynamic languages to the common language runtime. 100.0%
What is the function of WCF Data contracts in .Net framework 4.0?
They define, for each parameter or return type, what data is serialized to be exchanged. 100.0%
They define which operations the client can perform on the service. 0.0%
They define which errors are raised by the service, and how the service handles and propagates errors to its clients. 0.0%
What is the purpose of the System.Windows.Data namespace in .Net framework 4.0?
Using System.Windows.Data namespace, you can integrate rich media, including drawings, text, and audio/video content in Windows Presentation Foundation applications. 0.0%
It contains classes used for binding properties to data sources, data source provider classes, and data-specific implementations of collections and views. 100.0%
It provides the types that support navigation, including navigating between windows and navigation journaling. 0.0%
It contains classes for creating windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows operating system. 0.0%
What result will you get when you run the following LINQ query in .Net framework 4.0? List<string> alphabets = new List<string>() { "whats", "new", "in", "aspnet" }; var alphabetsquery = from al...
wnia 100.0%
whats 0.0%
whatsnewinaspnet 0.0%
aspnetinnewwhats 0.0%
What result will you get when you run the following LINQ query in .Net framework 4.0? var scoreRecords = new[] { new {Name = "Alice", Score = 50}, new {Name = "Bob" , Score = 40}, new {Nam...
Which of the following arrays will be returned as result when you run the following LINQ query in .Net framework 4.0? object[] varnumbers = { null, 1.0, "two", 3, "four", 5, "six", 7.0 }; var dou...
{ Name = Bob} 0.0%
{ Name = Bob, Score = 40 } 100.0%
Name = Bob 0.0%
None of the above 0.0%
Which of the following ASP.NET MVC namespaces includes the classes that support forms, input controls, links, partial views, and validation in .Net Framework 4.0?
System.Web.Mvc 0.0%
System.Web.Mvc.Async 0.0%
System.Web.Mvc.Html 100.0%
System.Web.Mvc.Sync 0.0%
Which of the following classes of System.Windows.Media namespace provides rendering support in WPF which includes hit testing, coordinate transformation, and bounding box calculations in .Net frame...
HitTestResult 0.0%
Visual 100.0%
Colors 0.0%
Brush 0.0%
Which of the following is NOT a valid data source control in .Net framework 4.0?
LinqDataSource 0.0%
XmlDataSource 0.0%
AccessDataSource 0.0%
EntityDataSource 0.0%
All of the above are valid data sources 100.0%
Which of the following is NOT a valid QueryExtender filter option in .Net framework 4.0?
SearchExpression 0.0%
RangeExpression 0.0%
OrderByExpression 0.0%
All of the above are valid QueryExtender filter options 100.0%
Which of the following is NOT a valid WPF Localizability attribute in .Net framework 4.0?
Readability 0.0%
Modifiability 0.0%
Category 0.0%
Both a and b 0.0%
All of the above are Localizability attributes 100.0%
Which of the following is the correct way to expand the size of application URLs in .Net framework 4.0?
<httpModules maxRequestPathLength="260" maxQueryStringLength="2048" /> 0.0%
<httpRuntime maxRequestPathLength="260" maxQueryStringLength="2048" /> 0.0%
<httpHandlers maxRequestPathLength="260" maxQueryStringLength="2048" /> 0.0%
None of the above 100.0%
Which of the following OData system query options is used to determine the maximum number of records to be returned in .Net framework 4.0?
$top 100.0%
$filter 0.0%
$select 0.0%
$expand 0.0%
Which of the following pieces of information is provided by the WCF service contract in .Net framework 4.0?
The grouping of operations in a service. 0.0%
The location of the operations. 100.0%
The specific protocols and serialization formats that are used to support successful communication with the service. 0.0%
All of the above. 0.0%
Which of the following statements is correct for ASP.NET MVC Routing in .Net Framework 4.0?
It is used to match the incoming requests and to map them to a controller action. 100.0%
It is used to construct the outgoing URLs which correspond to controller actions. 0.0%
Both a and b are correct. 0.0%
Which of the following statements is correct for the bubbling routing strategies used by the routing events in WPF in .Net framework 4.0?
This event is first raised on the root, then on each element down the tree until the source element is reached. 0.0%
This event is only raised on the source element. It will have the same behavior as a plain .NET event, except that such events can still participate in mechanisms specific to routed events such as event triggers. 0.0%
This event is first raised on the source element, then on each element up the tree until the root is reached. 100.0%
None of the above. 0.0%
Which of the following statements is correct for WSHttpBinding of WCF in .Net framework 4.0?
It is a secure and interoperable binding that is suitable for non-duplex service contracts. 100.0%
It is a secure and interoperable binding that is suitable for duplex service contracts or communication through SOAP intermediaries. 0.0%
It is a secure and optimized binding suitable for cross-machine communication between WCF applications. 0.0%
It is a queued binding that is suitable for cross-machine communication between WCF applications. 0.0%