JULY's Personal Webpage

Thế giới vốn không công bằng … hãy thích nghi với chúng!!!

qqqqqqqqqqqq

Posted by JULY on December 4, 2009

Webservice

1. Which of the following Web Service generic architecture layer interacts, accepts, requests from and parses client applications ?(choose one) (knowledge of session 1 page 26/51 of CD)

  1. Data access Layer
  2. Web Service façade Layer
  3. 3. Listener Layer
  4. Web Service Logic Layer

2. Which of the following is design technique wherein the modules of an application communicate with each other without being concerned with each other’s internal implementation ?(choose one)(knowledge of session 2, page 4/51 of CD)

  1. 1. Loose couping
  2. Light couping
  3. Loose conesion
  4. Light conesion

3. Which one of the following statements of WSDL defines the message format and protocol details for each port ?(knowledge of session 3,page 12/32 of CD)

  1. 1. Binding
  2. Port
  3. MessageUser
  4. Types

4. Which of the following Web Service implementation layers always recieves SOAP requests message first ?

  1. SOAP processing Layer
  2. Processing Layer
  3. Interaction Layer
  4. Binding Layer

5. Which data structure of the UDDI represents a relationship between two business entities or service providers ?(knowledge of session 5, page 19/29 of CD)

  1. businessEntity
  2. businessService
  3. 3. publisherAssertion
  4. businessProtocol

6. The ……… option of the wsdl.exe tool specifies the programming language used the generating the proxy class (knowledge of session 7, page 08/31 of CD)

  1. url
  2. 2. language
  3. protocol
  4. out

7. Which of the following are the ways in which an SDI can be obtained from the service provider by a client ? (chooes more)

  1. Direct
  2. Indirect
  3. HTTP Get request
  4. Dynamic Discovery
  5. Static Discovery

8. Following is a series of steps to consume a Web Service which of the following indicates the correct sequence of the steps to achieve it ?(lnowledge of session 7, page 04/31 of CD)

  1. Include the namespace of the proxy to the client code
  2. Locate the XML Web Service
  3. Access the XML Web Service using the proxy object
  4. Create an instance of the proxy class in the client code
  5. Create a proxy class by adding a Web Reference to the application

2-1-5-4-3

9. Which of the following are the ways of broadcasting errors thrown by Web Services to the client?(knowledge of session 8, page 26/37 of CD)

  1. Throw a SoapException exception
  2. Throw a SoapHeaderException exception
  3. Throw an exception specific to the problem
  4. Allow ASP.NET to throw the exception

1-2-3-4

10. The … configuration option of the <WebServices> element determines whether exceptions should be returned to the client for debugging. (knowledge of session 06,page 16/24 of CD)

  1. 1. Diagnostics
  2. Configuration
  3. Protocols
  4. soapExtensionTypes

11. Following is a series of steps to debug a Web Service which of the following indicates the correct sequence of the steps to achieve it ?(knowledge of session 9, page 22/35 of CD)

  1. Open the deployed Web Service’s .asmx file in Microsoft Visual Studio 2005
  2. Open the code-behind file of the Web Service
  3. Set breakpoint(s) in the code by clicking on the left margin next to the line number…
  4. Test the Web Service The debugger halfs the execution at the breakpoint
  5. Use the appropriate Debug Windows for debugging.

1-2-3-4-5

12. Following is a series of steps to exchange data using Remote Proceduce Call (RPC)  Which of the following indicates the correct sequence of the step to achieve it ?(Knowledge of session 1,page 14/51 of CD)

  1. Unmarshall the data by the server stub and invoke the actual method
  2. Marshall the data by the client stub and transmit over the network
  3. Connect to a RPC server and send the arguments for invoking remote methods
  4. Marshall the return values by the server stub and transmit over the network to the …
  5. Unmarshall the return values by the client stub

3-2-1-4-5

