Study Guides and Actual Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA


Advertise

Submit Braindumps

Forum

Tell A Friend

    Contact Us

 Home

 Search

Latest Brain Dumps

 BrainDump List

 Certifications Dumps

 Microsoft

 CompTIA

 Oracle

  Cisco
  CIW
  Novell
  Linux
  Sun
  Certs Notes
  How-Tos & Practices 
  Free Online Demos
  Free Online Quizzes
  Free Study Guides
  Free Online Sims
  Material Submission
  Test Vouchers
  Users Submissions
  Site Links
  Submit Site

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Online Training Demos and Learning Tutorials for Windows XP, 2000, 2003.

 

 

 

 





Braindumps for "310-220" Exam

Certified Developer for Java Web Services

 Question 10.
Given:
11. public Bulk Response find Caller Associations(
12. Collection find Qualifiers,
13. Boolean confirmed By Caller,
14. Boolean confirmed By Other Party,
15.Collection association Types);
...
36. Business Query Manager query Mngr =
37.registry.getbusinessqueryManager();
38. Bulk Response =
39. query Mngr. find Caller Associations (null,
40.Boolean.TRUE,boolean.FALASE,null);
A developer has established a JAXR connection to a UDDI registry. The developer
executes the find Caller Associations method that is defined in lines 11-15. The context
for the method invocation is shown in lines 36-40. The invocation on line 39-40 will
return a Bulk Response object.

Which is true about the Bulk Response object?

A. It contains a Collection of Association objects that the other party has confirmed with the caller.
B. It contains a Collection of Organization objects that have confirmed the associations with the 
    caller.
C. It contains a Collection of Association objects that the other party has NOT yet confirmed with 
    the caller.
D. It contains a Collection of Key objects representing UUID keys for organizations that have 
    confirmed the associations with the caller.

Answer: C

Question 11.
A developer in a business-to-business environment is required to build a Web service client that can be strongly authenticated by a Web service.

What must the developer do to create the client?

A. use role-based security
B. implement form-based security
C. implement basic authentication
D. provide a digital certificate that is signed by a Certificate Authority

Answer: D

Question 12.
Given:








Assuming that no other namespace declarations exist, which two elements use the long type that is defined in the http://www.w3.org/2001/XMLSchema namespace? (Choose two.)

A. 
B. 
C. 
D. 

Answer: A, D

Question 13.
Given:



Assume all XML fragments are well-formed.

According to the WS-I Basic Profile 1.0a, which type definition can be used to define an array of longs?

A. 
    
    
    
    
B. 
    
    
    
    
C. 
    
    
    
    
D. 
    
    
    
    

Answer: D

Question 14.
Given:











Which two instances of a foo Element are valid? (Choose two.)

A. 
    Duke
    
    
B. 
    33
    Duke
    Monty
    
C. 
    33
   Duke
    
    
D. 
    33
    
    Monty
    
E. 
    33
    Duke
    Monty
    

Answer: B, C

Question 15.
Given:










Which two element definitions, when inserted into the given schema fragment, result in a correct schema type definition? (Choose two.)

A. 
B. 
C. 
D. 

Answer: A, C

Question 16.
Given:



root
9b3e64e326537b4e8c0ff19e953f9673





SUNW





Which describes this SOAP message?

A. It is NOT well-formed.
B. It contains a mandatory header block.
C. It is WS-I Basic Profile 1.0a compliant.
D. It does NOT contain the correct namespace declarations.

Answer: A

Question 17.
Given:









Which describes this WSDL extract?

A. The extract is WS-I Basic Profile 1.0a compliant because both port element names are 
     different.
B. The extract is NOT WS-I Basic Profile 1.0a compliant because both port elements point to the 
     same location.
C. The extract is WS-I Basic Profile 1.0a compliant because both port elements point to different 
    binding elements.
D. The extract is NOT WS-I Basic Profile 1.0a compliant because it contains two port elements in 
    the same service.

Answer: B

Question 18.
According to the JAX-RPC 1.1 XML-to-Java mappings, which three elements or attribute declarations are mapped to a Java primitive wrapper class (for example, java.lang.Short)? (Choose three.)

A. 
B. 
C. 
D. 
E. 

Answer: A, B, D

Question 19.
Which two describe the role of XML schemas in Web services? (Choose two.)

A. DTDs provide stricter data typing than XML schemas.
B. XML schemas can be used to validate the organization of XML documents.
C. Many XML technologies used by Web services are defined using XML schemas.
D. XML schemas cannot be used to validate the data contained in XML documents.

