.NET Micro Framework MCQ Quiz Hub

.NET MCQ Set 3

Choose a topic to test your knowledge and improve your .NET Micro Framework skills

Considering the image, which of the following is the correct syntax for encoding a particular string in .Net framework 4.0?





✅ Correct Answer: 3

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 );





✅ Correct Answer: 1

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. Nothing is selected on page 2. When you move back to page 1, the third row should still be selected.





✅ Correct Answer: 2

In WCF, what is the significance of the ReceiveRetryCount property of a Poison message in .Net framework 4.0?





✅ Correct Answer: 1

What is the purpose of the System.Windows.Data namespace in .Net framework 4.0?





✅ Correct Answer: 2

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};





✅ Correct Answer: 1

Which of the following is the correct way to expand the size of application URLs in .Net framework 4.0?





✅ Correct Answer: 2

Which of the following statements is correct for the bubbling routing strategies used by the routing events in WPF in .Net framework 4.0?





✅ Correct Answer: 3

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 doubles = varnumbers.OfType<double>(); foreach (var d in doubles) { Response.Write(d); }





✅ Correct Answer: 1

Which of the following pieces of information is provided by the WCF service contract in .Net framework 4.0?





✅ Correct Answer: 4

Which of the following is NOT a valid data source control in .Net framework 4.0?





✅ Correct Answer: 4

How many columns can you select by $orderby OData system query option in .Net Framework 4.0?





✅ Correct Answer: 2

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 that will send requests (including search engine requests) to Default.aspx in .Net framework 4.0?





✅ Correct Answer: 3

Which of the following statements is correct for WSHttpBinding of WCF in .Net framework 4.0?





✅ Correct Answer: 1

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?





✅ Correct Answer: 1

How will you display the view data in the view of an ASP.NET MVC Application?





✅ Correct Answer: 1

Which of the following is NOT a valid QueryExtender filter option in .Net framework 4.0?





✅ Correct Answer: 4

Which of the following statements is correct for ASP.NET MVC Routing in .Net Framework 4.0?





✅ Correct Answer: 3

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 {Name = "Cathy", Score = 45} }; var scoreRecordsDict = scoreRecords.ToDictionary(sr =>sr.Name); Response.Write(scoreRecordsDict["Bob"]);





✅ Correct Answer: 2

What is a Decorator in WPF of .Net framework 4.0?





✅ Correct Answer: 2

What is default format used to represent data returned in an ADO.NET Data Services response in .Net framework 4.0?





✅ Correct Answer: 3

What is DLR in .Net framework 4.0?





✅ Correct Answer: 4

How is data passed from controllers to views in an ASP.NET MVC Application?





✅ Correct Answer: 1

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 framework 4.0?





✅ Correct Answer: 2

How can you determine, at runtime, if your application is running in the 64-bit version of .Net framework 4.0?





✅ Correct Answer: 1

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?





✅ Correct Answer: 3

Which of the following is NOT a valid WPF Localizability attribute in .Net framework 4.0?





✅ Correct Answer: 4

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 alphabet in alphabets select alphabet.Substring(0, 1); foreach (var alpha in alphabetsquery) { Response.Write(alpha); }





✅ Correct Answer: 1

What is the function of WCF Data contracts in .Net framework 4.0?





✅ Correct Answer: 1

Which of the following are included in a Static assembly?





✅ Correct Answer: 1

Which of the following are correct about delegates?





✅ Correct Answer: 1

Which of the following protocols can be used for .Net Remoting?





✅ Correct Answer: 1

Which of the following is correct for value and reference types in .NET?





✅ Correct Answer: 1

Which of these are runtime hosts in .Net Framework?





✅ Correct Answer: 2

Which of the following run In-Process?





✅ Correct Answer: 1

A manifest includes the following data about the assembly





✅ Correct Answer: 1

The Process of automatic memory management involves the following tasks:





✅ Correct Answer: 1

A standard Windows PE file is divided into a number of sections. Which of the following are not valid native image sections?





✅ Correct Answer: 1

Which of the following statements is true?





✅ Correct Answer: 1

Which of the following methods are used to stop a thread?





✅ Correct Answer: 1

___________ class grants the permission to manipulate files located in the code assemblies, to code assemblies that match the membership condition.





✅ Correct Answer: 1

Which of the following protocols can be used for ASP.Net Web Services?





✅ Correct Answer: 2

When are AssemblyHash values used?





✅ Correct Answer: 1

In.NET generics, the type parameter:





✅ Correct Answer: 3

How many classes can a single .NET DLL contain?





✅ Correct Answer: 3

Where is the Shared assembly generally stored?





✅ Correct Answer: 2

Which of the following is not correct with regard to shared assembly?





✅ Correct Answer: 3

Which Portable Executable (PE) file does not contain the assembly manifest?





✅ Correct Answer: 3

In .NET framework, what are the options available for packaging?





✅ Correct Answer: 4

Which of the following are public methods of System.Object?





✅ Correct Answer: 4

Which of the following helps expose COM components to the .NET framework?





✅ Correct Answer: 4

Which of the following tools can be used to get the metadata information about the assembly and view IL code?





✅ Correct Answer: 2

Which of the following tools assists Assembly Signing?





✅ Correct Answer: 3

In which file can you define the "Process Model" attribute?





✅ Correct Answer: 2

C# has a keyword called int. Which .NET type does this map to?





✅ Correct Answer: 2