Home > news
Source : Test4passClick : 136
 
Date:2010-1-14 10:22

Microsoft 70-540 exam real braindumps answer

Microsoft 70-540  exam real braindumps answer

Exam 70-540 :
TS: Microsoft  Windows Mobile 5.0 - Application Development
Published: February 28, 2007
Language(s): English, French, German, Japanese, Spanish, Chinese (Simplified)
Audience(s): Developers
Technology: Microsoft  Visual Studio 2005
Type: Proctored Exam

overview:

About this Exam
When the exam begins, you can choose the code language in which the code snippets will appear. The available code languages

for this exam will be:
Microsoft Visual Basic 2005
Microsoft Visual C# 2005
 
Audience Profile
This exam is intended for expert Windows Mobile application developers. The qualified candidate for this exam typically has:
Experience with and/or knowledge of .NET Framework concepts such as types, garbage collection, MSIL, CLR
1-2 years experience working with .NET Framework
At least 1 year of experience working with .NET Compact Framework
1-2 years programming in Visual Basic .NET or Visual C#
6 months to 1 year hands-on experience with SQL CE/Mobile/Everywhere
Working knowledge of SQL Server 2000/2005
Experience developing applications for devices by using Visual Studio .NET
Enterprise application development background
Experience with Windows Mobile 5.0 Managed API
Candidate for this exam is NOT NECESSARILY a native/embedded developer.

Credit Toward Certification
When you pass Exam 70-540 : TS: Microsoft Windows Mobile 5.0 - Application Development, you complete the requirements for the

following certification(s):
Microsoft Certified Technology Specialist (MCTS): Windows Mobile 5.0 Applications

Note This preparation guide is subject to change at any time without prior notice and at the sole discretion of Microsoft.

Microsoft exams might include adaptive testing technology and simulation items. Microsoft does not identify the format in

which exams are presented. Please use this preparation guide to prepare for the exam, regardless of its format. 

Microsoft  70-540 exam lastest braindumps and answer

1. You are creating a Microsoft Windows Mobilebased application.

The application stores real-time order information for small businesses. The number of orders ranges from

a minimum of 0 to a maximum of 5000.

You need to ensure that the application achieves optimum performance for any number of orders within the

specified range.

Which class should you choose?

A. OrderedDictionary

B. HybridDictionary

C. ListDictionary

D. Hashtable

Answer: B

2. You are creating a Microsoft Windows Mobilebased application. You are required to create custom data

types that derive from a system type.

The system type must satisfy the following requirements:

Ensure the type safety of collections during compilation.

Improve the code readability of the application.

Minimize the potential for run-time errors.

You need to identify the system type that meets the outlined requirements.

Which system type should you choose?

A. Delegate type

B. Nullable type

C. Generic type

D. Value type

Answer: C

3. You are creating a Microsoft Windows Mobilebased application.

The application uses a custom exception class named MyException that transmits stack information. The

MyException    class  is derived  from  the  Exception  class.  The  application  contains  a  method   named

ThrowException.

You write the following code segment.

try { ThrowException(); }

The ThrowException method throws an exception of type MyException.

You need to rethrow the exception. You also need to preserve the stack information of previous exceptions.

Which code segment should you use?

A. catch ( MyException ex) {

     throw new Exception( ex.Message );

   }

B. finally {

      throw new MyException();

   }

C. catch {

      throw;

   }

D. catch (Exception ex) {

      throw ex;

   }

Answer: C

4. You are creating a Microsoft Windows Mobilebased application.

You create a class named InventoryManager. The InventoryManager class uses events to alert subscribers

about changes in inventory levels.

You need to create delegates in the InventoryManager class to raise events to subscribers.

Which code segment should you use?

A. public event InventoryChangeEventHandler OnInventoryChange;

   public delegate void InventoryChangeEventHandler                  (object source, EventArgs e);

B. private event InventoryChangeEventHandler OnInventoryChange;

   private delegate void InventoryChangeEventHandler                  (object source, EventArgs e);

C. public event EventHandler OnInventoryChange;

   public void InventoryChangeHandler(object source, EventArgs e) {

      this.OnInventoryChange();

   }

D. private event EventHandler OnInventoryChange;

   private void InventoryChangeHandler(object source, EventArgs e) {

      this.OnInventoryChange();

   }

Answer: A

5. You are creating a Microsoft Windows Mobilebased inventory application.

The application must create reports that display inventory part numbers.

You need to write a method named WritePart that displays the part numbers in the following format:

A minimum of three digits to the left of the decimal point

Exactly two digits to the right of the decimal point

Left-aligned output

Which code segment should you use?

A. public static void WritePart(IFormattable t, CultureInfo ci) {

      Console.WriteLine

       ("{0,-30}{1,30}", "Part:", t.ToString("000.00", ci));

   }

B. public static void WritePart(IFormattable t, CultureInfo ci) {

      Console.WriteLine

       ("{0,-30}{1,30}", "Part:", t.ToString("000.##", ci));

   }

C. public static void WritePart(IFormattable t, CultureInfo ci) {

      Console.WriteLine

       ("{0,30}{1,30}", "Part:", t.ToString("###.##", ci));

   }