Answer: B, C

Question 20.
Which two are true about the WSDL 1.1 part element? (Choose two.)

A. Global schema types must be referenced by the type attribute.
B. Global schema elements must be referenced by the type attribute.
C. Global schema types must be referenced by the element attribute.
D. Global schema elements must be referenced by the element attribute.

Answer: A, D

Question 21.
Which EAR file can a J2EE 1.4 compatible application server refuse to accept for
deployment?

A. no application.xml
    one EJB module with J2EE 1.4 version of ejb-jar.xml
    one EJB module with J2EE 1.3 version of ejb-jar.xml
    one web module with J2EE 1.3 version of ejb-jar.xml
B. J2EE 1.4 version of application.xml
    one EJB module with J2EE 1.3 version of ejb-jar.xml
    one EJB module with J2EE 1.4 version of ejb-jar.xml
    one web module with J2EE 1.3 version of web.xml
C. J2EE 1.2 version of application.xml
    one EJB module with J2EE 1.4 version of ejb-jar.xml
    one EJB module with J2EE 1.3 version of ejb-jar.xml
    one web module with J2EE 1.3 version of ejb-jar.xml
D. J2EE 1.3 version of application.xml
    one EJB module with J2EE 1.4 version of ejb-jar.xml
    one EJB module with J2EE 1.2 version of ejb-jar.xml
    one web module with J2EE 1.2 version of ejb-jar.xml

Answer: A

Question 22.
Given





Which two are true? (Choose two.)

A. The attribute with the value Doe is bound to the urn: my company namespace.
B. The attribute with the value Frank is bound to the urn: my company namespace.
C. The attribute with the value Doe is bound to the urn: partner company namespace.
D. The attribute with the value Frank is bound to the urn: partner company namespace.

Answer: A, D

Question 23.
Given:



John
Smith




Which two are true? (Choose two.)

A. The element fname and lname cannot be bound to any namespace.
B. The element fname and lname are bound to the urn: my company namespace.
C. The namespace identified by the prefix ns2 can be bound to the element name and its 
    descendants.
D. The namespace identified by the prefix ns1 can be bound to the element employees and its 
    descendants.

Answer: C, D

Question 24.
Given:



Engineering


287277



Which is true?

A. The name element is NOT bound to any namespace.
B. The costId element is NOT bound to any namespace.
C. The employee element is NOT bound to any namespace.
D. The department and deptName elements are NOT bound to any namespace.

Answer: D

Question 25.
Which three are true about using namespace declarations in an XML document?
(Choose three.)

A. The root element always must be namespace qualified.
B. A namespace can be used to prevent element and attribute name collisions.
C. A namespace declaration that does NOT include a prefix is a default namespace.
D. A namespace must resolve to a real hostname if the namespace declaration uses an HTTP 
    URL.
E. A namespace is declared with an xmlns attribute, which can associate a prefix with the 
    namespace.

Answer: B, C, E


Google
 
Web www.certsbraindumps.com


Braindumps: Dumps for 70-536 Exam Brain Dump

Study Guides and Actual Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA


Advertise

Submit Braindumps

Forum

Tell A Friend

    Contact Us





Braindumps for "70-536" Exam

Microsoft .NET Framework 2.0- Application Development Foundation

 Question 1.
You work as the application developer at ITCertKeys.com. ITCertKeys.com uses Visual Studio.NET 2005 as its application development platform. You are in the process of storing numerical values up to 2,100,000,000 into a variable and may require storing negative values using a .NET Framework 2.0 application. You are required to optimize memory usage

What should you do?

A. Int32
B. UInt16
C. UInt32
D. Int16

Answer: A

Explanation: 
The Int32 type should be used in the scenario as it can be used to store positive and negative numerical values from -2,147,483,648 to +2,147,483,647.

Incorrect Answers:
B, C: The UINT32 and UInt16 type should not be used in the scenario because they are used to store only unsigned positive numbers.
D: The Int16 type should not be used as you will only be allowed to store values from -32768 to +32768.

Question 2
You work as an application developer at ITCertKeys.com. You are currently in the process of creating a class that stores data about ITCertKeys.com's customers. ITCertKeys.com customers are assigned unique identifiers and various characteristics that may include aliases, shipping instructions, and sales comments. These characteristics can change in both size and data type.
You start by defining the Customer class as shown below:
public class Customer
{
private int custID;
private ArrayList attributes;
public int CustomerID
{
get {return custID;}
}
public Customer (int CustomerID)
{
this.custID = CustomerID;
this.attributes = new ArrayList ();
}
public void AddAttribute (object att)
{
attributes.Add (att);
}
}
You have to create the FindAttribute method for locating attributes in Customer objects no matter what the data type is. You need to ensure that the FindAttribute method returns the attribute if found, and you also need to ensure type-safety when returning the attribute.

