Our pass rate is high to 98.9% and the similarity percentage between our 98 361 software development fundamentals study guide and real exam is 90% based on our seven-year educating experience. Do you want achievements in the Microsoft 98 361 software development fundamentals exam in just one try? I am currently studying for the Microsoft software development fundamentals mta exam 98 361 exam. Latest Microsoft mta 98 361 Test exam practice questions and answers, Try Microsoft exam 98 361 Brain Dumps First.
Q21. The application you are developing needs to write data to a flat file that include items such as a five-digit integer key, followed by a 20-character customer name, followed by two date and time fields. Your solution should be as fast as possible and should create smallest size data file. Which of the following classes should you use?
A. FileStream
B. StreamWriter
C. BinaryWriter
D. DataWriter
Answer: C
Q22. You are developing an ASP.NET application using C#. On your Web page, you want to display the results returned by a C# method named GetShipmentStatus when the page is rendered to the client. Which of the following code segments should you use to call the GetShipmentStatus method?
A. <script language="c#" runat="server">
Response.Write(GetShipmentStatus());
</script>
B. <script language="c#" runat="client">
Response.Write(GetShipmentStatus());
</script>
C. <script language="c#">
Response.Write(GetShipmentStatus());
</script>
D. <%= GetShipmentStatus() %>
Answer: D
Q23. You need an application that updates the inventory every morning when you log in to the workstation. If an error occurs during update, the application needs to log messages to a text file. The application doesn’t need any user interaction. You want to automate the process that launches the application. You want to minimize the efforts for developing, installing, and updating the application. Which type of application should you create?
A. Windows Service
B. Windows Form
C. Web Form
D. console application
Answer: D
Q24. You are writing code to handle events in your program. You define a delegate named PolygonHandler like this:
public delegate void PolygonHandler(Polygon p);
You also create a variable of the PolygonHandler type as follows:
PolygonHandler handler;
Later in the program, you need to add a method named CalculateArea to the method invocation list of the handler variable. The signature of the CalculateArea method matches the signature of the PolygonHandler method. Any code that you write should not affect any existing event-handling code. Given this restriction, which of the following code lines should you write?
A. handler = new PolygonHandler(CalculateArea);
B. handler = CalculateArea;
C. handler += CalculateArea;
D. handler -= CalculateArea;
Answer: C
Q25. Your application includes a SqlDataAdapter object named sqlDataAdapter that connects to the Employees table. You use the Fill method to retrieve the data from the Employees table. The SqlDataAdapter's Connection property is set to a valid connection to the SQL Server database, but the connection is in the closed state. Which of the following statements is true about the working of the Fill method?
A. The Fill method will throw an exception because the connection is closed.
B. The Fill method will open the connection, read the data, and leave the connection open.
C. The Fill method will open the connection, read the data, and leave the connection closed.
D. The Fill method will return an emptyresult setbecause the connection is closed.
Answer: C
Q26. You have developed a Windows Forms application that stockbrokers will use. The stockbrokers need to view data for multiple stocks at the same time. You need to change the display and behavior of a Windows Form so that it can contain multiple child windows. What should you do?
A. Set the IsMdiChild property of the form.
B. Set the MdiParent property for all the child windows.
C. Set the MdiChild property of the form.
D. Set the IsMdiContainer property of the form to true.
Answer: D
Q27. You have developed two console applications. The first, DisplayFile.exe, accepts the name of a text file as a command-line argument and displays the file’s contents. The second, ToUpper.exe, accepts text from users and converts the text to uppercase letters. You need to combine both commands so that contents of a given file (sample.txt) can be displayed in uppercase letters. Which of the following commands would you choose?
A. ToUpper | DisplayFile Sample.txt
B. DisplayFile Sample.txt | ToUpper
C. ToUpper > DisplayFile Sample.txt
D. DisplayFile Sample.txt > ToUpper
Answer: B
Q28. You are developing a C# application. You need to decide whether to declare a class member as static. Which of the following statements is true about static members of a class?
A. You can use the this keyword reference with a static method or property.
B. Only one copy of a static field is shared by all instances of a class.
C. Static members of a class can be used only after an instance of a class is created.
D. The static keyword is used to declare members that do not belong to individual objects but to a classitself.
Answer: D
Q29. You are developing an ASP.NET application that uses a Web service created by one of your large customers. This Web service provides you with the Order object, which has several properties. The developer of the Web service has informed you that a new property named Priority has added to the Order object. What should you do to be able to use the Priority property in your code with minimum effort?
A. Create a new ASP.NET application and add a Web reference to the Web service in the new application.
B. Delete and re-create the Web reference in the existing ASP.NET application.
C. Update the Web reference in the existing ASP.NET application.
D. Ask the developer of the Web service forthe updatedDLL file of the Web service. Add a reference to theDLL in your ASP.NET project.
Answer: C
Q30. You are developing an algorithm for a retail Web site. You need to calculate discounts on certain items based on the quantity purchased. You develop the following decision table to calculate the discount:
If a customer buys 50 units of an item, what discount will be applicable to the purchase?
A. 5 percent
B. 10 percent
C. 15 percent
D. 20 percent
Answer: C