InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is Message Transmission Optimization Mechanism (mtom)? |
|
Answer» MTOM (MESSAGE Transmission Optimization Mechanism) is a mechanism for transmitting LARGE binary attachments with SOAP messages as RAW BYTES, allowing for smaller messages. MTOM (Message Transmission Optimization Mechanism) is a mechanism for transmitting large binary attachments with SOAP messages as raw bytes, allowing for smaller messages. |
|
| 2. |
What Is A "mime Type", What Does It Consist Of, And What Is It Used For? |
|
Answer» MIME is an acronym for Multi-purpose INTERNET Mail Extensions. It is used as a standard way of classifying file types over the Internet. Web servers and browsers have a defined list of MIME types, which facilitates TRANSFER of files of a known type, irrespective of OPERATING system or browser. A MIME type actually has two parts: a type and a SUBTYPE that are separated by a SLASH (/). For example, the MIME type for Microsoft Word files is application/msword. MIME is an acronym for Multi-purpose Internet Mail Extensions. It is used as a standard way of classifying file types over the Internet. Web servers and browsers have a defined list of MIME types, which facilitates transfer of files of a known type, irrespective of operating system or browser. A MIME type actually has two parts: a type and a subtype that are separated by a slash (/). For example, the MIME type for Microsoft Word files is application/msword. |
|
| 3. |
What Are Containers ? |
|
Answer» Containers holds objects and widgets together, DEPENDING on which items are needed and in what arrangement they NEED to be in. Containers may HOLD labels, fields, BUTTONS, or even CHILD containers, as examples. Containers holds objects and widgets together, depending on which items are needed and in what arrangement they need to be in. Containers may hold labels, fields, buttons, or even child containers, as examples. |
|
| 4. |
Explain The Purpose Of Each Of The Http Request Types When Used With A Restful Web Service? |
|
Answer» The PURPOSE of each of the HTTP request types when used with a RESTful web service is as follows: GET: Retrieves DATA from the server (should only retrieve data and should have no other effect). POST: Sends data to the server for a NEW entity. It is often used when uploading a file or submitting a completed web form. PUT: SIMILAR to POST, but used to replace an existing entity. PATCH: Similar to PUT, but used to update only certain fields WITHIN an existing entity. The purpose of each of the HTTP request types when used with a RESTful web service is as follows: GET: Retrieves data from the server (should only retrieve data and should have no other effect). POST: Sends data to the server for a new entity. It is often used when uploading a file or submitting a completed web form. PUT: Similar to POST, but used to replace an existing entity. PATCH: Similar to PUT, but used to update only certain fields within an existing entity. |
|
| 5. |
What Is Web Services Description Language (wsdl)? |
|
Answer» WSDL (Web Services DESCRIPTION Language) is an XML FORMAT for DESCRIBING web services and how to ACCESS them. WSDL (Web Services Description Language) is an XML format for describing web services and how to access them. |
|
| 6. |
What Are Web Services ? |
|
Answer» WEB Services are client and server applications that communicate over the World Wide Web's (WWW) Hyper Text Transfer Protocol (HTTP). Web Services PROVIDE a standard means of inter operating between SOFTWARE applications RUNNING on a variety of platforms and frameworks. Web Services are client and server applications that communicate over the World Wide Web's (WWW) Hyper Text Transfer Protocol (HTTP). Web Services provide a standard means of inter operating between software applications running on a variety of platforms and frameworks. |
|
| 7. |
What Is Cross-origin Resource Sharing (cors)? How Does It Work ? |
|
Answer» Cross-origin resource sharing (CORS) is a mechanism that allows MANY resources (e.g., fonts, JavaScript, etc.) on a web page to be requested from another domain OUTSIDE the domain from which the resource originated. It's a mechanism supported in HTML5 that manages XMLHTTPREQUEST access to a domain DIFFERENT. CORS adds new HTTP headers that provide access to permitted origin domains. For HTTP methods other than GET (or POST with certain MIME types), the specification mandates that browsers. Cross-origin resource sharing (CORS) is a mechanism that allows many resources (e.g., fonts, JavaScript, etc.) on a web page to be requested from another domain outside the domain from which the resource originated. It's a mechanism supported in HTML5 that manages XMLHttpRequest access to a domain different. CORS adds new HTTP headers that provide access to permitted origin domains. For HTTP methods other than GET (or POST with certain MIME types), the specification mandates that browsers. |
|
| 8. |
What Is An Etag And How Does It Work? |
|
Answer» An ETag is an opaque IDENTIFIER assigned by a web server to a specific version of a RESOURCE FOUND at an URL. If the resource content at that URL EVER changes, a new and different ETag is assigned. In typical usage, when an URL is retrieved the web server will return the resource along with its corresponding ETag value, which is placed in an HTTP ETag FIELD: ETag: "unique_id_of_resource_version" The client may then decide to cache the resource, along with its ETag. An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at an URL. If the resource content at that URL ever changes, a new and different ETag is assigned. In typical usage, when an URL is retrieved the web server will return the resource along with its corresponding ETag value, which is placed in an HTTP ETag field: ETag: "unique_id_of_resource_version" The client may then decide to cache the resource, along with its ETag. |
|
| 9. |
Describe The Key Advantages Of Http/2 As Compared With Http 1.1? |
|
Answer» HTTP/2 PROVIDES decreased latency to improve page load speed by supporting:
HTTP/2 provides decreased latency to improve page load speed by supporting: |
|
| 10. |
What Is "copy Constructor" And When It Is Called? |
|
Answer» Copy constructor is a special constructor of a class which is used to create copy of an object. Compiler will give a default copy constructor if you don't DEFINE ONE. This IMPLICIT constructor will copy all the members of source object to target object. Implicit copy constructors are not recommended, because if the source object contains pointers they will be COPIED to target object, and it may cause HEAP corruption when both the objects with pointers referring to the same location. Copy constructor is a special constructor of a class which is used to create copy of an object. Compiler will give a default copy constructor if you don't define one. This implicit constructor will copy all the members of source object to target object. Implicit copy constructors are not recommended, because if the source object contains pointers they will be copied to target object, and it may cause heap corruption when both the objects with pointers referring to the same location. |
|
| 11. |
What Is The Difference Between Service-oriented Architecture (soa) And A Web Service? |
Answer»
|
|
| 12. |
What Is Long Polling, How Does It Work, And Why Would You Use It? |
|
Answer» There are two important drawbacks that need to be considered when using long polling: Long polling requests are not different from any other HTTP request and web servers HANDLE them the same way. This means that EVERY long poll connection will reserve SERVER resources, potentially MAXING out the number of connections the server can handle. This can lead to HTTP connection TIMEOUTS. Each web browser will limit the maximum number of connections web application can make. There are two important drawbacks that need to be considered when using long polling: Long polling requests are not different from any other HTTP request and web servers handle them the same way. This means that every long poll connection will reserve server resources, potentially maxing out the number of connections the server can handle. This can lead to HTTP connection timeouts. Each web browser will limit the maximum number of connections web application can make. |
|
| 13. |
How Do You Avoid An Anr? |
|
Answer» You BASICALLY want as little work done as POSSIBLE on the main THREAD, also known as the UI thread. Since that is the core single thread that your application runs on, you would want to keep activities that require more complex computations or network and database connections, for example, on separate worker THREADS so as not to slow down the main thread. You basically want as little work done as possible on the main thread, also known as the UI thread. Since that is the core single thread that your application runs on, you would want to keep activities that require more complex computations or network and database connections, for example, on separate worker threads so as not to slow down the main thread. |
|