D. public static void WritePart(IFormattable t, CultureInfo ci) {

      Console.WriteLine

       ("{0,30}{1,30}", "Part:", t.ToString("###.00", ci));

   }

Answer: A

6. You are creating a Microsoft .NET Compact Framework application. The application uses a StringBuilder

class to manipulate text. You write the following code segment.

StringBuilder sb = new StringBuilder(100);

After the code segment is executed, the text buffer of the StringBuilder class displays the following text:

Microsoft Corporation, Redmond, WA.

You need to write a code segment to clear the text of the StringBuilder class.

Which code segment should you use?

A. sb.Capacity = 0;

B. sb.Length = 0;

C. sb.Replace(sb.ToString(), "", 0, 100);

D. sb.Remove(0, 100);

Answer: B

7. You are creating a Microsoft Windows Mobilebased application. The application will manage product

inventory for retail stores. You are creating a class that will contain a method named Contains. The method

will search for the items in the store. The items are of reference types and value types.

You need to identify the code that uses the minimum amount of execution time for both reference types and

value types.

Which code segment should you use?

A. public bool Contains(T[] array, T value) {

      for (int i = 0; i < array.Length; i++) {

         if (EqualityComparer<T>.Default.Equals(array[i], value))

           return true;

      }

      return false;

   }

B. public bool Contains(T[] array, object value) {

      for (int i = 0; i < array.Length; i++) {

         if (array.GetValue(i).Equals(value))

           return true;

      }

      return false;

   }

C. public bool Contains(IEnumerable array, object value) {

      foreach (object obj in array) {

         if (obj.Equals(value))

           return true;

      }

      return false;

   }

D. public bool Contains(IEnumerable array, object value) {

      foreach (object obj in array) {

         if (obj == value)

           return true;

      }

      return false;

   }

Answer: A

8. You are creating a Microsoft Windows Mobilebased application.

You  create  a  class  named  Employee.  You  also  create  an  Executive  class,  a  Manager  class,  and  a

Programmer class. These three classes inherit from the Employee class.

You need to create a custom type-safe collection that manages only those classes that are derived from the

Employee class.

Which code segment should you choose?

A. class EmployeeCollection < T > : List < T >

B. class Emp l oyeeCollection < T > : ICollection

C. class EmployeeCollection < T > : CollectionBase where T:class

D. class EmployeeCollection < T > : CollectionBase where T:Employee

Answer: D

9. You are creating a multithreaded Microsoft Windows Mobilebased application.

The application has two separate procedures. Each procedure must run on its own threads.

public void ThreadProc1() { }

public void ThreadProc2() { }

ThreadProc1 must complete execution before ThreadProc2 begins execution.

You need to write the code segment to run both procedures.

Which code segment should you use?

A. Thread thread1 = new Thread(new ThreadStart(ThreadProc1));

   Thread thread2 = new Thread(new ThreadStart(ThreadProc2));

   thread1.Start();

   ...

   thread1.Join();

   thread2.Start();

B. Thread thread1 = new Thread(new ThreadStart(ThreadProc1));

   Thread thread2 = new Thread(new ThreadStart(ThreadProc2));

   lock(thread1) {

      thread1.Start();

      ...

   }

   thread2.Start();

C. Thread thread1 = new Thread(new ThreadStart(ThreadProc1));

   Thread thread2 = new Thread(new ThreadStart(ThreadProc2));

   thread1.Start();

   ...

   Monitor.TryEnter(thread1);

   thread2.Start();

   Monitor.Exit(thread1);Reset         Instructions     Calculator

D. .Thread thread1 = new Thread(new ThreadStart(ThreadProc1));

   Thread thread2 = new Thread(new ThreadStart(ThreadProc2));

   thread1.Start();

   ...

   Interlocked.Exchange(ref thread1, thread2);

   thread2.Start();

Answer: A

10.  You  are  creating  a  Microsoft  .NET  Compact  Framework  application.  You  write  the  following  code

segment.

public class Target {

   public void SetValue(int value) { }

}

You need to write a method named CallSetValue that calls the SetValue method by using late binding.

Which code segment should you use?

A. public void CallSetValue(int value) {

      Target target = new Target();

      MethodInfo mi = target.GetType().GetMethod("SetValue");

      mi.Invoke(target, new object[] { value });

   }

B. public void CallSetValue(int value) {

      Target target = new Target();

      MethodInfo mi = target.GetType().GetMethod("Target.SetValue");

      mi.Invoke(target, new object[] { value });

   }

C. public void CallSetValue(int value) {

      Target target = new Target();

      MethodInfo mi = target.GetType().GetMethod("Target.SetValue");

      mi.Invoke(value, null);

   }

D. public void CallSetValue(int value) {

      Target target = new Target();

      MethodInfo mi = target.GetType().GetMethod("SetValue");

      mi.Invoke(value, null);

   }

Answer: A

HOT EXAM :70-290  70-291  70-680  70-294  70-528  70-450  test4pass


Guarantee | Buying Process | F.A.Q. | Payment | Refundment Term | Semples | Testing Engine | privacy | Contact | Sitemap 1 2 3 4

Copyright©2006-2009 sale test4pass Limited. All Rights Reserved

sale test4pass materials do not contain actual questions and answers from Microsoft's Cisco's Certification Exams.