13. Following is a series of tasks involved in the life cycle of Web Service . Which of the following indicates the correct sequence of the steps to achieve it ?(knowledge of session 1, page 27/51 of CD)

  1. Call the Web Service
  2. Register the Web Service on some central network node
  3. Locate the Web Service on the Web
  4. Define the service interface and Web Service methods
  5. Design a Web Service

5-4-2-3-1

14. Which of the following are the advantages of a Web Service ?(Knowledge of session 01,page 35/51 of CD)

  1. Allows cross business intergration and legacy applications
  2. Keep track of the activities
  3. Reduces cost for deploying Web Service
  4. Reduces complexity by providing encapsulation
  5. Provides increased efficiency, scalability, and maintainability

1-4-5

15. The XML-base registry that allows remote clients to access and search the Web Service is …………

  1. 1. UDDI
  2. Windows registry
  3. UDI
  4. deXML

16. Which one of the following describes information about the Web Service in XML format ?(knowledge of session 3,page 1/32 of CD)

  1. SOAP
  2. UDDI
  3. JAX-RPC
  4. 4. WSDL

17. Which one of the following elements of WSDL describes the various operations as methods provided by a Web Service ?(knowledge of session 03,page 12/32 of CD)

  1. binding
  2. 2. portType
  3. Message
  4. types

18. Which one of the following lightweight protocols enables programs to interface irrespective of the undertying operating systems and firewalls involved ?(knowledge of session 04,page 13/40 of CD)

  1. CORBA
  2. 2. SOAP
  3. RMI
  4. DCOM

19. What is the purpose of UDDI bindingTamplate ?

  1. It represents the binding of a Web Service with its URL and its Moders
  2. 2. It contains the information for invoking a registerred business API
  3. It contains information about the service running behind a firewall
  4. It processes the runtime bindingTamplate information to retrieve the logic token.

20. The feature of dividing and delegating the computing tasks to different interconnected machines on the network is termed as ………

  1. 1. Distributing
  2. Decentralization
  3. Decomposition
  4. Degradation



WEB SERVICE

Q1/ ___________ is a set of modular services by a single or group of companies to collectively define a business process.?

a/  web service

b/ modular service

c/ business serivece

d/ web site

e/ web applicastion

Q2/ In _____the encoding of the input and output messages for the web service is defined

a/ bindings

b/ output

c/ operations

d/ message

Q3/ ________ is alight-weight protocoal which is standard messageing format over the web service communication.

a/ HTTP

b/ UDP

c/ SOAP

d/ messaging protocol

Q4/ What is the function of a HTTP GET operation.?

a/ The page is called and the string and value of simple parameters are passed.

b/ An operation to call the web service.

c/ The parameters are passed in the standar url encoded form variables.

Q5/ Which of the following are the advanteages of web service es?

1/ Straight business interation

2/ Improved evfficiency

3/ Facilitates just-in-time integration

4/ Slow buiness decisions

a/ 1 – 2 – 3 – 4               b/ 2 – 3 – 4              c/ 1 – 2 – 3           d/ 1 and 4          e/ 2 and 3

Q6/ Every wsdl file has a root element.______ elemente has the default namespaces declaration for the wsdl document .other parts of the wsdl document also appear within it.

a/ declarion.                             b/ default                        c/  namespaces               d/ definitions

Q7/ _______file acts as a contract between a web service consumer and a web service it also defines an xml grammar used for describing a web service.

a/ service description language

b/ web service description language

c/ network accessible service specification Language

Q8/ What is the function of a http get operation.?

a/ The page is called and the string and value of simple parameters are passed

b/ An operation to call the web service

c/ The parameters are passed in the standard url encoded form variables

Q9/ Is a technique that calls remote methods and procedures and is suitable for applications that are lossely coupled.?

a/ Remote procedure calls

b/ Messaging

c/ Method procedure calls

d/ Coupled procedure calls

Q10/ Apart from advantages the web services technology has som disadvantuges too which of the following are its disadvantages.?

1/ Any web user can use the services thus exposed causing substantial network secutiry risks

2/ Xml support is necessary

3/ The cost of deploying the web service hight

4/ Time-consuming

5/ A standalone application

a/ Only 1  and 4                    b/ Only 3 and 4                     c/ 3 – 4 – 5                 d/ 1 – 2 – 3

Q11/ ___atrtribute declares a namespace to which all names declared in a element will belong.?

a/ xml version

b/ xmlns

c/ definitions

d/ targetnamespaces

Q12/ What is the function of  message component in a WSDL file.?

1/ defines datea types used by the service’s messages

2/ specifies an input parameter to the operaration using a previously defined message

3/ optionlally specifies an error message returned from the operation

4/ specifies the return values from the operations using  a previously defined message

5/ defines the datea transferred by a web service operation, typically the name and data type of input parameter and retrun values

a/ 3                       b/ 2                       c/ 4                       d/ 1                       e/ 6              f/ 5

Q13/ What happens when a soap operation requires an input parameter and this parameter is not included in the soap request.?

1/ No value is passed to the called stored procedure

2/ The parameter is passed tho the stored procedure with an empty strin g as its values

3/ the data is exchanged between ht client application and the web service

4/ all the data is the passed to the called stored procedure

a/ Only 3              b/ 1 and 2             c/ 2              d/ 1 – 2 – 3 – 4              e/ 1

Q14/ When a web service is consumed, a copy of the wsdl file residing on the web server is copied onto the client . This WSDL file is known as_______

a/ WSDL file proxy

b/ web service procxy

c/ web service copy

d/ WSDL file copy

e/ proxy

Q15/ ______dectdects errors or lost data and resumes transmission until the data is correctly and completely received.

a/ UDP

b/ HTTP

c/ TCP

d/ ICMP

Q16/ After checking the coherency of the xml document, the xml parser sends the soap

message using HTTP. This is known as_____

a/ SOAP response

b/ SOAP request

c/ coherent request

d/ SOAP document

Q17/ ________is a kind of error which arises whenb the message was incorrectyle formed or contained incorrect information.

a/ versionMismatch

b/ MustUnderstand

c/ Client

d/ Server

e/ formMismatch

Q18/ The open specification developed to integrate electronic commerce sites is known as______

a/ UDDI

b/ UDDI service registry

c/ UDDI sites registry

d/ UDDI business registry

Q19/ What is the function of keyedReference.?

1/ Gives a reference to the first businessEntytity for which the first publisher arssertion is made

2/ Gives a reference eference to the first businessEntyyity for which the second publisher arssertion is made.

3/ identifies the relationship type for which the assertion is made.

4/ Creates  a key.

a/ 2                       b/ 1                       c/ 3                       d/ 4

Q20/ ________is a set of modular services by a single or group companies to collectively define a business process.

a/ web service

b/ modular service

c/ business service

d/ web site

e/ web application

Q21/ What is the function of a HTTP GET opearaion.?

a/ The  page is called and the striung and value of simple parameters are passed

b/ An operation to call the web servie

c/ The parameters are passed in the standard URL l encoded form variables

Q22/ Which of the following are the advantages of web services.?

1/ straight business integration

2/ improved efficienty

3/ facilitates just-in-time integration

4/ slow business decisions

a/ 1 – 2 – 3 – 4               b/ 2 – 3 – 4           c/ 1 – 2 – 3              d/ 1 – 4             e/ 2 – 3

Q23/ ______specifies the functionlality of a service and also exposes the parameters required by the methods of the service.

a/ service description language

b/ describe service language

c/ service funtiionlity language

d/ interface description language

Q24/ An interface is designed for every createaion of a web service. Which of the following will best explain the need for an interface

1/ placement of the web service

2/ single point contact

3/ evffective communication between the web services

4/ overcome secutity issues

a/ 4                       b/ 3                       c/ 1                                 d/ 2

Q25/ The _______ element in w3c WSDL specification sends a message but will not wait for a response.

a/ solicit – response

b/ notification

c/ one -way

d/ request – response

Answer: b

Q26/ SOAP is a lightweight protocol, which allows components and applications to communicate with each other. Which of the following is the disadvantage of  soap1.1.?

