This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is The Use Of Arraycollection Filter Function? |
|
Answer» filterFunction: Function [read-write] : A function that the view will use to eliminate items that do not match the function criteria. A filter function is expected to function (ITEM: Object): Boolean When the return value is true if the specified item should REMAIN in the view. If a filter is unsupported, flex THROWS as ERROR when accessing this property. We MUST call refresh () method after setting the filter function property for the view to update. filterFunction: Function [read-write] : A function that the view will use to eliminate items that do not match the function criteria. A filter function is expected to function (item: Object): Boolean When the return value is true if the specified item should remain in the view. If a filter is unsupported, flex throws as error when accessing this property. We must call refresh () method after setting the filter function property for the view to update. |
|
| 2. |
What Is Calllater () Method? |
|
Answer» The CALLLATER () method queues an operation to be performed for the next SCREEN refresh, rather than in the current UPDATE. Without the callLater () method, you might try to access a property of a component that is not yet available. Syn: callLater(method:Function, args:Array):void Ex: We have a button click event that loads data from a XML file or a webservice. That loading of data WOULD probably have another resultHandler which will wait for the loading to finish. And meanwhile your button click handler might be doing some other things …so in these situations we can use callLater. The callLater () method queues an operation to be performed for the next screen refresh, rather than in the current update. Without the callLater () method, you might try to access a property of a component that is not yet available. Syn: callLater(method:Function, args:Array):void Ex: We have a button click event that loads data from a XML file or a webservice. That loading of data would probably have another resultHandler which will wait for the loading to finish. And meanwhile your button click handler might be doing some other things …so in these situations we can use callLater. |
|
| 3. |
Advantages Of Adobe Flex? |
Answer»
|
|
| 4. |
Difference Between Data Grid And Advanced Data Grid? |
Answer»
|
|
| 5. |
Difference Between Sealed Class And Dynamic Class? |
|
Answer» Sealed Class:
Dynamic Class:
Sealed Class: Dynamic Class: |
|
| 6. |
Difference Between Flash And Flex? |
|
Answer» Flash is USED by the designers. Flex is used by the developers. Flash uses only Flash PLAYER API but Flex uses both Flash Player API and Flex SDK LIBRARY also. like datavisualization.swc, automation.swc, rpc.swc.
Flash is used by the designers. Flex is used by the developers. Flash uses only Flash Player API but Flex uses both Flash Player API and Flex SDK library also. like datavisualization.swc, automation.swc, rpc.swc. |
|
| 7. |
What Are The Differences Between 4.6/4.5/4.0 And Flex 3.0? |
|
Answer» 4.5 and 4.6 are used for developing mobile based applications. 4.6 has few new components. 4.0:
4.5 and 4.6 are used for developing mobile based applications. 4.6 has few new components. 4.0: |
|
| 8. |
What Is Serialization? |
Answer»
|
|
| 9. |
Difference Between String And String Buffer? |
|
Answer» String is IMMUTABLE and String Buffer is mutable. String CLASS creates NEW INSTANCE for any method but String Buffer updates/modifies same instance. String is immutable and String Buffer is mutable. String class creates new instance for any method but String Buffer updates/modifies same instance. |
|
| 10. |
What Is Composition? |
|
Answer» MAKING use of the already CREATED class functionality or behaviour by instantiating the class and CALLING the REQUIRED methods. Making use of the already created class functionality or behaviour by instantiating the class and calling the required methods. |
|
| 11. |
What Is Method Overriding? |
|
Answer» Override a METHOD of a base CLASS in your ActionScript component. To override the method, you ADD a method with the same SIGNATURE to your class, and prefix it with the override keyword Override a method of a base class in your ActionScript component. To override the method, you add a method with the same signature to your class, and prefix it with the override keyword |
|
| 12. |
What Is Over Loading? Is Method Over Loading Possible In Flex? |
|
Answer» No. METHOD OVERLOADING is not SUPPORTED in ACTION Script3.0. No. Method overloading is not supported in Action Script3.0. |
|
| 13. |
What Is Shared Object? (or) How To Store The Data In Local? |
|
Answer» Shared OBJECTS function like browser cookies. The SharedObject class to store data on the user's local hard disk and CALL that data during the same SESSION or in a later session. Applications can ACCESS only their own SharedObject data and only if they are running on the same domain. The data is not sent to the server and is not accessible by other Adobe® Flex® applications running on other domains, but can be made accessible by applications from the same domain. Public VAR so : SharedObject = SharedObject.getLocal("mySO"); Shared objects function like browser cookies. The SharedObject class to store data on the user's local hard disk and call that data during the same session or in a later session. Applications can access only their own SharedObject data and only if they are running on the same domain. The data is not sent to the server and is not accessible by other Adobe® Flex® applications running on other domains, but can be made accessible by applications from the same domain. Public var so : SharedObject = SharedObject.getLocal("mySO"); |
|
| 14. |
Difference Between Label And Text? |
| Answer» | |
| 15. |
Difference Between Swc And Swf File? |
Answer»
|
|
| 16. |
What Is Css (cascading Style Sheet)? |
|
Answer» Cascading Style Sheets (CSS) are used in Flex to apply styles to visual components on the APPLICATION display list. CSS is a STANDARD for encapsulating the code that makes up the DESIGN of an Application. Given the POWER and maturity of CSS, most experienced Web designers/developers strive to implement as MUCH of the design and layout properties of a Web site/application in CSS as possible. The result is much greater control and flexibility over the look and feel of the site. Some features of CSS:
Cascading Style Sheets (CSS) are used in Flex to apply styles to visual components on the application display list. CSS is a standard for encapsulating the code that makes up the design of an Application. Given the power and maturity of CSS, most experienced Web designers/developers strive to implement as much of the design and layout properties of a Web site/application in CSS as possible. The result is much greater control and flexibility over the look and feel of the site. Some features of CSS: |
|
| 17. |
What Is The Difference Between Graphical Skinning And Stateful Skinning? |
|
Answer» Sateful Skins: A type of PROGRAMMATIC skin that uses VIEW STATES, where each view state corresponds to a state of the component. The definition of the view state controls the look of the skin. Since you can have MULTIPLE view states in a component, you can use a SINGLE component to define multiple skins. Sateful Skins: A type of programmatic skin that uses view states, where each view state corresponds to a state of the component. The definition of the view state controls the look of the skin. Since you can have multiple view states in a component, you can use a single component to define multiple skins. |
|
| 18. |
What Type Of Skinning Is Available In Flex? |
|
Answer» Graphical skinning, Programmatic Skinning and Stateful skinning: Graphical Skins: Images that DEFINE the appearance of the skin. These images can JPEG, GIF, or PNG files, or they can be SYMBOLS embedded in SWF files. Typically you use drawing software such as Adobe Photoshop or Adobe ILLUSTRATOR to create graphical skins. Graphical skinning, Programmatic Skinning and Stateful skinning: Graphical Skins: Images that define the appearance of the skin. These images can JPEG, GIF, or PNG files, or they can be symbols embedded in SWF files. Typically you use drawing software such as Adobe Photoshop or Adobe Illustrator to create graphical skins. |
|
| 19. |
Difference Between Array And Array Collection? |
Answer»
|
|
| 20. |
What Are The Collections Classes Available In Flex? |
|
Answer» ARRAY COLLECTION, XML LIST Collection, GROUPING Collection. Array Collection, XML List Collection, Grouping Collection. |
|
| 21. |
What Are All The Events Dispatched In Item Editor? |
|
Answer» ITEM EDIT BEGINNING, Item Edit BEGIN, Item Edit END Item Edit Beginning, Item Edit Begin, Item Edit End |
|
| 22. |
Can We Use Text Input/editable Component As Itemrenderer? |
|
Answer» Yes. Yes. |
|
| 23. |
How To Display The Check Box In Data Grid Header? |
|
Answer» <MX:DataGridColumn headerText="ADD" dataField="add" ITEMRENDERER="mx.controls.Button"/> <mx:DataGridColumn headerText="ADD" dataField="add" itemRenderer="mx.controls.Button"/> |
|
| 24. |
Difference Between Item Renderer And Item Editors? |
|
Answer» Both are used for editing,but item renderer is used for displaying visual ELEMENTS..
Both are used for editing,but item renderer is used for displaying visual elements.. |
|
| 25. |
Explain About Measure() Method? When This Measure() Method Is Called? |
|
Answer» The measure() method sets the DEFAULT component size, in pixels, and optionally sets the component's default minimum size. This method is used for following reasons:
The measure() method sets the default component size, in pixels, and optionally sets the component's default minimum size. This method is used for following reasons: |
|
| 26. |
Explain About Component Life Cycle? |
|
Answer» A set of methods the framework calls to instantiate, control and destroy components. OR The component instantiation LIFE cycle describes the sequence of steps that occur when you create a component OBJECT from a component class. As part of the life cycle, Flex automatically calls component methods, dispatches events, and makes the component visible. 3 Main Phases:
override PROTECTED function createChildren():void{ A set of methods the framework calls to instantiate, control and destroy components. OR The component instantiation life cycle describes the sequence of steps that occur when you create a component object from a component class. As part of the life cycle, Flex automatically calls component methods, dispatches events, and makes the component visible. 3 Main Phases: override protected function createChildren():void{ |
|
| 27. |
Difference Between Http Service And Remote Object? (or) Which One You Will Prefer? |
|
Answer» DATA Service(Remote Object):
HTTP Service/Web Service:
Data Service(Remote Object): HTTP Service/Web Service: |
|
| 28. |
Explain About Resultevent And Faultevent In Remote Object? (or) Explain About Result Handler And Fault Handler Methods? |
Answer»
|
|
| 29. |
Explain About Remote Object? What Is End Point In Remote Object? |
|
Answer» Remote OBJECT: Remote Service automatically serializes and deserializes the data between Flex client and your server side language. As a result, you can directly call methods on your Java/.Net/ColdFusion/PHP etc… objects. This service connects to an AMF (Action Message Format) Gateway. AMF protocol transfers data in a binary format, so the data can be moved across the network more quickly. endpoint: This property is used to identify the Java WEB project from your flex client project. Ex: http://localhost:8080/JavaTest/messagebroker/amf
Remote Object: Remote Service automatically serializes and deserializes the data between Flex client and your server side language. As a result, you can directly call methods on your Java/.Net/ColdFusion/PHP etc… objects. This service connects to an AMF (Action Message Format) Gateway. AMF protocol transfers data in a binary format, so the data can be moved across the network more quickly. endpoint: This property is used to identify the Java web project from your flex client project. Ex: http://localhost:8080/JavaTest/messagebroker/amf |
|
| 30. |
Explain About Different Types Of Channels Available In Blaze Ds? |
|
Answer» HTTP Channel, AMF Channel, RTMP Channel:
HTTP Channel, AMF Channel, RTMP Channel: |
|
| 31. |
What Is Adapter In Blaze Ds? |
|
Answer» Java Adapter is USED to COMMUNICATE with Java and JMS adapter is used to communicate with JMS. Java adapter class ALLOWS us to invoke methods on a Java object. Java Adapter is used to communicate with Java and JMS adapter is used to communicate with JMS. Java adapter class allows us to invoke methods on a Java object. |
|
| 32. |
What Is Stoppropagation() And Stopimmediatepropagation()? (or) Difference Between Stoppropagation And Stopimmediatepropagation()? (or) How To Stop The Event Flow/ Event Phases? |
Answer»
|
|
| 33. |
How To Create Custom Events? Explain The Steps To Create A New Custom Event? |
|
Answer» To dispatch a new event from your custom component, you must do the following:
To dispatch a new event from your custom component, you must do the following: |
|
| 34. |
What Is The Difference Between Target And Current Target? |
|
Answer» Target: The OBJECT that dispatched the event (doesn’t change). Target will not change. Target: The object that dispatched the event (doesn’t change). Target will not change. |
|
| 35. |
What Is Preventdefault () Method? |
|
Answer» To cancel the default behaviour of the event. The methods of the Event CLASS can be used in event listener functions to affect the behaviour of the event OBJECT. Some events have an associated default behaviour. For example, the doubleClick event has an associated default behaviour that highlights the word under the mouse POINTER at the TIME of the event. Your event listener can cancel this behaviour by calling the preventDefault () method. PreventDefault () method will work only if Cancellable PROPERTY is true, otherwise it’s not working. To cancel the default behaviour of the event. The methods of the Event class can be used in event listener functions to affect the behaviour of the event object. Some events have an associated default behaviour. For example, the doubleClick event has an associated default behaviour that highlights the word under the mouse pointer at the time of the event. Your event listener can cancel this behaviour by calling the preventDefault () method. PreventDefault () method will work only if Cancellable property is true, otherwise it’s not working. |
|
| 36. |
What Is Clone() Method? |
|
Answer» CLONE METHOD creates DUPLICATE COPY of the event class. This method is EXECUTED automatically when the event is redispatched in the event listeners. Clone method creates duplicate copy of the event class. This method is executed automatically when the event is redispatched in the event listeners. |
|
| 37. |
Tell Me Arguments Of Addeventlistener() Method? |
|
Answer» addEventListener (type: string, listener: function, useCapture: Boolean=false, priority:int=0, useWeakReference:Boolean=false):void
addEventListener (type: string, listener: function, useCapture: Boolean=false, priority:int=0, useWeakReference:Boolean=false):void |
|
| 38. |
Explain About Cairngorm Architecture? |
|
Answer» Cairngorm is an implementation of several design patterns that form a lightweight ARCHITECTURAL framework. Cairngorm follows the principle of SEPARATING the view and business logic which is known as the Model-View-Controller pattern (MVC). The Pieces of Cairngorm:
Cairngorm is an implementation of several design patterns that form a lightweight architectural framework. Cairngorm follows the principle of separating the view and business logic which is known as the Model-View-Controller pattern (MVC). The Pieces of Cairngorm: |
|
| 39. |
What Is Singleton Class? Explain The Steps To Create A Singleton Class? |
|
Answer» The SINGLETON pattern is a design pattern that is used to restrict instantiation of a class to one object. If we create the class as a singleton then no way to create more than one instance. But, we can GET that single instance in any number of CLASSES. So all the classes will share the same properties and behaviours of that singleton object. Steps to create a Singleton class: Consider the MySingleTon class as a singleton class. package { } // Utility Class to Deny Access to Constructor
The singleton pattern is a design pattern that is used to restrict instantiation of a class to one object. If we create the class as a singleton then no way to create more than one instance. But, we can get that single instance in any number of classes. So all the classes will share the same properties and behaviours of that singleton object. Steps to create a Singleton class: Consider the MySingleTon class as a singleton class. package { } // Utility Class to Deny Access to Constructor |
|
| 40. |
Should Model Locator As A Singleton Class? Can't We Instantiate This Class As Like Normal Class? |
|
Answer» You can CALL as a NORMAL CLASS because CONSTRUCTOR is PUBLIC. You can call as a normal class because constructor is public. |
|
| 41. |
How To Add Two Commands To One Single Event Type? |
|
Answer» Sequence Command is used to ADD MULTIPLE COMMANDS to ONE event TYPE. Sequence Command is used to add multiple commands to one event type. |
|
| 42. |
Difference Between Cairngorm Event And Flex Event? |
| Answer» | |
| 43. |
Explain About Blaze Ds And Blaze Ds Services? |
|
Answer» BlazeDS provides a set of services that lets you connect a client-side application to server-side data, and pass data among MULTIPLE clients connected to the server. BlazeDS implements real-time messaging between clients. Blaze DS services:
HTTP Service: HTTP Service components to interact with JSP’s, Servlets and ASP Pages that are not available as Webservice or remoting services destinations. <mx:HTTPService id=”myService” url=”http://localhost:8400/middlejava/LoginServlet” result=”resultHandler(event)” fault=faultHandler(event)” method=”Get”/> Webservice: Webservice components let you access WEBSERVICES, which are software modules with methods. Webservices methods are commonly referred to as operations. Webservice interfaces are defined by using XML. Flex application can interact with webservices that define their interfaces in a Webservices Description Language (WSDL) document, which is available as a URL. WSDL is a standard format for describing the messages that a webservice understands the format of these responses to those messages. <mx: WebService id=”Webservice” wsdl=”http://search.yahoo.com/searchservice?wsdl” result=”resultHandler (event)” fault=faultHandler (event)” method=”Get”/> Remote Object: Remote object components let us access the methods of server side java OBJECTS, without manually configuring the objects as webservices. We can use remote object components in MXML or ActionScript. We can use RemoteObject components with a standard alone BLAZE DS web application or macromedia COLDFUSION MX from Adobe. BlazeDS provides a set of services that lets you connect a client-side application to server-side data, and pass data among multiple clients connected to the server. BlazeDS implements real-time messaging between clients. Blaze DS services: HTTP Service: HTTP Service components to interact with JSP’s, Servlets and ASP Pages that are not available as Webservice or remoting services destinations. <mx:HTTPService id=”myService” url=”http://localhost:8400/middlejava/LoginServlet” result=”resultHandler(event)” fault=faultHandler(event)” method=”Get”/> Webservice: Webservice components let you access webservices, which are software modules with methods. Webservices methods are commonly referred to as operations. Webservice interfaces are defined by using XML. Flex application can interact with webservices that define their interfaces in a Webservices Description Language (WSDL) document, which is available as a URL. WSDL is a standard format for describing the messages that a webservice understands the format of these responses to those messages. <mx: WebService id=”Webservice” wsdl=”http://search.yahoo.com/searchservice?wsdl” result=”resultHandler (event)” fault=faultHandler (event)” method=”Get”/> Remote Object: Remote object components let us access the methods of server side java objects, without manually configuring the objects as webservices. We can use remote object components in MXML or ActionScript. We can use RemoteObject components with a standard alone BLAZE DS web application or macromedia ColdFusion MX from Adobe. |
|
| 44. |
Explain The Configuration Details Of Blaze Ds? |
Answer»
The Blaze DS uses four main configuration files namely:
The Blaze DS uses four main configuration files namely: |
|
| 45. |
Explain Data Binding In Flex? |
|
Answer» Data binding is the process by which changes in ONE action script OBJECT are reflected in another action script object. (OR) Data binding automatically copies the VALUE of a property of a source object to a property of a destination object when the source property changes. Data binding requires a source property, a destination property, and a triggering EVENT that indicates when to copy the data from the source to the destination. An object dispatches the triggering event when the source property changes
Data binding is the process by which changes in one action script object are reflected in another action script object. (OR) Data binding automatically copies the value of a property of a source object to a property of a destination object when the source property changes. Data binding requires a source property, a destination property, and a triggering event that indicates when to copy the data from the source to the destination. An object dispatches the triggering event when the source property changes |
|
| 46. |
What Is Flex? |
|
Answer» Flex is an application framework (yes it is a framework!!) that allows developers to build rich APPLICATIONS for desktop (using AIR), web, mobiles and tablets (iOS, android, blackberry etc). The web applications (SWF Files) run in Flash Player which is available in more than 90% computers across the world. For desktop-based applications AIR is needed. There are two main BUILDING blocks for development in Flex: ACTIONSCRIPT (USED mainly for Logic part) and MXML (used mainly for DECLARATION of tags and components etc). Flex is an application framework (yes it is a framework!!) that allows developers to build rich applications for desktop (using AIR), web, mobiles and tablets (iOS, android, blackberry etc). The web applications (SWF Files) run in Flash Player which is available in more than 90% computers across the world. For desktop-based applications AIR is needed. There are two main building blocks for development in Flex: ActionScript (used mainly for Logic part) and MXML (used mainly for declaration of tags and components etc). |
|
| 47. |
What Are The Advantages And Disadvantages Of Using Flex? And Why Flex Wins Over Other Technologies? |
|
Answer» Flex is very mature component-based development FRAMEWORK that REDUCES the development time and gives very good results. There are plenty of advantages: Easy to learn, Flash Player AVAILABLE widely, Works really well with other back-end technologies (specially with java), based on components so very easy to debug and fix, also has a very good IDE etc. The disadvantages are: applications USED to be slightly heavy etc. But all of them can be handled to a good extent by following up best-practices and good application architecture. Flex is very mature component-based development framework that reduces the development time and gives very good results. There are plenty of advantages: Easy to learn, Flash Player available widely, Works really well with other back-end technologies (specially with java), based on components so very easy to debug and fix, also has a very good IDE etc. The disadvantages are: applications used to be slightly heavy etc. But all of them can be handled to a good extent by following up best-practices and good application architecture. |
|
| 48. |
What Are The Differences Between Flex 3 And Flex 4? |
|
Answer» There can be lot of syntactic or other DIFFERENCES between the two, but major difference is: In Flex 4 the architecture of components (most of) have GOT changed. These components (called Spark the older ones in Flex 3 are called Halo) have separated the role of developer and designer. Spark components have one main CORE component class (written in actionscript) that contains the main LOGICAL part and one Skin class that HANDLES all the visual aspects. We can say core component is skeleton and skin is its visual appearance. For example spark button has one core Button class and one skin class for it. There can be lot of syntactic or other differences between the two, but major difference is: In Flex 4 the architecture of components (most of) have got changed. These components (called Spark the older ones in Flex 3 are called Halo) have separated the role of developer and designer. Spark components have one main core component class (written in actionscript) that contains the main logical part and one Skin class that handles all the visual aspects. We can say core component is skeleton and skin is its visual appearance. For example spark button has one core Button class and one skin class for it. |
|
| 49. |
What Is The Difference Between Viewstack Vs Viewstate? |
|
Answer» Actually ViewStack and ViewState are not RELATED. View states give one way to change the look and feel of a component in RESPONSE to user action. We can also USE navigation container e.g. Acordion, ViewStack, Tab navigator etc. Choice of selecting navigation container or states depends upon requirement of application.
Actually ViewStack and ViewState are not related. View states give one way to change the look and feel of a component in response to user action. We can also use navigation container e.g. Acordion, ViewStack, Tab navigator etc. Choice of selecting navigation container or states depends upon requirement of application. |
|
| 50. |
Does Exclude Or Exclude Class Really Excludes The Data Or Class? |
|
Answer» Exclude(and ExcludeClass) tags SIMPLY influence the set of choices that are available in Flex Builder. They don’t exclude the classes from linking, which is a general misconception. There are MXML options to say “I WANT to treat this symbol as exteranally DEFINED” . Depending on how we COMPILE our application, generally the classes that are included are those that are referenced from the root application or classes, either directly or via some other class that is referenced directly or not from the root application or classes. The -link-report mxmlc option is very useful in that it tells us
Exclude(and ExcludeClass) tags simply influence the set of choices that are available in Flex Builder. They don’t exclude the classes from linking, which is a general misconception. There are MXML options to say “I want to treat this symbol as exteranally defined” . Depending on how we compile our application, generally the classes that are included are those that are referenced from the root application or classes, either directly or via some other class that is referenced directly or not from the root application or classes. The -link-report mxmlc option is very useful in that it tells us |
|