What should you do?

A. Use the following code to declare the FindAttribute method:
    public T FindAttribute (T att)
    {
    //Find attribute and return the value
    }
B. Use the following code to declare the FindAttribute method:
    public object FindAttribute (object att)
    {
    //Find attribute and return the value
    }
C. Use the following code to declare the FindAttribute method:
    public T FindAttribute  (T att)
    {
    //Find attribute and return the value
    }
D. Use the following code to declare the Find Attribute method:
    public string Find Attribute (string att)
    {
    //Find attribute and return the value
    }

Answer: C

Explanation: 
This code declares the method Find Attribute and specifies an argument named att using the T placeholder as the argument and return data type. To ensure the Find Attribute method accepts arguments of different types, you should specify an argument using a generic placeholder. The argument att in this generic method will accept any valid data type and ensures type-safety by returning that same data type.

Incorrect Answers:
A: You should not use this code because it does not declare the placeholder T. when declaring a generic method, you have to use the < > bracketsto declare the place holder before using it.
B: You should not use this code because it does not guarantee type-safery.
D: You should not use this code because it will only accept a string argument and return a string argument.

Question 3.
You work as an application developer at ITCertKeys.com. You are creating a custom exception class named Product Does Not Exist Exception so that custom exception messages are displayed in a new application when the product specified by users is unavailable. This custom exception class will take the Product ID as an argument to its constructor and expose this value through the Product ID. You are now in the process of creating a method named Update Product. This method will be used to generate and manage the Product Does Not Exist Exception exception if the Product ID variable contains the value 0. You need to ensure that use the appropriate code for the Update Product method. 

What should you do?

A. Make use of the following code:
public void UpdateProduct ()
{
try
{
if (ProductID == 0)
throw new ProductDoesNotExistException (ProductID);
}
catch (ProductDoesNotExistException ex)
{
MessageBox.Show ("There is no Product" + ex. ProductID);
}
}
B. Make use of the following code:
public void UpdateProduct ()
{
try
{
if (ProductID = = 0)
throw new Exception ("Invalid ProductID");
}
catch (ProductDoesNotExistException ex)
{
MessageBox.Show (ex.Message);
}
}
C. Make use of the following code:
public void UpdateProduct ()
{
if (ProductID = = 0)
throw new ProductDoesNotExistException (ProductID);
}
D. Make use of the following code:
public void UpdateProduct ()
{
if (ProductID = = 0)
throw new Exception ("Invalid ProductID");
}

Answer: A

Explanation: 
This code verifies the value of the ProductID variable by using the if statement. If the ProductID variable contains a value of 0, this code generates an exception of type ProductDoesNotExistException. To explicitly generate an exception, you are required to use the throw statement. The exception generated by using the throw statement can be handled by the try...catch block. This code generates the custom exception by calling the constructor of the custom exception class named ProductDoesNotExistException. The constructor argument is the ProductID attached to the ProductDoesNotExistException object. This code then handles the custom exception named ProductDoesNotExistException by using a catch block, which handles exceptions by using a variable named ex of the type ProductDoesNotExistException. This code displays the "There is no Product" error message by using the MessageBox.Show method and concatenating the ex.ProductID to it.

Incorrect Answers:
B: You should not use the code that generates an exception of the type Exception and handles the exception of the type ProductDoesNotExistException in the catch block. This code is incorrect because you are required to generate a custom exception named ProductDoesNotExistException.
C, D: You should not use the codes that do not use a try...catch block because the application an unhandled exception.

Question 4.
You work as the application developer at ITCertKeys.com. ITCertKeys.com uses Visual Studio.NET 2005 as its application development platform. You have recently finished development of a class named TestReward and package the class in a .NET 2.0 assembly named TestObj.dll. After you ship the assembly and it is used by client applications, you decide to move the TestReward class from TestObj.dll assembly to the TestRewardObj.dll Assembly. You are to ensure when you ship the updated TestObj.dll and TestRewardObj.dll assemblies that the client applications continue to work and do not require recompiling.

What should you do?

A. The TypeForwardedTo attribute should be used
B. The TypeConvertor.ConvertTo method should be used
C. The InternalsVisibleTo attribute should be used
D. The Type Convertor.ConvertFrom method should be used

Answer: A

