Want to know Pass4sure 98 361 software development fundamentals Exam practice test features? Want to lear more about Microsoft Microsoft MTA Software Development Fundamentals certification experience? Study Validated Microsoft exam 98 361 answers to Leading exam 98 361 questions at Pass4sure. Gat a success with an absolute guarantee to pass Microsoft mta exam 98 361 (Microsoft MTA Software Development Fundamentals) test on your first attempt.
Q11. You are assisting your colleague in solving a compiler error that his code is throwing. Following is the problematic portion of his code:
try
{
bool success = ApplyPicardoRotation(100, 0);
// additional code lines here
}
catch(DivideByZeroException dbze)
{
//exception handling code
}
catch(NotFiniteNumberException nfne)
{
//exception handling code
}
catch(ArithmeticException ae)
{
//exception handling code
}
catch(OverflowException oe)
{
//exception handling code
}
To remove the compilation error, which of the following ways should you suggest to rearrange the code?
A. try
{
bool success = ApplyPicardoRotation(100, 0);
// additional code lines here
}
catch(DivideByZeroException dbze)
{
//exception handling code
}
catch(ArithmeticException ae)
{
//exception handling code
}
catch(OverflowException oe)
{
//exception handling code
}
B. try
{
bool success = ApplyPicardoRotation(100, 0);
// additional code lines here
}
catch(DivideByZeroException dbze)
{
//exception handling code
}
catch(Exception e)
{
//exception handling code
}
catch(OverflowException oe)
{
//exception handling code
}
C. try
{
bool success = ApplyPicardoRotation(100, 0);
// additional code lines here
}
catch(DivideByZeroException dbze)
{
//exception handling code
}
catch(NotFiniteNumberException nfne)
{
//exception handling code
}
catch(OverflowException oe)
{
//exception handling code
}
catch(ArithmeticException ae)
{
//exception handling code
}
D. try
{
bool success = ApplyPicardoRotation(100, 0);
// additional code lines here
}
catch(DivideByZeroException dbze)
{
//exception handling code
}
catch(NotFiniteNumberException nfne)
{
//exception handling code
}
catch(Exception e)
{
//exception handling code
}
catch(ArithmeticException ae)
{
//exception handling code
}
Answer: C
Q12. You are designing a database for your company and are reviewing the normalization for the database tables.
You review the following Customer table:
Which of the following statements is true?
A. The highest normal form of the Customer table is the first normal form.
B. The highest normal form of the Customer table is the second normal form.
C. The highest normal form of the Customer table is the third normal form.
D. The Customer table is not normalized.
Answer: C
Q13. You are developing a new application that optimizes the processing of a warehouse’s operations. When the products arrive, they are stored on warehouse racks. To minimize the time it takes to retrieve an item, the items that arrive last are the first to go out. You need to represent the items that arrive and leave the warehouse in a data structure. Which data structure should you use to represent this situation?
A. array
B. linked list
C. stack
D. queue
Answer: C
Q14. You are developing a new Windows service application that process orders. The system administrator must be able to suspend order processing while maintenance operations are in progress. When maintenance operations are completed, order processing must be resumed without the loss in any information. How should you configure this Windows service?
A. Override the OnPause method of the ServiceBase class.
B. Set the CanPauseAndContinue property of the service to true.
C. Set the CanPauseAndContinue property of the service to false.
D. Override the OnContinue method of the ServiceBase class.
Answer: B
Q15. You are developing an application that will be run from the command line. Which of the following methods would you use for getting input from to the command line?
A. File.Read
B. File.Write
C. Console.Read
D. Console.Write
Answer: C
Q16. You are C# developer who is developing a Windows application. You write the following code:
Object o;
Later in the code, you need to assign the value in the variable o to an object of Rectangle type. You expect that at runtime the value in the variable o is compatible with the Rectangle class. However, you need to make sure that no exceptions are raised when the value is assigned. Which of the following code should you use?
A. Rectangle r = (Rectangle) o;
B. Rectangle r = o;
C. Rectangle r = o as Rectangle;
D. Rectangle r = o is Rectangle;
Answer: D
Q17. Which of the following is not true about linked lists?
A. A linked list does not allow random access to its items.
B. A link to the head node can help you locate all the nodes in a linked list.
C. The items in a linked list must be stored in contiguous memory locations.
D. Linked lists are extremely fast in performing insert and delete operations.
Answer: C
Q18. You are developing an application that needs to retrieve a list of customers and their orders from a SQL Server database. After the list is retrieved, you should be able to display this data, even when a connection to the SQL Server is not available. Which of the following classes should you use to hold the data?
A. DataAdapter
B. DataSet
C. DataView
D. SqlDataReader
Answer: B
Q19. You are developing an application that needs to copy data from a SQL Server table to a DataSet. Which of the following methods should you use to copy the data?
A. Fill
B. FillSchema
C. GetFillParameters
D. Update
Answer: A
Q20. You are developing a user interface component that responds to user actions such as keystrokes. Which of the following programming constructs should you use to accomplish this requirement?
A. event
B. class
C. delegate
D. property
Answer: A