Apache Flex MCQs

Apache Flex MCQs

These Apache Flex multiple-choice questions and their answers will help you strengthen your grip on the subject of Apache Flex. You can prepare for an upcoming exam or job interview with these 90+ Apache Flex MCQs.
So scroll down and start answering.

1: True or False? You can apply skins to components using CSS.

A.   FALSE

B.   True

2: How will you call Java method from Flex?

A.   MessageService

B.   Crossdomain

C.   Above all

D.   RemoteObject

E.   Httpservice

3: Which class lets you work directly with the pixels of a Bitmap object?

A.   BitmapEncodingColorSpace

B.   BitmapData

C.   Bitmap

D.   BitmapDataChannel

4: Which is an example of two-way binding?

A.   <s:TextInput text="@{someData}"/>

B.   <s:TextInput text="{someData}"/>

C.   <s:TextInput="{someData}"/ >

D.   <s:TextInput="@someData">

5: Which of the following allows you to refer to the top-level application object from anywhere in the application?

A.   FlexGlobals.topLevelApplication

B.   UIComponent.topLevelApplication

C.   FlexGlobals.parentApplication

D.   UIComponent.parentApplication

6: True or False? You can compile an AIR application as native installers (.exe,.dmg, .deb)

A.   False

B.   True

7: Flex 4 introduced a new skinning and component architecture known as what?

A.   DMX

B.   Flash

C.   Halo

D.   Spark

8: MVC is a useful Flex development pattern. What does MVC stand for?

A.   Most Valuable Customer

B.   Most VGroup Containers

C.   Modem-Vista-Cairngorm

D.   Model-View-Controller

9: What is the name of the scripting language used with Flex?

A.   NoScript

B.   ActionScript

C.   PHP

D.   JavaScript

10: How do you declare an actionscript private variable?

A.   var variableType:variableName

B.   var variableType variableName

C.   private var variableName:variableType

11: True of False? You can use regular expressions to validate data.

A.   True

B.   False

12: True or False? Display objects created with MXML tags are automatically added to the display list.

A.   True

B.   FALSE

13: True or False? ActionScript is an Object-Oriented Programming (OOP) language.

A.   FALSE

B.   True

14: True or False? Flex is an open source application development framework.

A.   True

B.   False

15: What is the file extension of a compiled Flex project?

A.   .css

B.   .flv

C.   .swf

D.   .fla

16: When do you use try..catch..finnaly statements?

A.   On customs classes

B.   On customs events

C.   On error handling

D.   On functions definitions

17: True or False? The Flex pop up component can be modal or no modal.

A.   True

B.   False

18: Which is not a container type?

A.   Application

B.   Array

C.   Group

D.   Panel

19: What method is used to register an event handler for a component?

A.   registerEventListener()

B.   beginEventListener()

C.   addEventListener()

D.   startEventListener()

20: What is the application container for an AIR application?

A.   VGroup

B.   WindowedApplication

C.   Group

D.   Application

21: Where do you declare non-visual MXML elements in a flex component or application?

A.   Inside <fx:Scripts> tag

B.   Inside <fx:Group> tag

C.   Inside <fx:Definitions> tag

D.   Inside <fx:Declarations> tag

22: Which property should have the same value for all radio buttons in a radio button group?

A.   id

B.   click

C.   groupName

D.   label

23: Which tag enables you to enter ActionScript blocks inside an MXML file?

A.   <s:Ascript>

B.   <fx:ActionScript>

C.   <fx:AScript>

D.   <fx:Script>

24: Apache Flex is a top level Apache Software Foundation project?

A.   False

B.   True

25: Which of the following containers allow you to position components using x,y, coordinates?

A.   Group

B.   VGroup

C.   HGroup

D.   TileGroup

26: How do you remove a pop up using PopUpManager?

A.   PopUpManager.removePopUp('popUpComponent')

B.   PopUpManager.destroyPopUp('popUpComponent')

C.   PopUpManager.deletePopUp('popUpComponent')

D.   PopUpManager.closePopUp('popUpComponent')

27: When is it better to use E4X specification?

A.   When working with XML

B.   When working with binary data

C.   When working with HTML responses

D.   When working with JSon objects

