Olete.in
Articles
Mock Tests
🧪 Apache Flex MCQ Quiz Hub
Apache Flex MCQ Questions Answers Set 1
Choose a topic to test your knowledge and improve your Apache Flex skills
1. How will you call Java method from Flex?
MessageService
Crossdomain
Above all
RemoteObject
2. You would use this syntax to embed asset.png in a StyleSheet:
[Embed(source= "asset.png")
[Embed("asset.png")]
Embed('asset.png')
@Embed("asset.png")
3. Which class lets you work directly with the pixels of a Bitmap object?
BitmapEncodingColorSpace
BitmapData
Bitmap
BitmapDataChannel
4. Which is an example of two-way binding?
<s:TextInput text="@{someData}"/>
<s:TextInput text="{someData}"/>
<s:TextInput="{someData}"/ >
<s:TextInput="@someData">
5. Which of the following allows you to refer to the top-level application object from anywhere in the application?
FlexGlobals.topLevelApplication
UIComponent.topLevelApplication
FlexGlobals.parentApplication
UIComponent.parentApplication
6. Flex 4 introduced a new skinning and component architecture known as what?
DMX✖
Flash
Halo
Spark
7. MVC is a useful Flex development pattern. What does MVC stand for?
Most Valuable Customer
Most VGroup Containers
Modem-Vista-Cairngorm
Model-View-Controller
8. What is the name of the scripting language used with Flex?
NoScript
ActionScript
PHP
JavaScript
9. How do you declare an actionscript private variable?
var variableType:variableName
var variableType variableName
private var variableName:variableType
None of these
10. What is the file extension of a compiled Flex project?
.css
.flv
.swf
.fla
11. When do you use try..catch..finnaly statements?
On customs classes
On customs events
On error handling
On functions definitions
12. Which is not a container type?
Application
Array
Group
Panel
13. What method is used to register an event handler for a component?
registerEventListener()
beginEventListener()
addEventListener()
startEventListener()
14. What is the application container for an AIR application?
VGroup
WindowedApplication
Group
Application
15. Where do you declare non-visual MXML elements in a flex component or application?
Inside <fx:Scripts> tag
Inside <fx:Group> tag
Inside <fx:Definitions> tag
Inside <fx:Declarations> tag
16. Which property should have the same value for all radio buttons in a radio button group?
id
click
groupName
label
17. Which tag enables you to enter ActionScript blocks inside an MXML file?
<s:Ascript>
<fx:ActionScript>
<fx:AScript>
<fx:Script>
18. Which of the following containers allow you to position components using x,y, coordinates?
Group
VGroup
HGroup
TileGroup
19. How do you remove a pop up using PopUpManager?
PopUpManager.removePopUp('popUpComponent')
PopUpManager.destroyPopUp('popUpComponent')
PopUpManager.deletePopUp('popUpComponent')
PopUpManager.closePopUp('popUpComponent')
20. When is it better to use E4X specification?
When working with XML
When working with binary data
When working with HTML responses
When working with JSon objects
21. What event is dispatched when a component and its children are fully processed and visible?
initialize
creationComplete
applicationComplete
preinitialize
22. What is a SWC file?
Class library containing components and other assets.
Flex project file.
File used to specify compiler options.
Compiled Flex application.
23. RIAs stands for:
Regular Internet Applications
Rich Internet Applications
Recursive Internal Applications
Rigid Internal Applications
24. The tree of all visible objects in a Flex application is known as what?
Container
Display list
Object
Class
25. When you add a new display object with ActionScript, it will not be displayed until you do what?
Add the new object as a child of a container.
Create a custom event to display the object.
Add an event listener for the object.
Load the object into the application.
26. Which Spark class is used to specify absolute positioning for the children of a container?
TileLayout
BasicLayout
VerticalLayout
HorizontalLayout
27. Which of the following is not a Drop Target Event?
dragOver
dragEnter
dragDrop
mouseDown
28. If you want to take a user's text input and redisplay it as a date, which type of component should you use?
validator
collection
formatter
grid
29. What is the mechanism included in AIR to manipulate data from a data base file?
PLSQL
SQLServer
MySQL
SQLLite
30. All user interface components in Flex extend what class?
Sprite
Bitmap
InteractiveObject
UIComponent
31. An Apache Flex committer CAN
Commit code to the Apache Flex Git repository
Vote in new Apache Flex committers
Vote in new Apache Flex PMC members
Cast binding votes on an Apache Flex release candidate
32. In order to create in inline item render you must place what inside of the <s:itemRender> tag?
&lt;fx:script&gt;
&lt;fx:component&gt;
&lt;s:GridColumn&gt;
&lt;s:GridColumn&gt;
33. What can you use to pass variables into a .swf application from the HTML wrapper?
FlashVars
HTMLVars
ParamObjs
FlashParams
34. Where do you have to place a cross-domain-policy file?
At the root directory of your application
At the libs directory of your application
At the root directory of the server
There&#039;s no such thing as cross-domain-policy file
35. How do you become an Apache Flex committer?
Add JIRA entries and patches
All of the other answers
Voted in by the Apache Flex PMC
Contribute to discussions on the mailing lists
36. The third and final phase of Flex event flow is known as what?
listening
bubbling
target
capture
37. If you want a class property to be visible to references in the same class and derived classes, which attribute should you assign it?
public
static
private
protected
38. Which of the following is the RPC service used to connect to Java objects?
HTTPObjects
HTTPServices
RemoteObjects
WebServices
39. If the use-network compiler option is set to false, which of the following can the application do?
Access no resources in the local file system or over the network.
Access resources both in the local file system and over the network.
Access resources over the network, but not in the local file system.
Access resources in the local file system, but not over the network.
40. Which tag is used to declare non-default, non-visual properties of the current class?
&lt;s:Nonvisual&gt;
&lt;fx:Declarations&gt;
&lt;mx:Declarations&gt;
&lt;fx:Properties&gt;
41. Which of the following statements would allow you to access the MouseEvent class?
import flash.events.*;
include &quot;allevents.as&quot;;
import flash.events.mouse;
import spark.events;
42. How do you accomplish data persistence in a Flex client?
Using cookies
Using &lt;fx:Model&gt;
Using &lt;s:Model&gt;
Using shared objects
43. If the current view state is not specified when an application loads, what is the default view state?
Name of the first view state defined by the &lt;s:states&gt; tag.
Name of the last view state defined by the &lt;s:states&gt; tag
. View state when the application was last closed.
No default state.
44. What are the three (3) RCP services allowed in flex?
HTTPService, RemoteService, SOAPService
HTTPService, RemoteService, WebService
HTTPService, RemoteObject, WebService
HTTPService, RemoteObject, SOAPService
45. Who has access to Apache Flex code base?
Adobe staff
Apache staff
Apache Flex committers
Anyone
46. Which method would you use to add a component to an MX container?
addNew()
addElement()
addComponent()
addChild()
47. To prevent an application to be blocked when working with local database, you must:
open the database in Synchronous mode
open the database in Asynchronous mode
both (a) and (b)
None of These
48. To implement a two way binding of a text property you would use:
text=&quot;@{fieldX.text}&quot;
text=&quot;@[fieldX.text]&quot;
text=&quot;{@filedX.text}&quot;
text=&quot;[@fieldX.text]&quot;
49. Which application property allows you to specify the XML namespace for a custom component package?
namespace
xmlns
xmlnamespace
xmlspace
50. If you want users to be able to enter and edit multiline text, which of these Spark controls should you use?
RichText
TextInput
TextArea
Label
Submit