1. A variable which is declared inside a method is called? Serial Static Private Local 2. Which of the following is the root of the .NET type hierarchy? System.Object System.Base System.Type System.Root 3. How many web.config files that can be there an ASP.NET application? Upto 10 Only Two More than one Only One 4. Which of the following are parts of the .NET Framework? Applications deployed on IIS CLR & Framework Class Libraries (FCL) Mobile Applications Microsoft Published Web Services 5. The RangeValidator control supports the following data types? Integer only Date, Integer and String Only String Date and Interger 6. Which of the following CANNOT belong to a C#.NET Namespace? Enum Struct Class Data 7. Can you store multiple data types in System.Array? Yes No Both Yes and No None of the options 8. A property can be declared inside a namespace or a procedure. all TRUE FALSE None of the options 9. Which of the following is NOT a namespace in the .NET Framework Class Library? System.Security System.Process System.Threading System.Drawing 10. int keyword targets to which .Net type? System.Int64 System.Int16 System.Int8 System.Int32 11. Which of the following statements is correct about a namespace in C#.NET? Namespaces help us to control the visibility of the elements present in it. A namespace can contain a class but not another namespace. It is necessary to use the using statement to be able to use an element of a namespace. If not mentioned, then the name 'root' gets assigned to the namespace. 12. How to kill a user session explicitly? Session.Discard() Session.Abandon() Session.kill() Session.Close() 13. Which of the following denote New Data-bound Controls used with ASP.NET? SqlDataSource GridView FormView All of the options 14. Which of the following statements is correct about a namespace used in C#.NET? If nested, the namespaces cannot be split across files. Importing outer namespace imports inner namespace. Nested namespaces are not allowed. Nested namespaces are allowed. 15. Different ways a method can be overloaded in C#.NET? Different number of parameters Different parameter data types Different order of parameters All of the options 16. Which of the following denote the web control associated with Table control function of ASP.NET? TableRow ListBox DataList All of the options 17. Which of the following statements is correct about properties used in C#.NET? Every property must have a set accessor and a get accessor. A property has to be either read only or a write only. Properties of a class are actually methods that work like data members. Properties cannot be overloaded. 18. Which of the following statements is correct about an Exception? It occurs during loading of the program. It occurs at run-time. It occurs during linking. It occurs during compilation. 19. Can you inherit multiple interfaces? No Yes Both Yes and No None of the options 20. Two methods with the same name but with different parameters? Overloading Duplexing Loading Multiplexing 21. What are the basic techniques for creating a control? Inherit from Control Inheriting from an existing control Inherit from User Control All of the options 22. Which of the following is NOT a .NET Exception class? Exception DivideByZeroException OutofMemoryException StatckMemoryException 23. Feature of a local variable? It must be declared within a metho D It represent a class object It can be used anywhere in the program It must accept a class 24. All control inherits either directly or indirectly from the base class control? No Yes Both Yes and No None of the options 25. What is the output of the code public class B: A { }? It defines a class that inherits the public methods of A only D Both It defines a class that inherits the public methods of A only and It defines a class that inherits all the methods of A but the private members cannot be accesse Errors It defines a class that inherits all the methods of A but the private members cannot be accesse 26. In ASP.NET if one wants to maintain session then which of the following is used? Microsoft SQL Server Session State Service In-Process Storage All of the options 27. What is the significance of Server.MapPath Maps the specified virtual path to Physical path Returns the physical file path that corresponds to virtual specified path Returns the Virtual Path of the web folder None of the options 28. By default, ASP.NET store SessionIDs in _________. Global Variable Cookies Database Cache 29. Which method displays the custom control? Page_Loa Render The PreRender D Display 30. What section of the Web.config file is used for storing a list of authorized users? SecurityPolicy Authentication Authorization None of the options 31. What is default timeout of session? 10 30 20 5 32. The .NET framework which provides automatic memory management using a technique called Serialization Garbage Collection Overriding Assemblies 33. What is the lifespan for items stored in ViewState? Exists for the Life of the current page 2 mins 2 sec 20 mins 34. How do we Delete, Update, Select data in a Dataset? Using SQLDataAdapter Using SQLComman D None Using SQLDataReader 35. Give one word: What model does ASP.NET request processing is based on Waterfall Top-down Buttom-up Pipeline 36. What is the size of the session ID? 32 bit long integer 32 bit long string 32 bit long double 32 bit long character 37. When is the user controls code is executed Before Page_init event of web form After the page_init event of webform After the webform loads None of the options 38. Which of the following extension does a WebForm file will have? .ascx .resx .asmx .aspx 39. The .NET Framework provides a runtime environment called CLR CTS RCT RMT 40. Which concept is used to provide consistent layout in webform? Themes Master Page GridView None of the options 41. Which of the following can be used to add alternating color scheme in a Repeater control? AlternatingItemTemplate DataSource ColorValidator None of the options 42. An alternative way of displaying text on web page using Asp:button Asp:label Asp:listitem None of the options 43. Select the control which does not have any visible interface. DropdownList DataGrid Datalist Repeater 44. Which of the following extension does a WebService file will have? .aspx .resx .ascx .asmx 45. Which of the following languages are used to write server side scripting in ASP.NET? C++ C-Sharp Both C-Sharp and VB VB 46. Application_Start event is available in ___________. Web.config Local.asax Global.asax None of the options 47. Which of the following is not an ASP.NET page event? Disposed Init Load Import 48. Why is Global.asax is used? Implement application and session level events No use Declare Global variables None of the options 49. Properties and Indexer are used to access which type of data members? C Protecte Private D Internal Publi 50. Which of the following is not a member of ADO DBCommand object? ExecuteReader Open ExecuteScalar ExecuteStream Submit Answers Retake Test More Computer Science Engineering Study Material › Computer Science Engineering Mock Tests with Answers Distributed Computing System Mock Test Software Project Management Mock TestArtificial Intelligence and Robotics Mock TestBasics of Database Management Mock TestC# Programming Mock TestC#.NET Programming Mock TestCloud Computing Mock TestCommunication Network Mock TestComputer Architecture Mock TestComputer Architecture and Organization Mock TestComputer Fundamentals Mock TestComputer Networking Mock TestComputer Networks Mock TestCPP Programming Mock TestData Analysis Mock TestData Communication and Computer Network Mock TestData Compression and Data Retrieval Mock TestData Mining and Business Intelligence Mock TestData Mining and Data Warehouse Mock TestData Structure and Algorithms Mock TestData Structures Mock TestDataBase Management System Mock TestDesign and Analysis of Algorithms Mock TestDigital Electronics and Logic Design Mock TestDigital Logic Circuits Mock TestDigital Principles and System Design Mock TestDiscrete Mathematics Mock TestDiscrete Structure Mock TestDotNet Technology Mock TestEmbedded Real Time Operating System Mock TestGreen Computing Mock TestHigh Performance Computing Mock TestInformation Cyber Security Mock TestInformation and Network Security Mock TestInformation Retrival Techniques Mock TestInformation Systems and Engineering Economics Mock TestMachine Learning Mock TestMicroprocessor and Interfacing Technique Mock TestMicroprocessors Mock TestMuli core Architectures and Pro Mock TestMulti core processors Mock TestNetwork Security Mock TestNeural Networks and Fuzzy Control Object Oriented Programming Mock TestOperating System Architecture Mock TestOperating System Mock TestProblem Solving and Python Programming Mock TestProgramming for Problem Solving Mock TestPython Programming Mock TestSoft Computing Mock TestSoftware Design Modeling Mock TestSoftware Engineering Mock TestSoftware Testing Mock TestSoftware Testing and Quality Assurance Mock TestTheory of Computation and Compiler Design Mock TestTheory of Computation Mock TestUbiquitous Computing System Mock Test Computer Science Engineering Mock Tests