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.


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


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


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


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


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>