Explanation: 
The statement used for you to add a type from one assembly into another assembly is the TypeForwardTo attribute which enables you not to have the application recompiled.

Incorrect Answers:
B, D: The TypeConverter class provides a unified way of converting different types of values to other types and can not be used to move a type.
C: The method in question here specifies all nonpublic types in an assembly are visible to other assemblies but can not be used to move types.

Question 5.
You work as an application developer at ITCertKeys.com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below.
* Name
* AisleNumber
* OnDiscount
You are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement. You need to achieve this by declaring the appropriate code.

What code should you use?

A. public class ShoppingList : ICollection
    {
    // Class implementation
    }
B. public class ShoppingList : IEnumerator, IEnumerable
    {
    // Class implementation
    }
C. public class ShoppingList : Ilist
    {
    // Class implementation
    }
D. public class ShoppingList : Enum
    {
    // Class implementation
    }

Answer: B

Explanation: 
You should implement the IEnumerable and IEnumerator interfaces of the System.Collections namespace to ensure that your collection class supports for each iteration. The IEnumerable interface defines only one method named GetEnumerator that returns an object of type IEnumerator of the System.Collections namespace and is used to support iteration over a collection. The IEnumerator interface supports methods, such as Current, MoveNext, and Reset to iterate through a collection. The Current method returns the current element of the collection. The Move method positions the enumerator to the next available element of the collection. The Reset method positions the enumerator before the first element of the collection.

Incorrect Answers:
A: You should not use the code that implements the ICollection interface because this interface is used to define properties in a collection. Implementing this interface will not ensure that your collection class supports foreach iteration because it does not inherit the IEnumerator interface.
C: You should not use the code that implements the Ilist interface because this interface is used to define properties of a non-generic list of items accessed by index. Implementing this interface will not ensure that your collection class supports foreach iteration because it does not inherit the IEnumerator interface.
D: You should not use the code that inherits the Enum because this structure is used as a base class for those classes that provide enumeration values. Inheriting the Enum structure will not ensure that your collection class supports foreach iteration.

Question 6.
You work as the application developer at ITCertKeys.com. ITCertKeys.com uses Visual Studio.NET 2005 as its application development platform. You are developing a .NET Framework 2.0 application used to store a type-safe list of names and e-mail addresses. The list will be populated all at ones from the sorted data which means you well not always need to perform insertion or deletion operations on the data. You are required to choose a data structure that optimizes memory use and has good performance.

What should you do?

A. The System.Collections.Generic.SortedList class should be used
B. The System.Collections.HashTable class should be used
C. The System.Collections.Generic.SortedDictionary class should be used
D. The System.Collections.SortedList class should be used

Answer: A

Explanation:
The SortedList generic class should be used in the scenario class as it provides type safety compared against the System.Collections.SortedList class.

Incorrect Answers:
B: The System.Collections.HashTable class should not be used as this class provides no type safety.
C, D: Although this is very similar to the SortedList class the SortedList class should be used instead in the scenario.

Question 7.
You work as an application developer at ITCertKeys.com. You are currently in the process of reviewing an application that was created by a fellow developer. The application that you are reviewing includes a declaration for a collection named EmployeeList, which stores Employee objects. The declaration is shown below: 
public class EmployeeList : Enumerator, IEnumerable
{
// Class implementation
}
You require the ability to iterate through the EmployeeList with minimum development effort.

What should you do?

A. Utilize the switch statement
B. Utilize the dowhile statement
C. Utilize the foreach statement
D. Utilize the if statement

Answer: C

Explanation: 
the IEnumerable and IEnumerator interfaces of the System.Collections namespace are used to ensure that your collection class supports foreach iteration. The IEnumerable interface defines only one method named GetEnumerator that returns an object of type IEnumerator of the System.Collections namespace and is used to support iteration over a collection. The IEnumerator interface supports methods, such as Current, MoveNext, and Reset to iterate through a collection. The Current method returns the current element of the collection. The Move method positions the enumerator to the next available element of the collection. The Reset method positions the enumerator before the first element of the collection.

Incorrect Answers:
A D: These statements will not allow you to iterate through the EmployeeList collection.
B: You should not use this statement because it will require manually calling the MoveNext and Current methods. The scenario states that you need to "...iterate through the EmployeeList with minimum development effort."

Question 8.
You work as an application developer at ITCertKeys.com. ITCertKeys.com has been contracted to develop an application for the local bank. You have been given the responsibility of creating this application and need to store each transaction record, which is identified using a complex transaction identifier, in memory. The bank informs you that the total amount of transaction records could reach 200 per day. To achieve this, you decide to utilize one of the existing collection classes in the .NET 2.0 class library. You need to ensure that you the collection class you select is the most efficient one for storing transaction records.

