98-361 Exam - Microsoft MTA Software Development Fundamentals

certleader.com

Q1. 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:

Q2. You are studying various sorting algorithms to understand, analyze, and compare the various sorting techniques. Which of the following techniques should you utilize when using the BubbleSort algorithm? 

A. comparison 

B. comparison and swap 

C. comparison and partition 

D. partition and swap 

Answer:

Q3. You develop a new ASP.NET inventory application on the Northwind Web server. You deploy the files in the folder c:\WebInventory. The application should be available via the URL www.northwind.com/inventory. The URL www.northwind.com is already set up to point to the Northwind Web server. What should you do to make your inventory application available at the expected URL? 

A. Change the name of the directory c:\WebInventory to c:\Inventory. 

B. Create a virtual directory named Inventory and point it to c:\WebInventory. 

C. Create a virtual directory named WebInventory and point it to c:\Inventory. 

D. Move the directory c:\WebInventory to the c:\inetput\wwwroot directory. 

Answer:

Q4. 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:

Q5. 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? 

A. 5 

B. 4 

C. 3 

D. 2 

Answer:

Q6. 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? 

A. while 

B. for 

C. foreach 

D. do-while 

Answer:

Q7. 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 of the following activities would accomplish this requirement? 

A. testing 

B. design 

C. release 

D. requirements analysis 

Answer:

Q8. You are developing an application that writes messages to the Windows application event log for the local machine. What should you use to view the messages written by the application?

A. Event Viewer 

B. Notepad 

C. XPS Viewer 

D. Remote Desktop Connection 

Answer:

Q9. In your application, you are using a stack data structure to manipulate information. You need to find which data item will be processed next, but you don’t want to actually process that data item yet. Which of the following queue operations will you use? A. pop 

B. push 

C. peek 

D. contains 

Answer:

Q10. You need to perform data validation to ensure that the input fields are not empty and the user's email address 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? 

A. Use JavaScript codethat executes on the Web server 

B. Use C# codethat executes on the Web server 

C. Use JavaScript code thatexecutes on the browser server 

D. Use C# code thatexecutes on the browser server 

Answer: