MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is Diffgram? |
| A. | The one which renders the dataset object contents to XML |
| B. | Finds the difference in two objects |
| C. | Finds the difference in two files |
| D. | None of the above |
| Answer» B. Finds the difference in two objects | |
| 2. |
What data types do a RangeValidator Support? |
| A. | Integer |
| B. | String |
| C. | Date |
| D. | All of the above |
| Answer» E. | |
| 3. |
How to kill a user session explicitly? |
| A. | Session.Close() |
| B. | Session.Discard() |
| C. | Session.kill() |
| D. | Session.Abandon() |
| Answer» E. | |
| 4. |
Web.config file is used? |
| A. | Configures the time that the server-side code behind module is called |
| B. | To store the global information and variable definitions for the application |
| C. | To configure the web server |
| D. | To configure the web browser |
| Answer» D. To configure the web browser | |
| 5. |
Which of the following denote the web control associated with Table control functionof ASP.NET? |
| A. | DataList |
| B. | ListBox |
| C. | TableRow |
| D. | All the above |
| Answer» D. All the above | |
| 6. |
What class does the ASP.NET web form class inherit from by default? |
| A. | System.Web.UI.Page |
| B. | System.Web.UI.Form |
| C. | System.Web.GUI.Page |
| D. | System.Web.Form |
| Answer» B. System.Web.UI.Form | |
| 7. |
Common type system is built into which of the following: |
| A. | CLR |
| B. | RCT |
| C. | RCW |
| D. | GAC |
| Answer» B. RCT | |
| 8. |
Which of the following can be used to add alternating color scheme in a Repeatercontrol? |
| A. | AlternatingItemTemplate |
| B. | DataSource |
| C. | ColorValidator |
| D. | None of the above |
| Answer» B. DataSource | |
| 9. |
In ASP.NET application the Global.asax file lie in which directory |
| A. | Application |
| B. | System |
| C. | Root |
| D. | None of the above |
| Answer» D. None of the above | |
| 10. |
In C#.NET if we do not catch the exception thrown at runtime then which of thefollowing will catch it? |
| A. | Compiler |
| B. | CLR |
| C. | Linker |
| D. | Loader |
| Answer» C. Linker | |
| 11. |
Which access modifiers are used in the concept of a property? |
| A. | Get / set |
| B. | Try / catch |
| C. | Finally/throw |
| D. | None of the above |
| Answer» B. Try / catch | |
| 12. |
The control used in ASP.NET to display information from data set but with betterformatting and editing behavior is |
| A. | Panel |
| B. | Button |
| C. | DataList |
| D. | None of the above |
| Answer» D. None of the above | |
| 13. |
By default, ASP.NET store SessionIDs in _________. |
| A. | Cookies |
| B. | Cache |
| C. | Database |
| D. | Global Variable |
| Answer» B. Cache | |
| 14. |
How many classes can a single .NET DLL contain? |
| A. | One |
| B. | Two |
| C. | None |
| D. | Many |
| Answer» E. | |
| 15. |
Properties and Indexer are used to access which type of data members? |
| A. | Private |
| B. | Publi |
| C. | C Protecte |
| D. | D Internal |
| Answer» B. Publi | |
| 16. |
Which method do you invoke on the DataAdapter control to load your generated datasetwith data? |
| A. | Load() |
| B. | Fill() |
| C. | DataList |
| D. | DataBind |
| Answer» C. DataList | |
| 17. |
Choose the form in which Postback occurs? |
| A. | Html |
| B. | Webforms |
| C. | Windows |
| D. | All of above |
| Answer» C. Windows | |
| 18. |
Which of the following is not a member of ADO DBCommand object? |
| A. | ExecuteScalar |
| B. | ExecuteStream |
| C. | Open |
| D. | ExecuteReader |
| Answer» D. ExecuteReader | |
| 19. |
Exceptions can be thrown even from a constructor, whereas error codes cannot bereturned from a constructor. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 20. |
All control inherits either directly or indirectly from the base class control? |
| A. | Yes |
| B. | No |
| C. | Both |
| D. | None |
| Answer» B. No | |
| 21. |
The RangeValidator control supports the following data types? |
| A. | Integer only |
| B. | Date, Integer and String |
| C. | Only String |
| D. | Date and Interger |
| Answer» C. Only String | |
| 22. |
Which of the following denote page code model in ASP.NET? |
| A. | Single File |
| B. | Code Behind |
| C. | Both A and B |
| D. | None of the above |
| Answer» D. None of the above | |
| 23. |
The .NET framework which provides automatic memory management using a techniquecalled |
| A. | Serialization |
| B. | Garbage Collection |
| C. | Assemblies |
| D. | Overriding |
| Answer» C. Assemblies | |
| 24. |
Every Server control must have an Id |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 25. |
I have an ASP.NET application. I have a page loaded from server memory. At thisinstance which of the following methods gets fired |
| A. | Unload() |
| B. | Load() |
| C. | PreRender() |
| D. | None of the Above |
| Answer» C. PreRender() | |
| 26. |
How many web.config files that can be there an ASP.NET application? |
| A. | Only One |
| B. | Only Two |
| C. | Upto 10 |
| D. | More than one |
| Answer» B. Only Two | |
| 27. |
Give one word: What model does ASP.NET request processing is based on |
| A. | Buttom-up |
| B. | Top-down |
| C. | Waterfall |
| D. | Pipeline |
| Answer» E. | |
| 28. |
Which of the following method is used to obtain details about information types ofassembly? |
| A. | GetTypes |
| B. | GetType |
| C. | Both A and B |
| D. | None of the Above |
| Answer» D. None of the Above | |
| 29. |
Default Session data is stored in ASP.Net. |
| A. | StateServer |
| B. | Session Object |
| C. | InProcess |
| D. | all of the above |
| Answer» D. all of the above | |
| 30. |
Why is Global.asax is used? |
| A. | Declare Global variables |
| B. | Implement application and session level events |
| C. | No use |
| D. | None of the above |
| Answer» C. No use | |
| 31. |
Which of the following can`t be used in our .NET application? |
| A. | .Net Assemblies |
| B. | ActiveX Control |
| C. | COM type libraries |
| D. | All of the above can be used |
| Answer» E. | |
| 32. |
How do we Delete, Update, Select data in a Dataset? |
| A. | Using SQLDataAdapter |
| B. | Using SQLDataReader |
| C. | Using SQLComman |
| D. | D None |
| Answer» B. Using SQLDataReader | |
| 33. |
An alternative way of displaying text on web page using |
| A. | Asp:label |
| B. | Asp:listitem |
| C. | Asp:button |
| D. | None of the above |
| Answer» B. Asp:listitem | |
| 34. |
Master pages are used to provide the code and appearance that are the same for a seriesof __________. |
| A. | Content Pages |
| B. | Base pages |
| C. | Both A and B |
| D. | None of the above |
| Answer» B. Base pages | |
| 35. |
Which of the following extension does a WebForm file will have? |
| A. | .asmx |
| B. | .aspx |
| C. | .ascx |
| D. | .resx |
| Answer» C. .ascx | |
| 36. |
Menus, TreeView and SiteMapPath controls cannot be styled with CSS |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» C. none | |
| 37. |
Which method displays the custom control? |
| A. | The PreRender |
| B. | Render |
| C. | Page_Loa |
| D. | D Display |
| Answer» C. Page_Loa | |
| 38. |
The GridView control in ASP.NET has which of the following features |
| A. | Automatic data binding |
| B. | Automatic paging |
| C. | Both A and B |
| D. | None of the above |
| Answer» D. None of the above | |
| 39. |
ASP.NET separates the HTML output from program logic using a feature named as |
| A. | Exception |
| B. | Code-behind |
| C. | Code-front |
| D. | None of the above |
| Answer» C. Code-front | |
| 40. |
Which concept is used to provide consistent layout in webform? |
| A. | Master Page |
| B. | Themes |
| C. | GridView |
| D. | None of the above |
| Answer» B. Themes | |
| 41. |
What is used to validate complex string patterns like an e-mail address? |
| A. | Required Field Validator |
| B. | Range Validator |
| C. | Regular Expression Validator |
| D. | Custom Validator |
| Answer» D. Custom Validator | |
| 42. |
Feature of a local variable? |
| A. | It can be used anywhere in the program |
| B. | It must accept a class |
| C. | It must be declared within a metho |
| D. | D It represent a class object |
| Answer» D. D It represent a class object | |
| 43. |
What are the basic techniques for creating a control? |
| A. | Inheriting from an existing control |
| B. | Inherit from User Control |
| C. | Inherit from Control |
| D. | All of above |
| Answer» E. | |
| 44. |
The first event triggers in an aspx page is? |
| A. | Page_Init() |
| B. | Page_Load() |
| C. | Page_Click() |
| D. | All of the above |
| Answer» B. Page_Load() | |
| 45. |
The type of code found in Code-Behind class is |
| A. | Server-side code |
| B. | Client-side code |
| C. | Both A and B |
| D. | None of the above |
| Answer» B. Client-side code | |
| 46. |
What section of the Web.config file is used for storing a list of authorized users? |
| A. | Authorization |
| B. | Authentication |
| C. | SecurityPolicy |
| D. | None |
| Answer» B. Authentication | |
| 47. |
Application_Start event is available in ___________. |
| A. | Web.config |
| B. | Local.asax |
| C. | Global.asax |
| D. | None of the above |
| Answer» D. None of the above | |
| 48. |
Which of the following languages are used to write server side scripting in ASP.NET? |
| A. | C-Sharp |
| B. | VB |
| C. | Both C-Sharp and VB |
| D. | C++ |
| Answer» D. C++ | |
| 49. |
Can you inherit multiple interfaces? |
| A. | Yes |
| B. | No |
| C. | Both |
| D. | None |
| Answer» B. No | |
| 50. |
Which of the following denote New Data-bound Controls used with ASP.NET? |
| A. | GridView |
| B. | SqlDataSource |
| C. | FormView |
| D. | All of the above |
| Answer» E. | |