🧪 .NET Micro Framework MCQ Quiz Hub

.NET MCQ Set 1

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

1. Which of the following statements is NOT correct with regard to Portable Executable (PE)?




2. Your Web application lets users upload files and is hosted in Microsoft IIS 6.0 on a server named ABC-SR01. The application uses the default application pool with Windows Authentication. You cannot upload a file from your workstation using the application; instead, you see an access denied message. To fix this problem, you enable debugging. Next, you should _______.




3. Which of the following kick in the Garbage Collector (GC) process?




4. Which of the following keywords is used to include existing namespace in a C# program?




5. In ASP.NET, postback occurs in which of the following forms?




6. How do you manage states in an ASP.NET application?




7. Which C# code will output an element's value from a multidimensional array?




8. Which of the following is not a VALID C# access specifier ?




9. Which of the following are part of ASP.NET?




10. What type of processing model does ASP.NET simulate?




11. Which of the following reasons make C# a widely used professional language?




12. Which of the following namespaces contain types that enable interaction with system processes, event logs, and performance counters?




13. Which namespace contain the types necessary to build Windows Communication Foundation (WCF) service and client applications?




14. Which of the following would force an immediate garbage collection of all generations?




15. In ASP.NET, why is Global.asax used?




16. Which caching type is supported by ASP.NET?




17. In ASP.NET, which method do you invoke on the Data Adapter control to load your generated dataset?




18. In C#, what does the following code do: class Test: Form { }




19. Which of the following represents a thread-safe map of key/value pair and can be used in a multi-threaded environment?




20. How is ASP.NET different from classic ASP?




21. How many generations does Garbage Collector use for Small Objects in .Net?




22. Which of the following "type" of members are accessible only within files in the same DLL ?




23. When do you have to declare a class abstract?




24. A method _______ an exception when that method detects that a problem has occured.




25. Which of the following is the actual .net code translated into?




26. Which of the following is a valid C# constant definition?




27. To ensure that the timing and performance data of your web application is gathered and only made available to users when they are logged on the web server, which code should you add to the Web.config file?




28. Which of the following namespaces contain types that support deployment of ClickOnce applications?




29. In which of the following GC Collection mode the garbage collector determines whether the current time is optimal to reclaim objects?




30. While browsing your Web application in IIS 6.0, you receive a Server Application Unavailable error. The application event log states: It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process. To solve this problem as quickly as possible, you should _______.




31. In ASP.NET, how do you register a user control?




32. In C#, for a class to use an interface, it must _______.




33. If an IndexofAny method is passed an array of characters, _______.




34. Your Web application includes a page named ErrorPage.aspx. To manage unhandled application exceptions, ErrorPage.aspx should be shown and exception data should be written to the event log. Your web.config file includes the following code: Next, you should consider _______.




35. In your Web application, you create a class to implement the IHttpHandler interface. Which code will display the Warning.jpg image in the browser whenever the handler is requested?




36. Your Web form uses the following code to display data from a SQL Server 2005 database. What must you add to the _ItemBound event handler in order to access the value of the hlName HyperLink in a variable named var? ' />




37. In your Web application named ABCWebApp1, you have configured a custom-templated server control named ABCSC that has child controls in the page. To help ensure distinctive identification of the child controls within the hierarchy of the page, you should consider applying the _______ interface.




38. Evaluate. Which statement must be true for the code to compile and run correctly? public class B : A { public B(int i) :base(i) { } }




39. Which of the following methods is used for destroying threads?




40. How does the .Net framework define a Large Object?




41. Which of the following is NOT a reserved keyword in C#?




42. In ASP.NET, how do you explicitly kill a user session?




43. In ASP.NET, which one of the following namespaces contains the definition for IdbConnection?




44. Which of the following is not a VALID integer literal?




45. Which of the following is not a VALID variable type in C#?




46. Your Web appplication, ABCApp1, is hosted on ABC-SR13 and runs an instance of MS SQL Server 2005 locally configured to use Windows Authentication. As you prepare to configure the role management and membership providers on ABC-SR13, you should consider using _______.




47. In ASP.NET, what is the difference between Response.Write() and Response.Output.Write()?




48. How many string objects are created in this piece of code: string first = "tick"; string second = first + "tech"; second += "fly";




49. You must add a new custom control to an .aspx page in your Web application, with these requirements: • The state of the custom control must remain static for 2 minutes • The cache settings of other elements on the page must not be affected by the settings for the new custom control Which code will meet the requirements when added to the Web.configfile?




50. When an .aspx page is requested from the web server, in which format is the output rendered to the browser?




51. How many server forms can be added to a .aspx page?




52. Which particular namespace has to be included in a C# program to be able to use following statement? Console.WriteLine("Hello World")




53. Which of the following defines a String literal?




54. Which of the following defines a Thread?




55. In C#, how does the following code measures time? Thread.Sleep(time)