What should you do?

A. Select the ListDictionary collection class.
B. Select the HashTable collection class.
C. Select the Queue collection class.
D. Select the StringCollection collection class.

Answer: B

Explanation: 
You should select the HashTable class to store transaction records because each element is identified using a unique identifier and the size of the collection is large. Elements in the HashTable collection are stored with a key/value pair where each key is created using a hash code. The default capacity of a HashTable class is zero, and you can use the Add method to add a new element to the collection. The Count property provides the total number of elements in the HashTable collection. An element of the HashTable class can be accessed using the DictionaryEntry class. You can use the Key and Value properties of the DictionaryEntry class to access the key associated with the element and the value of the element, respectively.

Incorrect Answers:
A: You should not select this collection class because this class is used if the total number of elements to be stored in a collection is less than 10 elements in length.
C: You should not select this collection class because you need to access transaction records using a transaction identifier, not in sequential order.
D: You should not select this collection class because this class is used to manage a collection of string values.

Question 9.
You work as an application developer at ITCertKeys.com. ITCertKeys.com has been hired by a small local private school to develop a class library that will be used in an application named ManageAttendance for the purpose of managing student records. You are responsible for developing this class library. ITCertKeys.com has instructed you to create a collection in the application to store learners' results. The school has informed you that they currently only have seven learners, but that this value will triple in the following year. Due to the limited resources, you need to ensure that the collection you create consumes a minimum amount of resources.

What should you use to create the collection?

A. The HybridDictionary collection class.
B. The HashTable collection class.
C. The ListDictionary collection class.
D. The StringCollection collection class.

Answer: A

Explanation: 
You should use the HybridDictionary class to create the collection because this class is useful in scenarios where the number of elements is unknown or could grow in size. A collection of the HybridDictionary type manages the collection depending on the number of elements. The HybridDictionary type collection uses the ListDictionary class to manage the collection when there are only a few elements. When the number of elements exceeds ten, the HybridDictionary type collection automatically converts the elements into HashTable management. 

Incorrect Answers:
B: You should not use this collection class because this class is used if the total number of elements to be stored in a collection is known and is greater than ten elements in length.
C: You should not use this collection class because this class is used if the total number of elements to be stored in a collection is known and is less than ten elements in length.
D: You should not use this collection class because this class is used to manage a collection of string values.

Question 10.
You work as an application developer at ITCertKeys.com. ITCertKeys.com wants you to develop an application that stores and retrieves client information by means of a unique account number.
You create a custom collection class, which implements the IDictionary interface, named ClientDictionary. The following code have been included into the new application.
//Create Client objects
Client c1 = new Client ("AReid", "Andy Reid", Status.Current);
Client c2 = new Client ("DAustin", "Dean Austin", Status.New);
//Create ClientDictionary object
IDictionary cData = new ClientDictionary ();
cData.Add ("10001", c1);
cData.Add ("10002", c2);

You use the same method to add other Client objects to the collection. You need to ensure that you are able to retrieve client information associated with the account number 10111.

What should you do?

A. Use the following code:
    Client foundClient;
    foundClient = (Client) cData.Find ("10111");
B. Use the following code:
    Client foundClient;
    if (cData.Contains ("10111"))
    foundClient = cData ["10111"];
C. Use the following code:
    Client foundClient;
    if (cData.Contains ("10111"))
    foundClient = (Client) cData ["10111"];
D. Use the following code:
    Client foundClient;
    foreach (string key in cData.Keys
    {
    if (key == "10111")
    foundClient = (Client) cData.Values ["10111"];
    }

Answer: C

Explanation: 
This code invokes the Contains method of the IDictionary interface to determine whether a value is associated with the key 10111. If a value exists for that key, then the clientData ["10111"] statement retrieves the client data as a generic object. The code casts the generic object into a Client object, and it is stored in the foundClient variable

Incorrect Answers:
A: You should not use the code that uses the Find method because no such method exists in the IDictionary interface.
B: You should not use the code that assigns the foundClient variable to a generic object because the foundClient variable is declared as a Client type.
D: You should not use the code that iterates through the Keys collection because it is unnecessary and process-intensive.



Google
 
Web www.certsbraindumps.com


Study Guides and Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA





              Privacy Policy                   Disclaimer                    Feedback                    Term & Conditions

www.helpline4IT.com

ITCertKeys.com

Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.