Sponsored Links

Interview Questions



Advertisements MCSD.NET - 70-306 Exam Interview Questions
COOLINTERVIEW.COM MCSD .NET CERTIFICATION EXAM INTERVIEW QUESTIONS MCSD.NET - 70-306 EXAM INTERVIEW QUESTIONS QUESTIONS LISTING

MCSD.NET - 70-306 Exam Interview Questions & Answers

Below we have listed all the MCSD.NET - 70-306 Exam Interview Questions and answers. Feel free to comment on any MCSD.NET - 70-306 Exam Interview Questions or answer by the comment feature available on the page.

To buy an eBook containing 30,000 Interview Questions, with Answers, Click Here.
View All MCSD.NET - 70-306 Exam Interview Questions & Answers - Exam Mode / Learning Mode

MCSD.NET - 70-306 Exam Interview Questions & Answers

MCSD.NET - 70-306 Exam. Developing and Implementing Windows-Based Applications with Microsoft Visual Basic .NET and Microsoft Visual Studio .NET. Candidates for this exam work on a team in a medium-sized or large development environment that uses Microsoft Visual Studio .NET, Enterprise Developer Edition. Candidates have at least one year of experience developing Windows-based applications. Candidates should have a working knowledge of Microsoft Visual Basic .NET. When you pass Exam 70-306: Developing and Implementing Windows-Based Applications with Microsoft Visual Basic .NET and Microsoft Visual Studio .NET, you achieve Microsoft Certified Professional (MCP) status and earn credit toward many other certifications.

1 2 3 4 Next

Sort By : Latest First | Oldest First | By Rating

