aiotestking uk

98-361 Exam Questions - Online Test


98-361 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

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

A. LocalSystem 

B. NetworkService 

C. LocalService 

D. User (where the UserName property is set to a member of non-administrator role) 

Answer:

Q2. You are writing code for a class named Book. You should be able to get a list of all books sorted by the author’s last name. You need to write code to define this behavior of a class. Which of the following class elements should you use? 

A. method 

B. property 

C. event 

D. delegate 

Answer:

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

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

A. 10 

B. 11 

C. 12 

D. 13 

Answer:

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

Q6. You are developing a C# application. You create a class of the name Widget. You use some third-party libraries, one of which also contains a class of the name Widget. You need to make sure that using the Widget class in your code causes no ambiguity. Which C# keyword should you use to address this requirement? 

A. namespace 

B. override 

C. delegate 

D. class 

Answer:

Q7. You are developing an ASP.NET applications that calls Web service to retrieve inventory information. You know the URL of the Web service. You need to invoke the methods of this Web service within your Web application. How can you generate the client-side proxy classes so that you can use the Web methods? 

A. Use the Web service discovery tool. 

B. Copy the .ASMX file from the Web server to the ASP.NET application project. 

C. Copy the build output from the Web server to the ASP.NET application project. 

D. Set a Web reference to point to the Web service. 

Answer:

Q8. As you design a database for your company, you review the normalization rules for the database tables. You need to ensure that your table design meets the requirements for the third normal form. Which of the following statements must be true for your tables? (Choose all that apply.) 

A. None of the columns in the table should have multiple values in the same row of data. 

B. All non-key columns are functionally dependent on the entire primary key. 

C. At least one non-key column is functionally dependent on the entire primary key. 

D. Non-key attributes don’t share any functional dependency. 

E. Non-key attributes share functional dependency. 

Answer: ABD 

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

A. Change the code in line 01 to int count = 1; 

B. Change the code in line 02 to: while (count == 5) 

C. Change the code in line 02 to while (count >= 5) 

D. Change the code in line 05 to ++count; 

Answer:

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