28: What event is dispatched when a component and its children are fully processed and visible?

A.   initialize

B.   creationComplete

C.   applicationComplete

D.   preinitialize

29: What is a SWC file?

A.   Class library containing components and other assets.

B.   Flex project file.

C.   File used to specify compiler options.

D.   Compiled Flex application.

30: RIAs stands for:

A.   Regular Internet Applications

B.   Rich Internet Applications

C.   Recursive Internal Applications

D.   Rigid Internal Applications

31: The tree of all visible objects in a Flex application is known as what?

A.   Container

B.   Display list

C.   Object

D.   Class

32: True or False? You CANNOT load a compiled Flex application (.swf) into another Flex application.

A.   True

B.   False

33: When you add a new display object with ActionScript, it will not be displayed until you do what?

A.   Add the new object as a child of a container.

B.   Create a custom event to display the object.

C.   Add an event listener for the object.

D.   Load the object into the application.

34: Which Spark class is used to specify absolute positioning for the children of a container?

A.   TileLayout

B.   BasicLayout

C.   VerticalLayout

D.   HorizontalLayout

35: Which of the following is not a Drop Target Event?

A.   dragOver

B.   dragEnter

C.   dragDrop

D.   mouseDown

36: If you want to take a user's text input and redisplay it as a date, which type of component should you use?

A.   validator

B.   collection

C.   formatter

D.   grid

37: True or False? MXML is interpreted by browsers in much the same way as HTML.

A.   False

B.   TRUE

38: What is the mechanism included in AIR to manipulate data from a data base file?

A.   PLSQL

B.   SQLServer

C.   MySQL

D.   SQLLite

39: All user interface components in Flex extend what class?

A.   Sprite

B.   Bitmap

C.   InteractiveObject

D.   UIComponent

40: An Apache Flex committer CAN

A.   Commit code to the Apache Flex Git repository

B.   Vote in new Apache Flex committers

C.   Vote in new Apache Flex PMC members

D.   Cast binding votes on an Apache Flex release candidate

41: In order to create in inline item render you must place what inside of the <s:itemRender> tag?

A.   <fx:script>

B.   <fx:component>

C.   <s:GridColumn>

D.   <s:GridColumn>

42: What can you use to pass variables into a .swf application from the HTML wrapper?

A.   FlashVars

B.   HTMLVars

C.   ParamObjs

D.   FlashParams

43: True or False? Flex applications allow deep linking.

A.   False

B.   True

44: Where do you have to place a cross-domain-policy file?

A.   At the root directory of your application

B.   At the libs directory of your application

C.   At the root directory of the server

D.   There's no such thing as cross-domain-policy file

45: How do you become an Apache Flex committer?

A.   Add JIRA entries and patches

B.   All of the other answers

C.   Voted in by the Apache Flex PMC

D.   Contribute to discussions on the mailing lists

E.   Contribute to the wiki or web site

46: The third and final phase of Flex event flow is known as what?

A.   listening

B.   bubbling

C.   target

D.   capture

47: If you want a class property to be visible to references in the same class and derived classes, which attribute should you assign it?

A.   public

B.   static

C.   private

D.   protected

48: Which of the following is the RPC service used to connect to Java objects?

A.   HTTPObjects

B.   HTTPServices

C.   RemoteObjects

D.   WebServices

49: If the use-network compiler option is set to false, which of the following can the application do?

A.   Access no resources in the local file system or over the network.

B.   Access resources both in the local file system and over the network.

C.   Access resources over the network, but not in the local file system.

D.   Access resources in the local file system, but not over the network.

50: Which tag is used to declare non-default, non-visual properties of the current class?

A.   <s:Nonvisual>

B.   <fx:Declarations>

C.   <mx:Declarations>

D.   <fx:Properties>

51: Which of the following statements would allow you to access the MouseEvent class?

A.   import flash.events.*;

B.   include "allevents.as";

C.   import flash.events.mouse;

D.   import spark.events;

52: How do you accomplish data persistence in a Flex client?

A.   Using cookies

B.   Using <fx:Model>

C.   Using <s:Model>

D.   Using shared objects

53: If the current view state is not specified when an application loads, what is the default view state?

A.   Name of the first view state defined by the <s:states> tag.

B.   Name of the last view state defined by the <s:states> tag.

C.   View state when the application was last closed.

D.   No default state.

54: What are the three (3) RCP services allowed in flex?

A.   HTTPService, RemoteService, SOAPService

B.   HTTPService, RemoteService, WebService

C.   HTTPService, RemoteObject, WebService

D.   HTTPService, RemoteObject, SOAPService

55: Who has access to Apache Flex code base?

A.   Adobe staff

B.   Apache Flex PMC

C.   Apache staff

D.   Apache Flex committers

E.   Anyone

56: Which method would you use to add a component to an MX container?

A.   addNew()

B.   addElement()

C.   addComponent()

D.   addChild()

57: To prevent an application to be blocked when working with local database, you must:

A.   open the database in Synchronous mode

B.   open the database in Asynchronous mode

58: To implement a two way binding of a text property you would use:

A.   text="@{fieldX.text}"

B.   text="@[fieldX.text]"

C.   text="{@filedX.text}"

D.   text="[@fieldX.text]"

59: Which application property allows you to specify the XML namespace for a custom component package?

A.   namespace

B.   xmlns

C.   xmlnamespace

D.   xmlspace

60: If you want users to be able to enter and edit multiline text, which of these Spark controls should you use?

A.   RichText

B.   TextInput

C.   TextArea

D.   Label

61: How do you set a style property using a Class Selector style in a flex component

A.   classStyle="classSelector"

B.   style=".classSelector"

C.   style="classSelector"

D.   styleName="classSelector"

62: True or False? Flex directly supports database operations.

A.   True but only when using AIR

B.   True

C.   False

63: The phase order of the event flow in flex is:

A.   Bubbling-Capture-Target

B.   Target-Bubbling-Capture

C.   Capture-Target-Bubbling

D.   Target-Capture-Bubbling

64: If you want to apply a wipe effect and a resize effect in parallel, what should you use to group them together?

A.   Container

B.   Transition

C.   Group

D.   Filter

65: Which of the following graphics formats can be use as a Flex Component?

A.   JPEG

B.   FXG

C.   SVG

D.   PNG

66: Sort event phases in order, from first to last

A.   Bubble, Capture, Target

B.   Capture, Bubble, Target

C.   Target, Capture, Bubble

D.   Capture, Target, Bubble

67: What is the latest released version of Flex SDK?

A.   4.9.5

B.   4.12.1

C.   4.6

D.   3.5

68: What license is Apache Flex released under?

A.   General Public License (GPL)

B.   MIT License

C.   Apache License 2.0

D.   Creative Commons

E.   Adobe Open Source License

69: Where do you define the resource bundles for your application?

A.   Inside <fx:Definitions> tag

B.   Inside <fx:Group> tag

C.   Inside <fx:Metadata> tag

D.   Inside <fx:Scripts> tag

70: In the Flex global coordinate system, coordinates are relative to the upper left corner of what?

A.   Content

B.   Component

C.   Stage

D.   Container

71: What is the name of the top-level object in the display list?

A.   Group

B.   Screen

C.   Stage

D.   Application

72: Where can you get variables that are global to all applications within the same ApplicationDomain?

A.   Globals

B.   NativeApplication.nativeApplication

C.   FlexGlobals

D.   Application.application

73: If you want to prevent a button from displaying in a specific view state, which of the button's properties should you use?

A.   includeIn

B.   visible

C.   hideButton

D.   excludeFrom

74: What does Data Binding enable you to do?

A.   Helps insure stability when refactoring the application

B.   Allows for the end user to manipulate data in real time

C.   Connect components to an underlying data model

D.   Enables the user to create data tables

75: Where can't you find the Apache Flex source code

A.   Apache Git repository

B.   Apache Github mirror

C.   Apache Flex release

D.   Google Code

76: True or False? You can declare constant properties as bindable.

A.   True

B.   False

77: Linux support was added in which version of Apache Flex?

A.   4.9.0

B.   4.8

C.   4.10.0

D.   4.9.1

78: A labelFunction is:

A.   A function that labels text in a data group