Question
Rating
View Answer
You develop a Windows-based inventory management application that interacts with a Microsoft
SQL Server database. Your application enables users to update information about items in
inventory. Each time a user changes an inventory item, your application executes a SQL Server
stored procedure XYZSP to update rows in the database. XYZSP will run many times during each
user session.
Your application will use a SqlCommand object to execute XYZSP. You must revise your code so
that the use of this object optimizes query performance.
What should you do?
A. Call the SqlCommand.DeriveParameters method before each call to
SqlCommand.ExecuteNonQuery.
B. Call the SqlCommand.Prepare method before each call to SqlCommand.ExecuteNonQuery.
C. Call the SqlCommand.DeriveParameters method before the first call to
SqlCommand.ExecuteNonQuery.
D. Call the SqlCommand.Prepare method before the first call to SqlCommand.ExecuteNonQuery.
0.2 Rating
View Answer
You develop a Windows-based application XYZInvoice that enables users to enter and edit
customer orders. XYZInvoice contains a DataSet object named orderEntryDataSet and
DataTable object named orderDataTable and orderDetailDataTable. The orderDetailDataTable
requires two columns to make a unique primary key.
You need to define a primary key for orderDetailDataTable.
What should you do?
A. Set the DataTable.PrimaryKey property to a string value that lists the column names that make
the primary key.
B. Set the DataTable.PrimaryKey property to an array of DataColumn objects that reference the
columns that make the primary key.
C. Iterate through the DataTable.Columns collection and set the DataType property of the
columns that make the primary key.
D. Create a UniqueConstraint on the columns that make the primary key.
0.2 Rating
View Answer
You create a Visual Studio .NET setup project to distribute an application. You add a SQL script
named XYZDB.SQL. You must ensure that the SQL script is executed during the installation
process. What should you do?
A. Add a custom action to your setup project.
Select XYZDB.SQL as the source path.
B. Add a batch file to your setup project to execute XYZDB.SQL.
Add a launch condition to the setup project.
Set the Condition property to the batch file.
C. Create a new Visual Studio .NET project that executes XYZDB.SQL.
Include the new project with your setup project.
Add a custom action that launches the new project during installation.
D. Add a launch condition to your setup project.
Set the Condition property to XYZDB.SQL.
0.3 Rating
View Answer
You execute a query on your external Oracle database named XYZSalesDate by using an
OleDbCommand object. The query uses the Average function to return a single value that
represents the average price of products in the inventory table. You want to optimize performance
when you execute this query.
To execute this query from your ADO.NET code, you need to use a method of the
OleDbCommand object. Which method should you use?
A. ExecuteNonQuery
B. ExecuteScalar
C. ToString
D. ExecuteReader
0.2 Rating
View Answer
You use Visual Studio .NET to develop a Windows-based application that interacts with a
Microsoft SQL Server database. Your application contains a form named CustomerForm, which
includes the following design-time components:
• SqlConnection object named XYZConnection.
• SqlDataAdapter object named XYZDataAdapter.
• DataSet object named XYZDataSet, based on a database table named Customers.
At run time you add a TextBox control named textCompanyName to CustomerForm. You execute
the Fill method of XYZDataAdapter to populate Customers. Now you want to use data binding to
display the CompanyName field exposed by XYZDataSet in textCompanyName.
Which code segment should you use?
A. textCompanyName.DataBindings.Add(“Text”, XYZDataSet,
“CompanyName”)
B. textCompanyName.DataBindings.Add(“Text”, XYZDataSet,
“Customers.CompanyName”)
C. textCompanyName.DataBindings.Add(“Text”, XYZDataAdapter,
“CompanyName”)
D. textCompanyName.DataBindings.Add(“Text”, XYZDataAdapter,
“Customers.CompanyName”).
0.2 Rating
View Answer
ou develop a Windows-based application that stores and retrieves data in a Microsoft SQL
Server database called XYZSales. Your application uses ADO.NET and the SqlClient managed
provider.
You need to identify the severity level of all errors returned from SQL Server. What should your
error-handling code do?
A. Catch the SqlException that is thrown when the error occurs and access the Source property.
B. Catch the SqlException that is thrown when the error occurs and access the Class property.
C. Examine the State property of the SqlConnection object for the status of the connection after
the error occurs.
D. Examine the DataSource property of the SqlConnection object for the status of the connection
after the error occurs.
0.2 Rating
View Answer
You use Visual Studio .NET to develop a Windows-based application that will interact with a
Microsoft SQL Server database. Your application will display employee information from a table
named XYZEmployees. You use ADO.NET to access the data from the database.
To limit the possibility of errors, you must ensure that any type of mismatch errors between your
application code and the database are caught at compile time rather than at run time.
Which two actions should you take?
(Each correct answer presents part of the solution. Choose two)
A. Create an XML schema for XYZEmployees.
B. Create an XML style sheet for XYZEmployees.
C. Create an XML namespace for XYZEmployees.
D. Create a typed DataSet object based on the XML schema.
E. Create a typed DataSet object based on the XML style sheet.
F. Create a TypeDelegator class based on the XML namespace.
0.2 Rating
View Answer
You develop a Windows-based application XYZ App by using Visual Studio .NET. XYZApp
implements ADO.NET objects to call Microsoft SQL Server stored procedures. Your database
administrator is responsible for coding and maintaining all stored procedures. Periodically, the
administrator modifies the stored procedures.
At run time, your application code must discover any changes in the way that values are passed
to and returned from the stored procedures.
Which ADO.NET object and method should you use?
A. CommandBuilder.RefreshSchema
B. CommandBuilder.DeriveParameters
C. SqlCommand.CreateParameter
D. SqlDataAdapter.GetFillParameters
0.2 Rating
View Answer
You develop an order entry application XYZOrderEntry. XYZOrderEntry uses a DataSet object
named CurrentEXOrders to maintain data in memory while users modify the data.
To CurrentEXOrders, you add DataTable object named Orders and OrderDetails. OrderDetails
contains data about each line item that is included in the order.
Users frequently discover that an order contains no entries in OrderDetails. In these situations
they delete the order from Orders.
You must ensure that users cannot delete any orders that have corresponding entries in
OrderDetails.
What should you do?
A. Add a UniqueConstraint object to CurrentEXOrders.
B. Add a ForeignKeyConstraint object to CurrentEXOrders.
C. Add a DataRelation object to CurrentEXOrders and set the ChildKeyConstraint property to
point to the appropriate column.
D. Add a DataRelation object to CurrentEXOrders and set the ParentKeyConstraint property to
the appropriate column.
0.2 Rating
View Answer
You develop a customer contact application XYZContact, that will enable users to view and
update customer data in a Windows Form. Your application uses a DataTable object and a
DataAdapter object to manage the data and interact with a central database.
Your application design must fulfill the following requirements:
• After a user completes a set of updates, the changes must be written in the database.
• The data stored in the DataTable object must indicate that the database updates are complete.
What code segment should you use?
A. DataTable.AcceptChanges()
DataAdapter.Update(DataTable)
B. DataAdapter.Update(DataTable)
DataTable.AcceptChanges()
C. DataTable.Reset()
DataAdapter.Update(DataTable)
D. DataAdapter.Update(DataTable)
DataTable.Reset().
0.3 Rating
View Answer
You use Visual Studio .NET to create an assembly, called XYZAssembly, that will be used by
other applications, including a standard COM client application.
You must deploy your assembly on the COM application to a client computer. You must ensure
that the COM application can instantiate components within the assembly as COM components.
What should you do?
A. Create a strong name of the assembly by using the Strong Name tool (Sn.exe).
B. Generate a registry file for the assembly by using the Assembly Registration tool
(Regasm.exe)
Register the file on the client computer.
C. Generate a type library for the assembly by using the Type Library Importer (Tlbimp.exe).
Register the file on the client computer.
D. Deploy the assembly to the global assembly cache on the client computer.
Add a reference to the assembly in the COM client application.
0.3 Rating
View Answer
You create an assembly by using Visual Studio .NET. The assembly is consumed by other .NET
applications to manage the creation and deletion of XML data files.
The assembly includes a method named DeleteXYZXMLFile that uses the Win32 API to delete
the XML data files. A security exception is thrown when DeleteXYZXMLFile is called from another
.NET application.
You must modify DeleteXMLFile to ensure that this method can execute functions exposed by the
Win32 API. To do so, you create a SecurityPermission object that represents the right to call
unmanaged code.
Which method of the SecurityPermission object should you call?
A. Assert
B. Demand
C. PermitOnly
D. RevertDeny

