98-361 - Software Development Fundamentals

Go back to Microsoft

Exam FAQ

How much does the 98-361 exam cost? What is the best way to study for the 98-361 exam?

Example Questions

You are developing a restaurant locator Web sitr in ASP.NET and C#. As users browse through the Web site, each of the Web pages must display a list of the the recently viewed restaurant in the lower left corner. You want this information to be available across Web pages and browser restarts but do not want to use server-side resources to accomplish this. Which of the following state management techniques will help you accomplish this requirement with minimum effort? You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development purposes. You are in the process of defining a class to provide functionality for executing custom pivot transforms on big data sets. You have been informed that derived classes should be prevented from inheriting the functionality of the class. What action should you take? You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development purposes. You have been instructed to create a new program for ABC.com. You are planning to make use of a queue data structure. Which of the following options are TRUE with regards to the queue data structure? Which of the following languages is not considered a high-level programming language? You are employed as a developer at ABC.com. You are in the process of creating a Web service using ASP.NET. You have attached the WebMethod attribute to a Public method. Which of the following options describe your reasons for doing this? (Choose all that apply.) You are writing a C# program that needs to manipulate very large integer values that may exceed 12 digits. The values can be positive or negative. Which data type should you use to store a variable like this? 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? You are employed as a developer at ABC.com. ABC.com makes use of SQL Server 2005 databases in their environment. You want to make sure that all ABC.com's orders processed on the 8th May 2012 are returned by a query to the ABCOrders database table. You start by writing the line of code shown below: SELECT * FROM Orders Which of the following is the line of code that would suitably complete the query? You are developing a new Web page. You need to create hyperlinks that point to other pages on the World Wide Web. Which of the following methods should you use to create these hyperlinks on your Web page? You are updating an existing Windows Forms application. The form hosts a DateTimePicker control named dateTimePicker1. You need to write code that executes when the value of the dateTimePicker1 control is changed. You write a method, ProcessValueChanged, that contains the code you want to execute. What code should you write to invoke the ProcessValueChanged method? Any code that your write must not affect existing functionality of the application. You are developing a program that performs frequent insert and delete operations on the data. Your requirement also dictates the capability to access previous and next records when the user clicks the previous or next button. Which of the following data structures will best suit your requirements? Suppose that you are a new C# developer and are reviewing object-oriented programming fundamentals. Which of the following statements is not true? You are writing a method named PrintReport that doesn't return a value to the calling code. Which keyword should you use in your method declaration to indicate this fact? You are reviewing a C# program. The program contains the following class: public struct Rectangle { public double Length {get; set;} public double Width { get; set; } } The program executes the following code as part of the Main method: Rectangle r1, r2; r1 = new Rectangle { Length = 10.0, Width = 20.0 }; r2 = r1; r2.Length = 30; Console.WriteLine(r1.Length); What will be the output when this code is executed? You are developing a Windows forms application used by a government agency. You need to develop a distinct user interface element that accepts user input. This user interface will be reused across several other applications in the organization. None of the controls in the Visual Studio toolbox meets your requirements; you need to develop all your code in house. Which of the following actions should you take? 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? You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development purposes. You have received instructions to create a new program for ABC.com using C#. You are informed that the new program should allow for intricate multi-way branching. Furthermore, the code used must not be difficult to make sense of. What is the option you should use? You are developing a new application that optimizes the processing of a manufacturing plant’s operations. You need to implement a data structure that works as a “buffer” for overflow capacity. When the manufacturing capacity is available, the items in the buffer need to be processed in the order in which they were added to the buffer. Which data structure should you use to implement such buffer? You are developing a C# program that makes use of a singly linked list. You need to traverse all nodes of the list. Which of the following items will you need to accomplish this requirement? You need to gain a better understanding of the solution before writing the program. You decide to develope an algorithm that lists all necessary steps to perform an operation in the correct order. Any tecnique that you use should minimize complexity and ambiguity. Which of the following tecniques should you use? You are writing a C# program that iterates through a collection such as arrays and lists. You need to make sure that you process each item in the collection once. You also need to ensure that your code is easy to read and debug. Which of the following C# statements provide the best solution for this requirement? You are employed as a developer at ABC.com. You are using ASP.NET and C# to develop a new Web site for ABC.com. You have created a new application for ABC.com using C#. The new application must be able to retrieve a single value from a ABC.com SQL Server database. 40 You want to make sure that this process takes as little time as possible. What option should you make use of? Which of the following is not true about linked lists? You need to update the Products table and remove all discontinued products. When the products are discontinued, the value of the field Discontinued is set to true. Which of the following SQL statements should you use to make changes to the Products table? You are creating a new class named Sphere derived from the Shape class. The Shape class has the following code: class Shape { public virtual void Area() { // additional code... } } The Area method in the Shape class should provide new functionality but also hide the Shape class implementation of the Area method. Which code segment should you use to accomplish this? Arrange the various activities of an application lifecycle in the order in which they are likely to occur. You have developed a Windows service that needs to access data stored in the Windows Registry. Which of the following accounts should you use for running this Windows service? You are C# developer who is developing a Windows application. You need to provide derived classes the ability to share common functionality with base classes but still define their own unique behavior. Which object-oriented programming concept should you use to accomplish this functionality? 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? You are developing a sorting algorithm that uses partitioning and comparison to arrange an array of numbers in the correct order. You write a method that partitions the array so that the items less than pivot go to the left side, whereas the items greater than pivot go to the right side. The partitioning method has the following signature: static int Partition (int[] numbers, int left, int right, int pivotIndex) Which of the following algorithms should you use to sort the array using the Partition method? You are developing a Windows application. The user needs to work with multiple windows of the application at the same time and needs a simplified interface. The application needs to be compatible with different display configurations, such as multiple monitors. Which of the following interfaces should you create? You are employed as a developer at ABC.com. ABC.com makes use of SQL Server in their environment. You have been instructed to create a Windows service. This Windows service must have the ability to retrieve data hosted by the Windows Registry. What action should you take? 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? You are employed as a developer at ABC.com. You have been instructed to create a new program for ABC.com. You want to make sure that when you fix a problem with the program, it does not negatively affect the rest of the program. You need to employ a suitable testing strategy. What option should you use? 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? You are developing an application that uses the Stack data structure. You write the following code: Stack first = new Stack(); first.Push(50); first.Push(45); first.Pop(); first.Push(11); first.Pop(); first.Push(7); What are the contents of the stack, from top to bottom, after these statements are executed? You are in the process of developing a new software application. As defects are reported, you take the necessary steps to fix them. You need to make sure that each new fix doesn’t break anything that was previously working. Which type of testing should you use? You are developing code that defines an InitFields method. The method takes two parameters of data type double and does not return any value to the calling code. Which of the following code segments would you use to define the InitFields method? You are developing a C# program. You write the following code: 01: int count = 0; 02: while (count < 5) 03: { 04: if (count == 3) 05: break; 06: count++; 07: } How many times will the control enter the while loop? You are employed as a developer at ABC.com. ABC.com uses Visual Studio in their business. You recently made use of C# to develop a new Web service that supports mapping data. You want to make sure that the Web service produces the proper output using the least amount of effort. Which of the following actions should you take? You are developing a C# program. You write the following code: int x = 10 int y = ++x int x = y++; What will be the variable z after all the above statements are executed? You need to update the Region fields for customers whose reference code is "TKY". The updated Region should be set to "Japan". Also, this change should affect only customers who live in Tokyo. Which of the following SQL statement should you use? You have developed a Windows service and need to install it to implement its functionality. Which of the following options should you use to accomplish this task? 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? Suppose that you are writing code for a class named Product. You need to make sure that the data members of the class are initialized to their correct values as soon as you create an object of the Product class. The initialization code should always be executed. What should you do? You are developing a C# program that needs to perform 5 iterations. You write the following code: 01: int count = 0; 02: while (count <= 5) 03: { 04: Console.WriteLine("The value of count = {0}", count); 05: count++; 06: } When you run the program, you notice that the loop does not iterate five times. What should you do to make sure that the loop is executed exactly five times? You are developing an order-entry application that will be used by all employees in your company. You use ASP.NET to develop this application and deploy it on the company's Internet Information Services (IIS) server. What should you install on the users computers before they can access the order-entry application? 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? You have completed developing several major features of a new software application. You plan to provide an early look at the product to important customers to gather some early feedback. Your application still misses features and you haven’t yet optimized the application for performance and security. Which kind of testing should you perform with a limited number of important customers? You need to performe data validation to ensure that the input fields are not empty and the user's email adress and phone numbers have been provided in the required format. You need to minimize the transmission of information across the networks. Which of the following coding approaches should you follow?

Study Guides