B.   A function that is used to determine the text to be rendered for each item in a list

C.   A function that gives a name to a group of data

D.   A function that is used to assign the text to be associated with each item in a list

79: True or False? If you embed a graphic, it is loaded into your Flex application at runtime.

A.   True

B.   False

80: Which is NOT a feature added in Apache Flex 4.11

A.   120dpi and 640dpi mobile skins

B.   MXML to Javascript compilation

C.   Experimental mobile datagrid component

D.   Over 50 bugs fixed

E.   Speed and other improvements to datagrid components

81: Where do you define proxy service destination for working with web services and http services?

A.   in proxy-config.xml

B.   in remoting-config.xml file

C.   in data-management-config.xml file

D.   in messaging-config.xml file

82: Which mobile platforms allow Adobe Air apps?

A.   Android, Blackberry 10, iOS

B.   Android, iOS, Blackberry 7

C.   Android, WindowsPhone, Blackberry Playbook

D.   Android, Blackberry, WindowsPhone

83: How do you avoid "Warning: unable to bind property 'x' on class 'x' ?

A.   By marking the class as [Bindable] with getters and setters

B.   By marking the class as [Bindable] with only getters

C.   By marking the class as [Bindable] with private properties

D.   By marking the class as [Bindable] with only setters

84: Which of the following words is referred to as future reserved words?

A.   Default

B.   Synchronized

C.   Throw

D.   Continue

85: Which of the following components can be used to access server-side data from a REST web service?

A.   HTTPService

B.   RESTService

C.   RemoteObject

D.   WebService

86: Which of the following is not a phase of a drag-and-drop operation?

A.   Dropping

B.   Inititating

C.   Initializing

D.   Dragging

87: Which metadata tag Identifies a property that should be omitted from data that is sent to the server when an ActionScript object is mapped to a Java object using [RemoteClass] ?

A.   [ExcludeClass]

B.   [Omit]

C.   [Transient]

D.   [Exclude]

88: How do you set the default state of a visual component?

A.   setting currentState=""

B.   setting currentState="*"

C.   setting currentState="default"

D.   setting currentState="defaultState"

89: Where can you set a defaultButton property?

A.   on Containers

B.   on Visual Componets

90: If you define three events on a component and set their priority to 1,2 and 3 respectively. Which event will be handled first?

A.   Event with priority 3

B.   Event with priority 2

C.   Event with priority 1

91: Which is true about the following sentence: [Bindable(event="dataChanged")] ?

A.   The Flex compiler automaticaaly creates a propertyChangeEvent

B.   The bindable property will change when an event named dataChanged is dispatched.

C.   The bindable property will be able to be dispatched on a dataChanged event

92: True or False? remoting-config.xml has destinations defined for working with web services and http services.

A.   False

B.   True

93: Where can you use the mx:HTML component to display HTML in a Flex App?

A.   On Adobe AIR TV Applications

B.   On Adobe AIR Mobile Applications

C.   On Adobe AIR Desktop Applications

D.   All of these

94: Which compiler option do you use to specify static linking?

A.   external-library-path

B.   static-link-path

C.   runtime-shared-library-path

D.   library-path

95: Which is not a feature added in Apache Flex 4.10.0?

A.   Over 200 bug fixes

B.   Datagrid row and column locking

C.   Advanced telemetry support

D.   ASC 2.0 compiler support

E.   New spark components

96: How do you insert a "new line" inside a MXML text property?

A.   /\n

B.  

C.   \n

D.   <br>

97: What's the minimum version of Flash Player that Apache Flex 4.9.0, 4.9.1 or 4.10.0 supports?

A.   10.1

B.   11.8

C.   10.2

D.   11.1

E.   11.7

98: An Apache Flex PMC member CANNOT

A.   Vote for new Apache Flex committers and PMC members

B.   Cast binding votes on an Apache Flex release candidate

C.   Vote -1 (veto) code checked into the Git repository

D.   Veto an Apache Flex release candidate

E.   Create an release candidate

99: You would use this syntax to embed asset.png in a StyleSheet:

A.   [Embed(source= "asset.png")

B.   [Embed("asset.png")]

C.   Embed('asset.png')

D.   @Embed("asset.png")