0.2 Rating
View Answer
You create an assembly by using Visual Studio .NET. The assembly is responsible for writing and
reading order entry information to and from an XML data file. The assembly also writes and reads
values to and from the Windows registry while it is being consumed.
The assembly will be distributed to client computers by using your company, XYZ, intranet. All
client computers are configured to implement the default .NET security policy.
You need to implement security in the assembly. What should you do?
A. Implement declarative security and execute the permission demand to allow access to the file
system and Windows registry.
B. Implement declarative security and execute the minimum permission request to allow access
to the file system and Windows registry.
C. Implement imperative security and execute the permission demand to allow access to the file
system and Windows registry.
D. Implement imperative security and execute the minimum permission request to allow access to
the file system and Windows registry.
0.3 Rating
View Answer
You use Visual Studio .NET to develop a Windows-based application. The application includes
several menu controls that provide access to most of the application’s functionality.
One menu option is named calculateOption. When a user chooses this option, the application will
perform a series of calculations based on information previously entered by the user.
To provide user assistance, you create a TextBox control named XYZHelp. The corresponding
text box must display help information when the user pauses on the menu option with a mouse or
navigates to the option by using the arrow keys.
You need to add the following code segment:
XYZHelp.Text = “This menu option calculates the result..”;
In which event should you add this code segment?
A. calculateOption_Click
B. calculateOption_Popup
C. calculateOption_Select
D. calculateOption_DrawItem
E. calculateOption_MeasureItem
0.2 Rating
View Answer
As a software developer at XYZ inc. you use Visual Studio .NET to create a Windows-based
application. You need to make the application accessible to users who have low vision. These
users navigate the interface by using a screen reader, which translates information about the
controls on the screen into spoken words. The screen reader must be able to identify which
control currently has focus.
One of the TextBox controls in your application enables users to enter their names. You must
ensure that the screen reader identifies this TextBox control by speaking the word "name" when a
user changes focus to this control.
Which property of this control should you configure?
A. Tag
B. Next
C. Name
D. AccessibleName
E. AccessibleRole
0.2 Rating
View Answer
You use Visual Basic .NET to develop a Windows-based application. You plan to reuse a
procedure written in Visual Basic 6.0. The procedure includes the following array declaration:
Dim Employees(1 to 10) As String
You copy and paste the array declaration from the Visual Basic 6.0 project into the new Visual
Basic .NET project. Now you must ensure that the Employees array will compile in the Visual
Basic .NET application.
What should you do?
A. Include the Option Base 1 statement in the Declaration section of the module.
B. Include the Option Base 0 statement in the Declaration section of the module.
C. Replace the Dim statement with the following code segment:
Dim Employees(0 to 9) As String
D. Replace the Dim statement with the following code segment:
Dim Employees(9) As String
E. After the Dim statement, add the following code segment:
ReDim Employees(0 to 9) As String
F. After the Dim statement, add the following code segment:
ReDim Employees(9) As String
0.2 Rating
View Answer
Question: 47. (A)
You develop a Windows Form that provides online help for users. You want the help functionality
to be available when users press the F1 key. Help text will be displayed in a pop-up window for
the text box that has focus.
To implement this functionality, you need to call a method of the HelpProvider control and pass
the text box and the help text.
Which method should you call?
A. SetShowHelp
B. SetHelpString
C. SetHelpKeyword
D. ToString
0.3 Rating
View Answer
You develop a Windows-based application that contains a class named Contact. Contact
contains an event named ContactSaved. Many Contact objects will be created from the Contact
class and inserted into an array named Contacts.
You create a custom method named HandleContactSaved in your application. You must ensure
that your application calls HandleContactSaved whenever the ContactSaved event is fired for any
of the Contact objects.
What should you do?
A. Use the WithEvents keyword to declare each Contact object.
Add each Contact object to the Contacts array as it is created.
B. Add each Contact object to the Contacts array as it is created
Add the Handles keyword to HandleContactSaved.
C. Add each Contact object to the Contacts array as it is created.
Assign HandleContactSaved to the Handle property of the HandleRef structure.
D. Add each Contact Object to the Contacts array as it is created.
Call the AddHandler statement and pass the new Contact object and the address of
HandleContactSaved.
0.3 Rating
View Answer
You develop a Windows-based application that includes the following code segment. (Line
numbers are included for reference only.)
01 Public Sub password_Validating (ByVal sender As _
02 Object, ByVal e As _.
03 System.ComponentModel.CancelEventArgs)
04 Handles password.Validating
05 If ValidPassword() = False Then
06 'Insert new code.
07 End If
08 End Sub
You must ensure that users cannot move control focus away from textPassword if
ValidPassword returns a value of False. You will add the required code on line 6.
Which code segment should you use?
A. e.Cancel = True
B. sender = textName
C. password.AcceptsTab = False
D. password.CausesValidation =False

0.3 Rating
View Answer
You develop a Windows-based application that includes the following code segment. (Line
numbers are included for reference only.)
01 Public Sub password_Validating (ByVal sender As _
02 Object, ByVal e As _.
03 System.ComponentModel.CancelEventArgs)
04 Handles password.Validating
05 If ValidPassword() = False Then
06 'Insert new code.
07 End If
08 End Sub
You must ensure that users cannot move control focus away from textPassword if
ValidPassword returns a value of False. You will add the required code on line 6.
Which code segment should you use?
A. e.Cancel = True
B. sender = textName
C. password.AcceptsTab = False
D. password.CausesValidation =False
0.2 Rating
View Answer

1 2 3 4 Next




User Options
India News Network

Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal



Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




Copyright ©2003-2024 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions