Flex Interview Questions

While preparing for the interview candidates should focus to understand the concept and application to their best. It is important to grasp the architecture, principles, techniques and the framework including the term ology associated with flex. We focus to make you comfortable by providing the necessary terminology and questions. After being familiar with these questions, you will surely be able to handle the questions asked in the interview. Not just this but knowing these questions will also increase your confidence level. Here, we are sharing 10 interview questions of FLEX, which are generally asked.

Find Top Flex interview questions and answers below

  • Q1.

    State the difference between Item Renderer and Item Editors?

    Posted by Sharad Jaiswal
    Difference between item renderer and item editors are as follows;
    • Both are used for the purpose of editing, but item renderer is used for displaying visual elements.
    • Item editor is used for editing purpose. Item editor can pass data back from the particular control to save it as a new value for an item being edited. We can also use item renderer as editor by using Boolean property renders editor.
    • Item renderer is used to format and display the contents in components whereas item editor allows us to edit the displayed content
  • Q2.

    Why is disable auto update method used?

    Posted by Sharad Jaiswal
    This method is used as it protects the events that represent changes to the underlying data from being broadcast by the view. It also stops the whole collection from being updated. This method is found to be very effective where multiple items in a collection are being edited at once. By disabling the auto update the changes are received as a batch instead of multiple events.
  • Q3.

    What is a View Cursor?

    Posted by Sharad Jaiswal
    A cursor is an instrument used for position indicator, it points to any particular item. View cursor is used in order to traverse items in a collection data view and modify the data that is already stored in a collection. The move Next and move Previous to move the cursor forward or backward.
  • Q4.

    Explain Filter Function?

    Posted by Sharad Jaiswal
    The filter function is used to limit the data view in the collection to any particular subset of source data. The function must be able to adopt a single object parameter that corresponds to a collection item and it is just to return a Boolean value specifying whether to include the item in the view or not.
  • Q5.

    What is a Metadata Tag?

    Posted by Sharad Jaiswal
    The metadata is the tag used for providing information to the Flex compiler regarding the usage of the component.
  • Q6.

    What is the function of Exclude or Exclude Class related to the data or class?

    Posted by Sharad Jaiswal
    Exclude (or Exclude Class) tag helps to control the set of choices, available in Flex Builder. But it never excludes the classes from linking. There is an MXML option that depends on how the application is been compiled. 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.
  • Q7.

    State the difference between View stack and View state?

    Posted by Sharad Jaiswal
    View states give one way to change the look and feel of a component in response to user action. And a navigation controller can also be used e.g. Tab navigator etc. It depends on the user to select the navigation as per their requirements.
    View stack is a component used to display different data, at once. View states are related views of a single set of data.
    View stack components cannot be shared easily between the different views, they had to be created each time view is changed.
  • Q8.

    Differentiate between Flex 3 And Flex 4?

    Posted by Sharad Jaiswal
    One can clearly spot lots of syntactic and non-syntactic differences between the two, but the major difference is: In Flex 4 the architecture of components have been changed. These components called Spark the older ones in Flex 3 are called Halo have separated the individual role as a developer and a designer. Spark components have one main core component class that contains the main logical part.
  • Q9.

    Explain About Cairngorm Architecture?

    Posted by Sharad Jaiswal

    Cairngorm architecture can be explained as the process of implementation of several design patterns in order to form a lightweight architectural framework. Cairngorm follows the process of separating the view and business logic. This process is known as the Model-View-Controller pattern or (MVC).

    The types of Cairngorm architecture are as follows:

    • Model Locator: This Stores all the application’s Value along with shared variables that too at one place.
    • View: This allows one or more Flex components bundled just like a named unit, bound to data in the Model Locator.
    • Front Controller: This receives Cairngorm event details and then works ahead to map them to the cairngorm commands as and when required.
    • Command: This handles business logic, calls cairngorm Delegates or Commands, and other updates.
    • Delegate: This is created by a command, and regulates the remote procedure calls and gives the results back to that old command.
    • Service: This defines the remote procedure calls to connect to remote data stores.
  • Q10.

    9. State the difference between Array and Array Collection?

    Posted by Sharad Jaiswal
    Difference between array and array collection is as follows:
    • Array Collection is a wrapper class based on Array.
    • Array Collection includes sorting, filtering features apart from Array.
    • Array Collection automatically refreshes/updates the view whenever the change happens in Array Collection.
  • Q11.

    Explain Prevent default Method?

    Posted by Sharad Jaiswal

    In order to cancel the default behavior of the event, few classified ways of the event class can be used in event listener functions in order to affect the behavior. In this few events are associated with default behavior. Therefore in cases, the same event listener can cancel the behavior by using the prevent Default method. Prevent Default method will work only if the Cancellable property is true else it will not.