1/ SAME processing agents function as different actors

2/ cannot distinguish between an xml document and a soap message

3/ shows the addresses for each of the access methods

4/ specifies the representation of parameters of a web method

a/ 1 and 2              b/ 3 and 4             c/ Only 4              d/ Only 3             c/ Only 1

Answer: a

Q27/ After checking the coherency of the xml document, the xml parser sends theo SOAP  message using HTTP . this is known as________.

a/ SOAP response

b/ SOAP request

c/ coherent request

d/ SOAP document

Answer: b

Q28/ _____element holds application-specific error information related to the body element.

a/ detail

b/ faultcode

c/ faultstring

d/ faultactor

Answer: a

Q29/ There are many fields in a tModel._____can be used to record identification numbers for tModels.

a/ identifierList

b/ identifierBag

c/ identifierContainer

d/ categoryBag

Answer: b

Q30/ Which of the following are the requirements needed for creating a web service.?

1/ data representation in a standard format

2/ common extensible message format

3/ common, extensible , service description language

4/ list of service providers and the services offered by them

5/ number of companies having access rights

6/ Number of month that the application will be available

a/ 1 – 2 – 3 – 4 – 5 – 6

b/ 1 – 6

c/ 5 – 6

d/ 3 – 4

e/ 2 – 3 – 4 – 5

Answer: unknown-the answer is conflict with the theory in the book.

Reference: page 8

Q31/ Apart from advantages the web services technology has some disadvantages too.

Which of the following are its disadvantages.?

1/ any web user can use the services thus exposed, causing substantial network security risks

2/ xml support is necessary

3/ the cost of deploying the web service high

4/ time consuming

5/ standalone applications

a/ 1 – 4                 b/ 3 – 4                 c/ 3 – 4 – 5           d/ 1 – 2 – 3

Answer: d

Q32/ Which of the following components of a wsdl file are abstract definition?

1/ bindings

2/ services

3/ types

4/ messages

5/ portTypes

6/ sOutput

a/1 – 2 – 3 – 4                b/ 4 – 5 – 6           c/ 1 – 2                 d/ 2 – 3 – 6           e/ 3 – 4 – 5

Answer: e

Q33/ _____is a kind of error which arises when the message was incorrectly formed or contained incorrect information.

a/ versiconMismatch

b/ MustUnderstand

c/ client

d/ server

e/ FormMismatch

Answer: c

Q34/ What is the pupose of registering the web service on the internet.?

1/ Logging het users of the web service

2/ To identify and share the services

3/ To trach theu user of the web service

4/ To track the operations of the web service

a/ 1

b/ 2

c/ 3

Answer: b

Posted in Uncategorized | Leave a Comment »

123

Posted by JULY on October 28, 2009

1. You want to pass the user name entered in the login form to another Web page .Which of the following parameters in the parameterized queries helps you to archive this task ?

  1. Form
  2. Cookie
  3. Control

D.    QueryString

 

2. Which of the following codes retrieves the number of items in the control?

  1. Response.Write(this.objLstCountries.AllFields[0].Title);
  2. Response.Write(objLstCountries.SelectedIndex);
  3. int count = objlstCountries.ItemCount;
  4. if(objlstCountries.SelectListItem(o,false))

  {

          Response.Write(“Selected”);

                  }

 

3. Which of the following codes correctly removes the item named StudentsDataTable from the cache ?

  1. Cache.Delete(“StudentsDataTable”);
  2. Cache.Remove(“StudentsDataTable”);
  3. Caching.Remove(“StudentDataTable”);
  4. Caching.Clear(“StudentsDataTable”);

 

4. The ……element in the Web.config file stores the connection string.

  1. connectionData

B.    connectionStrings

  1. connectionTyp
  2. connection

 

5. Which approach specifies the location of output cache using the Location attribute of @OutputCache directive?

  1. parameterized approach
  2. Substitution approach

C.    Declarative approach

  1. Programmatic approach

 

6. Items stored on the cache are removed using the……. method.

  1. Cache.Remove()
  2. Cache.Delete()
  3. Cache.Erase()
  4. Cache.Drop(0

 

7. Which of the following statements about untyped datasets are true?

  1. Untyped datasets require you to create the schema for the dataset.
  2. It is not possible to work with data from a database using untyped datasets.
  3. A TableAdapter object is created when you create an untyped dataset.
  4. The NewRow() method is used to add rows into an untypted DataTable that is part of an untyped dataset.

 

8. How many instances of the Cache class representing a Cache object Web application?

A.    One

B.    Two

C.    Depends on the number of pages in the application

  1. Zero

 

9. A user control is cached by including an ……. directive in the .ascx file of  control?

  1. @Cache

B.    @OutputCache

  1. @Register
  2. @Control

 

10. Which of the following statement correctly describe the usage of the XmlReader.ReadString() method ?

  1. It retrieves the XML representation of the data in a DataSet object as a string.
  2. It returns the XML content as an XmlReader object.
  3. It reads content and optionally schema from an XML stream or file into a DataSet object.
  4. It reads the content of an element or text node as a string.

 

11. Which of the following techniques can be used to add parameters queries as design time?

  1. Using Configure Data Source dialog box
  2. Using markup elements such as <SelectParameters> and <DelectParameters> .

 

  1.  
    1. Only 1
    2. Only 2

C.    1 and 2

 

12. You want to add SQL dependency for a connection string … database should be polled every 7 minutes. Which one…..you to accomplish this?

     A. <Caching>

            <sqlCacheDependency enabled =”true” pollTime=”420000″>

              <databases>

     B.  <Caching>

              <sqlCacheDependency enabled =”true” pollTime=”7″>

                <databases>

     C.   <Caching>

              <sqlCacheDependency enabled =”true” pollTime=”42000″>

                <databases connectionStringName=”Eudora”/ >

      D.  <Caching>

              <sqlCacheDependency enabled =”true” pollTime=”420″>

                 <databases>

 

 13. Which property of data source controls retrieves the time in seconds for which the control caches the data ?

  1. EnableCaching
  2. CacheExpirationPolicy
  3. SqlCacheDependency

D.    CacheDuration

 

 14. Which of the following Boolean properties in a SiteMapDataSource control sets or gets a value to indicate whether the start node is displayed ?

  1. StartFromCurrentNode

B.    ShowStartingNode

  1. StartingNodeUrl
  2. ShowStartNode

 

  15. ……………… represents a query or a command that is to be executed by a data source

  1. Connection

B.    Command

  1. DataSet
  2. DataApdater

 

  16. ……… is a mobile control that is exclusively designed for mobile data access and can display a list as well as a detail view.

  1. SelectionList
  2. List
  3. DropDownList

D.    ObjectList

 

   17. ……. is a group of class that enables the developers to connect to RDBMS

A.    ADO.NET

  1. AOD.NET
  2. ASP
  3. OAD.NET

 

  18. Which of the following codes retrieves the connection string from….

  1. String conString = ConfigurationManager.ConnectionStrings["TestConnection"];
  2. String conString = WebConfigurationManager.ConnectionStrings["TestConnection"].ToString();
  3. String conString = Config.ConnectionStrings["TestConnection"].ToString();
  4. String conString = WebConfiguration.Connection["TestConnection"].ToString();

 

  19. Which of the following dataset class represents the data type of Column of DataTable ?

  1. DataRow
  2. DataColumn
  3. DataTable

D.    DataColumnCollection

 

   20. Which of the following classes stores the frequently used application for a Web application ?

  1. System.Web.Cache

B.    System.Web.Caching.Cache

  1. System.Web.Caching
  2. System.Cache

 

   21. Which of the following are the new features provided in ASP.NET 2.0 ?

  1.  
    1. Control that access data from the backend database.
    2. Control that can display data in various formats.
    3. Direct connections can be established as a local file to an SQL Express database .
  1. 1 2
  2. B.    1 3
  3. All of the above.

C.    2 3

 

   22. Which property of the GridView control regarding paging functionlity indicates whether the paging buttons are displayed ?

  1. PagerSettings.PreviousPageText

B.    PagerSettings.Visible

  1. PagerSettings.Mode
  2. PageIndex

 

   23. …… is a process by which the data in the control belonging to the UI have a direct link to the data in the database.

  1. Static binding
  2. Dynamic binding

C.    Data binding

  1. Data Linking

 

   24. The ……. method of a SqlCommand object returns an instance of SqlDataReader class .

  1. Execute()
  2. ExecuteReader()
  3. Create()
  4. Init()

 

   25. Which of the following are valid events of DataList control ?

  1. SelectedIndexChanged//dung
  2. DeletingCommand//sai. Dung la DeleteCommand

C.    UpdateCommand//dung

D.    CancellingCommand//sai. Dung la CancelCommand

  1. EditCommand//dung

 

    26. Which event is raised when each item in a mobile List control is being data bound ?

  1. ItemDataBound
  2. DataItemBind
  3. ListItem

D.    ItemDataBind

//Xem lai cau nay

    27. Which property of @OutputCache directive creates a new version of a page if the request for the same page comes from a different browser ?

  1. VaryByHeader
  2. VaryByParam
  3. VaryByVersion

D.    VaryByCustom

 

   28. The…..object is used to fetch and update the data from the database.

A.    DataSet

  1. Data adapter
  2. DataTable
  3. DataColumn

 

//Xem

   29. The …. data source control enables you to  work with ASP.NET site navigation through XML-based site maps.

 

  1. SqlDataSource
  2. XmlDataSource

C.    SiteMapDataSource

  1. NavigationDataSource

 

  30. Which of the following represents the correct directive to be used when working with data sources associated with an OracleConnection ?

  1. using System.Data.Oracle;
  2. using System.Data.OracleDb;
  3. using System.Data.OracleClient;
  4. using System.Data.Odbc;

 

   31. The….. datasets require the user to hard-code the schema of the dataset .

A.    untyped

  1. typed
  2. row
  3. column

 

32. Which of the following codes correctly clears the content of the dataset and fills it with rows of data ?

       A. dsetFootwear.Tables["Footwear"].clrscr();

            sdaFootwear.doFill(dsetFootwear,”Footwear”);

       B. dsetFootwear.Tables["Footwear"].ClearAll();

           sdaFootwear.FillDataset(dsetFootwear,”Footwear”);

       C.dsetFootwear.Tables["Footwear"].FlushAll();

           sdaFootwear.FillSet(dsetFootwear,”Footwear”);

       D. dsetFootwear.Tables["Footwear"].Clear();

            sdaFootwear.Fill(dsetFootwear,”Footwear”);

 

33. Which one of the following statement stating the characteristics of OleDbDataReader class is true ?

  1. It reads a stream of rows from a SQL Server database.
  2. It reads a stream of rows from a data source that is associated with an OleDbConnection.
  3. It reads a stream of rows from a data source associated with an OdbcConnection.
  4. It reads a stream of rows from Oracle data sources.

 

34. Which of the following classes generates dynamic customized views of your data which you can then display and manupulate ?

A.    DataView

  1. GridView
  2. DataList
  3. DetailsView

 

 35. Which of the following are the ways to add items to a cache?

  1. Using key/value pairs
  2. Using Cache.Insert() method
  3. Using Cache.Add() method
    1. 1 3
    2. 2 3

C.    1 2

  1.  
    1. All of the above

 

 

 

Posted in Uncategorized | Leave a Comment »

Protected: 3

Posted by JULY on October 27, 2009

This post is password protected. To view it please enter your password below:


Posted in Uncategorized | Enter your password to view comments

Protected: 2

Posted by JULY on October 27, 2009

This post is password protected. To view it please enter your password below:


Posted in Uncategorized | Enter your password to view comments

Protected: a

Posted by JULY on October 27, 2009

This post is password protected. To view it please enter your password below:


Posted in Uncategorized | Enter your password to view comments