1. Given the following CSS style declaration, which type of style selector is being used?
<mx:Style>
Button{
font-size:30pt;
color:#FFFFFF;
}
</mx:Style>
Answers:
• Global selector
• Class selector
• Type selector
• None of the above
2. Given a DataGrid which is placed inside a Panel(Height=300, width=500), how would you set the height and width of the datagrid so that it automatically changes (to fit in the panel) whenever the panel is resized?
Answers:
• height = 300, width = 500
• height = 100%, width =100%
• height = 0, width = 0
• height = 150, width = 250
3. What is the maximum no. of <mx:Script> blocks that can be defined in an mxml file?
Answers:
• 0
• 1
• 2
• Unlimited
4. What happens when we add an item(at runtime) to an array collection which is bound to the dataProvider of a Datagrid?
Answers:
• The added item automatically appears in the UI(datagrid) subject to the fact that we have refreshed the array collection after adding the item.
• The added item automatically appears in the UI(datagrid) even if we don't refresh the array collection.
• No change occurs in the UI.
• No change occurs in the UI until we refresh the datagrid.
5. What does the pattern letter 'M' denote in the format string of a DateFormatter?
Answers:
• Seconds
• Minutes
• Day
• Month
6. The dispatchEvent() method of the EventDispatcher class is used to______.
Answers:
• dispatch an event
• register an event listener
• de-register an event listener
• create a new event object
7. You want to display a check box control on every row of a datagrid and have both render and change the value of a Boolean property of each data item named isSelected. Which is the correct syntax for the datagrid column in which the checkbox should appear?
Answers:
• <mx:DataGridColumn dataField="isSelected" itemRenderer="mx.controls.CheckBox" editorDataField="value"/>
• <mx:DataGridColumn itemRenderer="mx.controls.CheckBox" editorDataField="value" rendererIsEditor="true"/>
• <mx:DataGridColumn dataField="isSelected" editorDataField="value" rendererIsEditor="true"/>
• <mx:DataGridColumn dataField="isSelected" itemRenderer="mx.controls.CheckBox" editorDataField="value" rendererIsEditor="true"/>
8. Given the following CSS style declarations, what will be the font color and font size of a label in the UI when the application is run?
<mx:Style>
global{
font-size:10pt;
color:#00FF00;
}
Label{
font-size:30pt;
color:#FFFFFF;
}
</mx:Style>
Answers:
• Font color= #00FF00 and Font size=10
• Font color= #FFFFFF and Font size=10
• Font color= #00FF00 and Font size=30
• Font color= #FFFFFF and Font size=30
9. With which of the following components can Item Renderers not be used?
Answers:
• Datagrid
• Canvas
• Tree
• TileList
10. Given a TextInput of id 'myText', what would be the output of the following code snippet?
myText.height = 20;
myText.width = 50;
trace("ExplicitWidth:" + myText.explicitWidth+ " ExplicitHeight:" + myText.explicitHeight);
trace("Width:"+myText.width+ " Height:"+myText.height);
myText.percentHeight=10;
myText.percentWidth=25;
trace("New ExplicitWidth:" + myText.explicitWidth + " New ExplicitHeight:" + myText.explicitHeight);
Answers:
• ExplicitWidth:50 ExplicitHeight:20 Width:50 Height:20 New ExplicitWidth:50 New ExplicitHeight:50
• ExplicitWidth:NaN ExplicitHeight:Nan Width:50 Height:20 New ExplicitWidth:NaN New ExplicitHeight:NaN
• ExplicitWidth:50 ExplicitHeight:20 Width:50 Height:20 New ExplicitWidth:NaN New ExplicitHeight:NaN
• None of the above
11. Which of the following is the correct way of setting the font color of a label to white(#FFFFFF) using the set style method?
Answers:
• setStyle("color","#FFFFFF");
• setStyle("color",#FFFFFF);
• setStyle(#FFFFFF);
• setStyle(color,#FFFFFF);
12. Which method of the ModuleLoader API is used to load a module?
Answers:
• load()
• loadModule()
• get()
• getModule()
13. The priority of the busy Cursor in flex is ______.
Answers:
• low
• medium
• high
14. Given below is the declaration of a Wipe-Effect. What would be the duration of the wipe effect?
<mx:WipeLeft id="myWipeEffect" duration="2000"/>
Answers:
• 2000 seconds
• 2 seconds
• 200 milliseconds
• 20 milliseconds
15. The applicationComplete event of a container occurs before the creationComplete event?
Answers:
• True
• False
63 NOT Answered Yet Test Questions:
(hold on, will be updated soon)16. Which of the following is not a data-driven control?
Answers:
• Grid
• DataGrid
• List
• Tree
17. When a flex library project is compiled, what type of file is generated?
Answers:
• .class
• .swf
• .swc
• .swf or .swc
18. Which of the following statements about the view cursor is true?
Answers:
• The insert() function inserts an item at the current cursor location.
• The insert() function inserts an item after the current cursor location.
• The insert() function inserts an item at the end of the array collection.
• The insert() function inserts an item at the 0th index of the array collection.
19. Which of the following containers extends the Viewstack class to provide navigation between its child components?
Answers:
• TabNavigator
• Accordion
• TabBar
• ButtonBar
20. The default order in which the event propagation phases occur is______.
Answers:
• Capturing Phase, Bubbling Phase and Target Phase
• Target Phase, Capturing Phase and Bubbling Phase
• Bubbling Phase, Target Phase and Capturing Phase
• Capturing Phase, Target Phase and Bubbling Phase
21. Which of the following values of from and to state would create the same transition to and from every state in the application?
Answers:
• <mx:Transition fromState="" toState=""/>
• <mx:Transition fromState="*" toState=""/>
• <mx:Transition fromState="" toState="*"/>
• <mx:Transition fromState="*" toState="*"/>
22. Identify the two components used in the above image:
Answers:
• Grid and Check Box
• Grid and Radio Button
• DataGrid and Radio Button
• DataGrid and Check box
23. Which of the following statements most appropriately describes the 'behavior' of a flex UI component?
Answers:
• The behaviour of a component enables us to add motion and sound to our component.
• The behaviour of a component enables us to add sound and animation to our component.
• The behaviour of a component enables us to add only motion to our component.
• The behaviour of a component enables us to add motion, sound and animation to our component.
24. Given the following declaration of a CurrencyFormatter, what would the trace statement print?
<mx:CurrencyFormatter id="myCurrFormatter" currencySymbol="Rs." precision="1" rounding="nearest"/>
trace(myCurrFormatter.format(50750.75));
Answers:
• Rs.50,750.75
• Rs.50750.8
• Rs.50,750.8
• Error: 'Rs.' is not a valid currency symbol.
25. What is the most efficient way to validate that alpha-numeric data is in the correct format?
Answers:
• Use the RegExpValidator class.
• Use the StringValidator class.
• Use the NumberValidator class.
• Create a custom validator to loop over and validate each character.
26. When a Text control is declared inside the Application tags using the mxml tags, it implies that:
Answers:
• the Text class was instantiated.
• the Text class was declared but not instantiated.
• the Text class was extended.
• None of the above
27. In the MVC design pattern, which tier do data models of a flex application represent?
Answers:
• Model
• View
• Controller
28. Which method of a Validator would you call to programmatically trigger the validation?
Answers:
• validate()
• test()
• check()
• verify()
29. Which of the following is the root tag of a Flex application?
Answers:
• <mx:Root>
• <mx:Module>
• <mx:Panel>
• <mx:Application>
30. A component based on which of the following tags cannot be included inside the main mxml component?
Answers:
• <mx:TitleWindow/>
• <mx:Panel/>
• <mx:Application/>
• <mx:Canvas/>
31. Which of the following components would you use to interact with web services that define their interfaces in a WSDL document which is available as a URL?
Answers:
• HTTPService component
• WebService component
• RemoteObject component
• All of the above
32. How many root nodes can an XML(E4X) object have?
Answers:
• 1
• 1 or more
• 0
• 0 or more
33. Which of the following statements is true about the EmailValidator?
Answers:
• It is used to check if the input string has exactly 1 '@' symbol and exactly 1 period.
• It is used to check if the input string has exactly 1 '@' symbol and at least one period after the '@' symbol.
• It is used to check if the input string has 1 or more '@' symbols and at least one period after the '@' symbol.
• It is used to check if the input string has 1 '@' symbol and exactly 1 period after the '@' symbol.
34. Which of the following statements is incorrect?
Answers:
• Modules are used to create loosely coupled applications.
• Modules can be loaded using the ModuleLoader API.
• Modules cannot load other modules.
• Modules can access data in its parent application.
35. When the repeat count of an effect is set to 0, it implies that the effect will repeat______.
Answers:
• 0 times
• 1 time
• 10 times
• Unlimited times
36. Which of the following text controls does not allow the user to input text?
Answers:
• Text
• TextArea
• TextInput
• RichTextEditor
37. Which of the following can be used to access the server side data from a flex application?
Answers:
• HTTPService component
• WebService component
• RemoteObject component
• All of the above
38. Which of the following is not a type of Item Renderers?
Answers:
• inline
• dropin
• dropout
• component
39. Which of the following statements about a Label control is true?
Answers:
• A Label control can take focus.
• A Label control's background color can be set to white.
• Text in a Label control can be formatted using styling or HTML text.
• A label control's text can be changed by the user.
40. How many components can an ItemEditor contain?
Answers:
• 0
• 1
• 2
• Unlimited
41. Which of the following is used to sort the items of an array collection?
Answers:
• view cursor
• label function
• iterator
• sort function
42. During which phase of the event propagation is the event handler of the component which generated the event invoked?
Answers:
• Capturing Phase
• Bubbling Phase
• Target Phase
• None of the above
43. Which of the following syntax would be used to set the current state to the base state?
Answers:
• currentState=base
• currentState='base'
• currentState=''
• currentState='*'
44. Which of the following Flex UI components is not a Control?
Answers:
• Button
• Text
• Canvas
• List
45. Which of the following is not an advantage of using Modules?
Answers:
• Smaller initial download size of the SWF file
• Shorter loading time of applications
• They can be run independently.
• Better encapsulation of related aspects of an application
46. What is the layout direction of a VBox?
Answers:
• Vertical
• Horizontal
• Diagonal
• A VBox does not have a layout direction. It follows the absolute positioning of components.
47. By which of the following containers is constraint based layout supported?
Answers:
• Panel with vertical layout
• Canvas
• HBox
• VBox
48. Which term best describes a server-side code that interacts directly with the object or service?
Answers:
• adapter
• proxy
• channel
• destination
49. How many Application tags can be included in an mxml file?
Answers:
• 0
• 1
• 2
• Unlimited
50. Which of the following components would be used to show the five components in the form of an organized list in the UI(as shown in the above image)?
Answers:
• TileList
• Hbox
• Canvas
• Panel