🧪 .NET Micro Framework MCQ Quiz Hub

.NET MCQ Set 2

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

1. Which of the following is not a component of the .NET framework?




2. In C#, which type of variable is declared inside a method?




3. In the body of a method, which variable does C# use to refer to the current object whose method is being invoked?




4. In the ASP.NET server control, which provides an alternative way of displaying text on web page?




5. In C#, which of the following describes a local variable?




6. In C#, which of the following is the proper header for a class that intends to use an interface?




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




8. Where are the String class and Char structure found?




9. Which of the following defines a delegate?




10. Which of the following describes what this code snippet implies? namespace TestApplication { class HelloWorld {} }




11. Which type of block encloses code that could throw an exception?




12. In C#, which code converts a string to lowercase?




13. In C#, which of the following is created from this code? class Test: Form { }




14. In ASP.NET, which of the following is the extension of a web user control file?




15. Which of the following defines synchronization?




16. In C#, which of the following does this code create? String mystring;




17. Which of the following actions does an abstract class create?




18. Which of the following .NET framework classes can be used for Custom Parallel Partitioning ?




19. Which of the following is not contained in the ThreadPriority enumeration?




20. Which of the following exceptions is thrown when a member/class lookup results in more than one member/class matching the lookup criteria?




21. In which of the following Generations does the CLR allocate memory for new objects?




22. Which type of code is the following? public class A { IEmailSender _emailSender public A(IEmailSender emailSender) { _emailSender = emailSender; } private void SendEmail() { _emailSender.Send(); } }




23. In C#, which of the following describes two StringBuilder objects that contain the same string?




24. Your Web application, ABCWebApp1, is configured to use Windows Authentication. After granting a specific group NTFS permissions to access a specific file named ABC.doc, you need to ensure that users not belonging to this group cannot access the file. Which of the following should you include to ensure unauthorized access?




25. Which of the following often results in an event?




26. Which of the following is the first event to be triggered in an .aspx page?




27. How do string indexers treat strings?




28. Which of the following is a valid syntax of entry point for all C# programs?




29. In C#, which of the following is used to define two methods in a single class with the same name but with different sets of argument types?




30. Which action will occur when a method detects that a problem has occurred?




31. Which class are exception objects derived from?




32. In C#, which of the following is used to return a thread from a suspended state?




33. Which of the following is used to create a string literal exclude escape sequence?




34. In C#, which of the following is an instance variable?




35. Which methods are used to lock and unlock an object?




36. Which of the following is the correct way to define a namespace alias in VB.NET?




37. In ASP.NET, which of the following describes IsPostBack?




38. In ASP.NET, to add a custom control to a Web form, it is necessary to register with which of the following?




39. Which of the following does BCL stand for?




40. In ASP.NET, which control does not have any visible interface?




41. In C#, which class is extended by every class directly or indirectly?




42. Which method should you consider using in order to develop an application that meets the following requirements? • A different ASPX page is displayed when the application's original URL is entered • After the page executes, the original URL is not visible to users • A single client browser request is sufficient for the execution of a page




43. How is concatenation of strings done?




44. In ASP.NET, which class is used to derive custom controls?




45. Which of the following Generations contains the longest surviving objects?




46. Because .NET treats all languages as equal, a class written in C# should be equivalent to a class written in VB.NET, and an interface defined in Managed C++ should be exactly the same as one that is specified in Managed COBOL. Languages must agree on the meanings of these concepts before they can integrate with one another. Which of the following provides the specifications for this?




47. Dot NET Framework programs are compiled into CPU independent instruction set, named:




48. The primary building block of the .NET framework is




49. Where is the application domain created?




50. Which of the following statements is correct with regard to .NET framework managed web pages?




51. The XML web services of .NET framework are built on :




52. An assembly is unloaded:




53. Which of the following is not a method of FileSystem class?




54. Which of the following elements can be part of an Assembly:




55. 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 4.0. Which of the following statements can you use?