1. Who developed .NET ? |
Oracle |
Microsoft |
Wipro |
Sun Microsystems
|
2. What is .NET ? |
Database |
Programming Language |
Operating System |
Framework
|
3. You create 4 forms FormA, FormB, FormC and FormD. You want to allow users to open FormA, FormB and FormC at the same time within FormD. Which properties do you need to set? |
IsMdiChild on Forms A,B and C; and IsMdiParent on FormD. |
MdiParent on Forms A,B and C; and IsMdiContainer on FormD. |
IsMdiChild on Forms A,B and C; and IsMdiContainer on FormD. |
MdiParent on Forms A,B and C; and IsMdiParent on FormD.
|
4. You want to create custom properties for your control, which the user can set using the Properties window of the Visual Studio IDE. What attribute can you use to control the visibility of the properties in the Properties window in the Visual Studio IDE? |
DebuggerBrowsable |
ComVisible |
Browsable |
DisplayBrowsable
|
5. You have added a button named Bt1 to your form, whose Text is �Go�. You want to assign a shortcut to the button, so that whenever a user presses ALT+G, the Click event of the button Bt1 is raised. What code should you use? |
Bt1.Text = @�Go�; |
Bt1.Text = �&Go�; |
Bt1.Text = �&&Go�; |
Bt1.Text = �@Go�;
|
6. You are creating a setup and deployment project for your application. You want to ensure that the .NET Framework 2.0 is installed on the computers of the users who want to install your application. Which deployment editor should you use? |
Registry Editor |
Launch Conditions Editor |
File System Editor |
Required Components Editor
|
7. Which property of the WebBrowser control should you use in order to navigate to a specified URL? |
NavigateUrl |
DocumentUrl |
Url |
PageUrl
|
8. You use a TransactionScope in your application in your application in order to use transaction semantics. What code should you use in order to commit the transaction within the transaction scope? |
TransactionScope.Completed = true; |
TransactionScope.IsCompleted = true; |
TransactionScope.Complete(); |
TransactionScope.Commit();
|
9. You add a PrintPreviewDialog ppd1 to your Windows Form, in order for your users to preview the document which they want to print. Which property of ppd1 should you set in order to specify the document to preview? |
PreviewDocument |
PrintDocument |
ActiveDocument |
Document
|
10. You decide to use named parameters in a SqlCommand object in order to execute SQL queries on a database. You have a parameter named �CustomerName�. How do you refer to it within the SQL query text in the SqlCommand object? |
�?CustomerName� |
�@CustomerName� |
�%CustomerName� |
�#CustomerName�
|
11. You have a textbox control on your form. You want to store some custom data associated with that object. This data should not be visible to the user � it is meant for internal use in your application. What code should you use? |
Use the Text property. |
Use the UserInfo property. |
Use the Tag property. |
Use the CustomData property.
|
12. Which function of the SqlCommand object must you use in order to execute an �INSERT� Sql Query? |
ExecuteScalar(); |
ExecuteCommand(); |
ExecuteReader(); |
ExecuteNonQuery();
|
13. You want to access web sites on the internet using HTTP. Which of the classes below can you use? |
System.Net.HttpClient |
System.Net.WebClient |
Sytem.Net.InetClient |
System.Net.HttpWebRequest
|
14. You want to create a reusable control by combining existing Windows Controls in order to use it in various of your applications. What should the base class of your control be? |
System.Windows.Forms.UserControl |
System.Windows.Forms.Control |
System.Windows.Forms.WindowsControl |
System.Windows.Forms.Component
|
15. You have a .xml file, and the corresponding .xsd. Which class should you use to validate the xml against the corresponding schema file? |
XmlValidatingReader |
XmlDictionaryReader |
XmlReader |
XmlSchemaReader
|
16. You dynamically create a TextBox control tb1 in code at runtime. You want to associate an event handler with tb1 that gets fired when the user clicks tb1. What operator will you use to associate the event handling function with the Click event of tb1? |
&= |
+= |
= |
|=
|
17. Your application assemblies need to be installed into the Global Assembly Cache. What deployment strategy should you adopt? |
Create a Setup Application |
Use XCOPY to copy the files |
Create a CAB project |
Use ClickOnce.
|
18. What method of the Xml DOM model will you use to delete a node from an Xml document? |
RemoveParent |
RemoveSibling |
RemoveChild |
RemoveNode
|
19. You have code that executes SQL statements on a database within the context of a SQLTransaction. You want to ensure that no user can perform any updates in the database until your transaction is complete. What IsolationLevel should you use? |
ReadCommitted |
Chaos |
ReadUncommitted |
Serializable
|
20. You want to make your application accessible to physically challenged users. Consider Windows Narrator. When controls receive focus, the Narrator speaks out the information given to it. Which properties does the Narrator speak out for a windows control? |
Name |
AccessibleName |
Description |
AccessibleDescription
|