New Updated Microsoft MTA 98-372 Real Exam Questions and Answers Download 51-60

Ensurepass

Question 51

Which two types of actions can trigger an event? (Each correct answer presents a complete solution. Choose two.)

 

  1. User intervention, such as a mouse click.

  2. Some other program logic, such as a call to the program module.

  3. Declaring the signature of the delegate.

  4. Adding a delegate keyword.

 

Correct Answer: AC

 

 

Question 52

You need to handle only SqlException exceptions. You also need to ensure that any other exception flows back to the calling code. Which code segment should you use?

 

  1.  

98-372-demo-11

 

  1.  

98-372-demo-12

  1.  

98-372-demo-13

 

  1.  

98-372-demo-14

 

Correct Answer: C

 

 

Question 53

You write a method named DoWork. You need to log all exceptions that occur inside DoWork. You also need to ensure that all exceptions are raised to the calling code. Which code segment should you use?

 

  1.  

98-372-demo-15

 

 

 

 

 

 

 

 

  1.  

98-372-demo-16

 

  1.  

98-372-demo-17

 

  1.  

98-372-demo-18

 

Correct Answer: D

 

 

 

 

 

 

Question 54

Connection strings in the web.config file are:

 

  1. Automatically encrypted when the project is published.

  2. Automatically encrypted by the web server.

  3. Stored in binary format.

  4. Stored in clear text unless they are encrypted.

 

Correct Answer: D

 

 

Question 55

In which file does a .NET Windows application store information that has been customized for a particular instance of the application?

 

  1. App.config

  2. User.config

  3. Machine.config

  4. Web.config

 

Correct Answer: B

 

 

Question 56

You need to force the position of the cursor on the screen at (15, 10). Which code segment should you use?

 

  1.  

98-372-demo-19

 

  1.  

98-372-demo-20

 

  1.  

98-372-demo-21

 

  1.  

98-372-demo-22

 

Correct Answer: C

 

 

Question 57

You create a program that writes a status message to a file every 10 seconds. You need to ensure that all data is written to the file before the file is closed. When should you call the Flush() method?

 

  1. Before writing the entry

  2. When opening the file

  3. Before opening the file

  4. After writing the entry

 

Correct Answer: D

 

 

Question 58

You want to insert a new line on the console. Which three code fragments will display “Hello” followed by a new line? (Each correct answer presents a complete solution. Choose three.)

 

  1. Console.Write(“Hellot”) ;

  2. Console.Write(“Hellon”);

  3. Console.Error.Write(“Hellot”);

  4. Console.Error.WriteLine (“Hello”);

  5. Console.WriteLine(“Hello”);

 

Correct Answer: BDE

 

 

Question 59

Which method will be called when a FileStream is collected by the garbage collector?

 

  1. Unlock

  2. Flush

  3. Finalize

  4. EndWrite

 

Correct Answer: C

 

 

Question 60

You create a class that does not explicitly inherit from any base class. Which is the implied base type of the class?

 

  1. Type

  2. Void

  3. Object

  4. TypedReference

 

Correct Answer: C

 

 

Instant Access to Download Latest Complete Collection of Microsoft MTA 98-372 Real Exam

Try Microsoft MTA 98-372 Free Demo