98-361 Exam Questions
344 real 98-361 exam questions with expert-verified answers and explanations. Page 6 of 7.
- Question #303
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?
- Question #304
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, To...
- Question #305
You need to start a Windows service named ProcService from the command line. Which command should you use?
- Question #306
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?
- Question #307
Your application needs to store the customer list in a text file. You want to minimize the size of this disk file and be able to open it in common text editors. Which of the follow...
- Question #308
Your C# program needs to return the total number of customers in a SQL Server database. The program will be used several times a day. What is the fastest way to return this informa...
- Question #309
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 fol...
- Question #310
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 li...
- Question #311
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...
- Question #312
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...
- Question #313
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?
- Question #314
You are developing an application that manages customers and their orders. Any solution that you develop must take the least amount of effort but offer the best performance.. Which...
- Question #315
Your application connects to a SQL Server database that contains a table called Employees with the following columns: - EmployeeID (int, identity) - EmployeeType (char(1)) - Employ...
- Question #316
Your application includes a SqlDataAdapter object named sqlDataAdapter and an OleDbDataAdapter object named oledbdataAdapter. You need to connect to the Employees table of a SQL Se...
- Question #317
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....
- Question #318
You need to develop a C# program that exports the contents of the Customers table to an XML file. The exported data must be in the following format: - <Customer CustomerID="ALFKI"...
- Question #319
You are developing a C# program for a bike rental company. Every night, your application needs to read data from a SQL Server 2000 database and write it to a flat file. This flat f...
- Question #320
You are developing an application that stores data in SQL Server 2005 database. You need to write a query that retrieves all orders in the orders table that were placed on January...
- Question #321
You need to gain a better understanding of the solution before writing the program. You decide to develop an algorithm that lists all necessary steps to perform an operation in the...
- Question #322
Which of the following languages is not considered a high-level programming language?
- Question #323
You are writing code for a business application by using C#. Write the following statement to declare an array: int[] numbers = { 1, 2, 3, 4, 5, }; Now, you need to access the seco...
- Question #324
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?
- Question #325
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?
- Question #326
You need to provide complex multi-way branching in your C# program. You need to make sure that your code is easy to read and understand. Which of the following C# statements should...
- Question #327
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...
- Question #328
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 o...
- Question #329
You are developing a C# program. You write the following code line: int x = 6 + 4 * 4 / 2 - 1; What will be the value of the variable x after this statement is executed?
- Question #330
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...
- Question #331
You have written a C# method that opens a database connection by using the SqlConnect object. The method retrieves some information from the database and then closes the connection...
- Question #332
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(...
- Question #333
You are developing a C# program. You write a recursive method to calculate the factorial of a number. Which of the following code segment should you use to generate correct results...
- Question #334
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...
- Question #335
You are developing a C# program. You write the following code: int i = 6; do { if (i == 3) break; Console.WriteLine("The value of i = {0}", i); i++; } while (i <= 5); How many time...
- Question #336
You are writing a C# program and need to select an appropriate repetition structure for your requirement. You need to make sure that the test for the termination condition is perfo...
- Question #337
You are writing a C# program. You write the following method: public static void TestSwitch(int op1, int op2, char opr) { int result; switch (opr) { case '+': result = op1 + op2; c...
- Question #338
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...
- Question #339
You are developing an algorithm before you write the C# program. You need to perform some calculations on a number. You develop the following flowchart for the calculation: If the...
- Question #340
You are writing a C# program that needs to iterate a fixed number of times. You need to make sure that your code is easy to understand and maintain even when the loop body contains...
- Question #341
You are developing code for a method that calculates the discount for the items sold. You name the method CalculateDiscount. The method defines a variable, percentValue of the type...
- Question #342
You are planning to develop a new software system for your organization. You need to review the plans, models, and architecture for how the software will be implemented. Of which o...
- Question #343
You are planning to develop a new software system for your organization. You need to review the system's technical blueprint. Which of the following participants is responsible for...
- Question #344
You are planning to develop a new software system for your organization. Someone needs to be responsible for developing system manuals and help files. Which of the following partic...
- Question #345
You are planning to develop a new software system for your organization. You need to verify that the implementation of the system matches with the requirements of the system. Which...
- Question #346
You are planning to develop a new software system for your organization. You need to review the plan for packaging, deployment, delivery, and support for the software. Which of the...
- Question #347
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...
- Question #348
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...
- Question #349
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?
- Question #350
Suppose that you are a new C# developer and are reviewing object-oriented programming fundamentals. Which of the following statements is not true?
- Question #351
You are C# developer who is developing a Windows application. You develop a new class that must be accessible to all the code packaged in the same assembly. Even the classes that a...
- Question #352
You are C# developer who is developing a Windows application. You need to provide a common definition of a base class that can be shared by multiple derived classes. Which keyword...