oDesk Adobe Flex 3.0 Test Answers 2015
·
1. The priority of the busy Cursor in
flex is ______.
Answers:
• low
• medium
• high
2. 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
3. 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
4. What is the maximum no. of
<mx:Script> blocks that can be defined in an mxml file?
Answers:
• 0
• 1
• 2
• Unlimited
5. 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.
6. What does the pattern letter 'M' denote in
the format string of a DateFormatter?
Answers:
• Seconds
• Minutes
• Day
• Month
7. 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
8. 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"/>
9. 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
10. With which of the following components can
Item Renderers not be used?
Answers:
• Datagrid
• Canvas
• Tree
• TileList
11. 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
12. 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);
13. Which method of the ModuleLoader API is
used to load a module?
Answers:
• load()
• loadModule()
• get()
• getModule()
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. When a flex library project is compiled,
what type of file is generated?
Answers:
• .class
• .swf
• .swc
• .swf or .swc
17. 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
18. Which of the following is the root tag of
a Flex application?
Answers:
• <mx:Root>
•
<mx:Module>
•
<mx:Panel>
• <mx:Application>
19. 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
20. 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
21. Which of the following is not a type of
Item Renderers?
Answers:
• inline
• dropin
• dropout
• component
22. Which of the following is used to sort the
items of an array collection?
Answers:
• view cursor
• label function
• iterator
• sort function
23. How many Application tags can be included
in an mxml file?
Answers:
• 0
• 1
• 2
• Unlimited
24. Which of the following attributes of the
Event class is defined in all types of events in flex?
Answers:
• result
• type
• id
• fault
25. Which of the following controls cannot be
used as an Item Renderers?
Answers:
• Button
• CheckBox
• Numeric stepper
• All of the
above can be used
26. When creating a new Event object, which of
the following attributes must be defined?
Answers:
• type
• id
• bubbles
• cancellable
27. Which of the following is not a
data-driven control?
Answers:
• Grid
• DataGrid
• List
• Tree
28. 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.
29. Which of the following containers extends
the Viewstack class to provide navigation between its child components?
Answers:
• TabNavigator
• Accordion
• TabBar
• ButtonBar
30. 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
31. 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="*"/>
32. 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
33. 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.
34. 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.
35. 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.
36. In the MVC design pattern, which tier do
data models of a flex application represent?
Answers:
• Model
• View
• Controller
37. Which method of a Validator would you call
to programmatically trigger the validation?
Answers:
• validate()
• test()
• check()
• verify()
38. 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/>
39. How many root nodes can an XML(E4X) object
have?
Answers:
• 1
• 1 or more
• 0
• 0 or more
40. 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.
41. 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.
42. Which of the following text controls does
not allow the user to input text?
Answers:
• Text
• TextArea
• TextInput
• RichTextEditor
43. 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
44. 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.
45. How many components can an ItemEditor
contain?
Answers:
• 0
• 1
• 2
• Unlimited
46. 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
47. Which of the following syntax would be
used to set the current state to the base state?
Answers:
•
currentState=base
•
currentState='base'
• currentState=''
•
currentState='*'
48. Which of the following Flex UI components
is not a Control?
Answers:
• Button
• Text
• Canvas
• List
49. 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
50. 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.
51. By which of the following containers is
constraint based layout supported?
Answers:
• Panel with
vertical layout
• Canvas
• HBox
• VBox
52. Which term best describes a server-side
code that interacts directly with the object or service?
Answers:
• adapter
• proxy
• channel
• destination
53. 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
54. What is the maximum no. of characters
allowed for the label text of a link button?
Answers:
• 128
• 512
• 1024
• Unlimited
55. Which type of Style declaration has the highest
precedence?
Answers:
• Type selector
• Class selector
• Global
• Inline
56. Which interface needs to be implemented in
order to supply our own uid property in a custom class?
Answers:
•
IUniqueIdentifier
•
UniqueIdentifier
• IUID
• UID
57. Which of the following is the correct way
of setting a style property in a CSS file?
Answers:
• fontsize=12;
• font-size=12;
• fontSize:12;
• fontsize:12;
58. Which method of changing the appearance of
a Flex application requires the use of 3rd-party tools like Adobe Photoshop or
Adobe Flash 8?
Answers:
• styles API
• graphical
skinning
• programmatic
skinning
• cascading style
sheets
59. When creating a Consumer object, which
event is used to get a handle on the data that is received?
Answers:
• result
• lastResult
• message
• data
60. Which statement about CSS properties is
true?
Answers:
• Spaces are
allowed in property names.
• All CSS
properties are available in flex.
• Components
cannot be styled using CSS.
• Class selectors
can be applied to a component using the styleName property.
61. When a new custom component based on VBox
layout is created, it implies that:
Answers:
• the VBox class
was instantiated.
• the VBox class
was declared but not instantiated.
• the VBox class
was extended.
• None of the
above
62. Which of the following does not extend the
Box container?
Answers:
• VBox
• HBox
• Canvas
• All of the
above extend the Box container.
63. Which protocol supports the use of server-pushed
messages with the Messaging and Data Management services in Flex?
Answers:
• HTTP
• RTMP
• TCP
• SMTP
64. Which of the following is the correct way
of assigning the given style to a button control?
<mx:Style>
.myButtonStyle{
font-size:30pt;
color:#FFFFFF;
}
</mx:Style>
Answers:
• <mx:Button
styleName="myButtonStyle" />
• <mx:Button
styleName=".myButtonStyle" />
• <mx:Button
styleName=myButtonStyle />
• <mx:Button
styleName=.myButtonStyle />
65. Which of the following events is
dispatched when a component and all its children have been created, but the
component size has not been determined?
Answers:
• pre-initialize
• initialize
•
creationComplete
• addedToStage
66. Containers can be of two types, which are:
Answers:
• Navigator and
Box containers.
• Box and Layout
containers.
• Layout and
Navigator containers.
67. After invoking an HTTP service request, in
which of the following properties are the returned results stored?
Answers:
• result
• lastResult
• value
• data
68. Which of the following methods of the
arrayCollection class can be used to add an item in the arrayCollection?
Answers:
• addItem()
• addItemAt()
• push()
• pushAt()
69. Which of the following statements about
Data binding is not correct?
Answers:
• Data binding is
the process of tying the data in one object to another object.
• Data binding
requires a source property, a destination property, and a triggering event.
• More than one
source property can be bound to a destination property.
• All of the
above statements are correct.
70. Which of the following attributes of the
Event Class stores the id of the component which generated the event?
Answers:
• type
• id
• currentTarget
• target
71. Which of the following operators can be
used for data binding between the properties of a component?
Answers:
• {}
• ()
• []
• <>
72. Which properties of the datagrid would we need
to set in order to achieve the positioning shown in the image above:
Answers:
• verticalAlign
• horizontalAlign
• bottom
• paddingBottom
• left
• paddingLeft
73. Which of the following does not accept
Viewstack as a dataprovider?
Answers:
• TabNavigator
• TabBar
• ButtonBar
• ToggleButtonBar
74. While adding child components through view
states, which of the following is not a valid value for the 'position'
property?
Answers:
• first
• firstChild
• before
• lastChild
75. Which of the following methods of the
Event class is used to stop the bubbling of an event to its parent containers?
Answers:
• terminate();
•
stopPropagation();
• stop();
•
endPropagation();
76. Which type of a value does the
Effect.targets property accept?
Answers:
• Array
• String
• Number
• XML
77. Which of the following is the correct
syntax for declaring the label function of a datagrid?
Answers:
• private
function myLabelFunction(obj:Object):void
• private
function myLabelFunction(obj:Object,dg:DataGridColumn):void
• private
function myLabelFunction(obj:Object, dg:DataGridColumn):String
• private
function myLabelFunction(obj:Object):String
78. Which of the following is the correct
syntax to show the busy cursor in the UI using the CursorManager class?
Answers:
• CursorManager.showBusyCursor();
•
CursorManager.setBusyCursor();
•
CursorManager.setCursor("busy");
•
CursorManager.setCursor();