Download Now!Here are your Favorite Software for Mac & Windows!

Test answers for Adobe Flex 3.0 Test 2016

Test answers for adobe flex 3.0 test 2016 available in here, we are also provide all Upwork and Elance skill test with answer that can be help to build strong professional profile. 

Q.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>

  • Global selector
  • Class selector
  • Type selector
  • None of the above

Q.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?

  • height = 300, width = 500
  • height = 100%, width =100%
  • height = 0, width = 0
  • height = 150, width = 250

Q.3. What is the maximum no. of <mx:Script> blocks that can be defined in an mxml file?

  • 0
  • 1
  • 2
  • Unlimited

Q.4. What happens when we add an item(at runtime) to an array collection which is bound to the dataProvider of a Datagrid?

  • 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.

Q.5. What does the pattern letter ‘M’ denote in the format string of a DateFormatter?

  • Seconds
  • Minutes
  • Day
  • Month

Q.6. The dispatchEvent() method of the EventDispatcher class is used to______.

  • dispatch an event
  • register an event listener
  • de-register an event listener
  • create a new event object

Q.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?

  • <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”/>

Q.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>

  • 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

Q.9. With which of the following components can Item Renderers not be used?

  • Datagrid
  • Canvas
  • Tree
  • TileList

Q.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);

  • 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

Q.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?

  • setStyle(“color”,”#FFFFFF”);
  • setStyle(“color”,#FFFFFF);
  • setStyle(#FFFFFF);
  • setStyle(color,#FFFFFF);

Q.12. Which method of the ModuleLoader API is used to load a module?

  • load()
  • loadModule()
  • get()
  • getModule()

Q.13. The priority of the busy Cursor in flex is ______.

  • low
  • medium
  • high

Q.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″/>

  • 2000 seconds
  • 2 seconds
  • 200 milliseconds
  • 20 milliseconds

Q.15. The applicationComplete event of a container occurs before the creationComplete event?

  • True
  • False

Q.63 NOT Answered Yet Test Questions:

(hold on, will be updated soon)

  1. Which of the following is not a data-driven control?
  • Grid
  • DataGrid
  • List
  • Tree
  1. When a flex library project is compiled, what type of file is generated?

Answers:

  • .class
  • .swf
  • .swc
  • .swf or .swc
  1. 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.
  1. Which of the following containers extends the Viewstack class to provide navigation between its child components?

Answers:

  • TabNavigator
  • Accordion
  • TabBar
  • ButtonBar
  1. 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
  1. 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=”*”/>
  1. 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
  1. 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.
  1. 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.
  1. 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.
  1. 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
  1. In the MVC design pattern, which tier do data models of a flex application represent?

Answers:

  • Model
  • View
  • Controller
  1. Which method of a Validator would you call to programmatically trigger the validation?

Answers:

  • validate()
  • test()
  • check()
  • verify()
  1. Which of the following is the root tag of a Flex application?

Answers:

  • <mx:Root>
  • <mx:Module>
  • <mx:Panel>
  • <mx:Application>
  1. 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/>
  1. 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
  1. How many root nodes can an XML(E4X) object have?

Answers:

  • 1
  • 1 or more
  • 0
  • 0 or more
  1. 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.
  1. 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.
  1. 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
  1. Which of the following text controls does not allow the user to input text?

Answers:

  • Text
  • TextArea
  • TextInput
  • RichTextEditor
  1. 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
  1. Which of the following is not a type of Item Renderers?

Answers:

  • inline
  • dropin
  • dropout
  • component
  1. 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.
  1. How many components can an ItemEditor contain?

Answers:

  • 0
  • 1
  • 2
  • Unlimited
  1. Which of the following is used to sort the items of an array collection?

Answers:

  • view cursor
  • label function
  • iterator
  • sort function
  1. 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
  1. Which of the following syntax would be used to set the current state to the base state?

Answers:

  • currentState=base
  • currentState=’base’
  • currentState=”
  • currentState=’*’
  1. Which of the following Flex UI components is not a Control?

Answers:

  • Button
  • Text
  • Canvas
  • List
  1. 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
  1. 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.
  1. By which of the following containers is constraint based layout supported?

Answers:

  • Panel with vertical layout
  • Canvas
  • HBox
  • VBox
  1. Which term best describes a server-side code that interacts directly with the object or service?

Answers:

  • adapter
  • proxy
  • channel
  • destination
  1. How many Application tags can be included in an mxml file?

Answers:

  • 0
  • 1
  • 2
  • Unlimited
  1. 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
  1. What is the maximum no. of characters allowed for the label text of a link button?

Answers:

  • 128
  • 512
  • 1024
  • Unlimited
  1. Which type of Style declaration has the highest precedence?

Answers:

  • Type selector
  • Class selector
  • Global
  • Inline
  1. Which interface needs to be implemented in order to supply our own uid property in a custom class?

Answers:

  • IUniqueIdentifier
  • UniqueIdentifier
  • IUID
  • UID
  1. 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;
  1. 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
  1. When creating a Consumer object, which event is used to get a handle on the data that is received?

Answers:

  • result
  • lastResult
  • message
  • data
  1. 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.
  1. 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
  1. Which of the following does not extend the Box container?

Answers:

  • VBox
  • HBox
  • Canvas
  • All of the above extend the Box container.
  1. Which protocol supports the use of server-pushed messages with the Messaging and Data Management services in Flex?

Answers:

  • HTTP
  • RTMP
  • TCP
  • SMTP
  1. 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 />
  1. 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
  1. Containers can be of two types, which are:

Answers:

  • Navigator and Box containers.
  • Box and Layout containers.
  • Layout and Navigator containers.
  1. After invoking an HTTP service request, in which of the following properties are the returned results stored?

Answers:

  • result
  • lastResult
  • value
  • data
  1. Which of the following methods of the arrayCollection class can be used to add an item in the arrayCollection?

Answers:

  • addItem()
  • addItemAt()
  • push()
  • pushAt()
  1. Which of the following attributes of the Event class is defined in all types of events in flex?

Answers:

  • result
  • type
  • id
  • fault
  1. 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.
  1. Which of the following attributes of the Event Class stores the id of the component which generated the event?

Answers:

  • type
  • id
  • currentTarget
  • target
  1. Which of the following operators can be used for data binding between the properties of a component?

Answers:

  • {}
  • ()
  • []
  • <>
  1. 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
  1. Which of the following does not accept Viewstack as a dataprovider?

Answers:

  • TabNavigator
  • TabBar
  • ButtonBar
  • ToggleButtonBar
  1. Which of the following controls cannot be used as an Item Renderers?

Answers:

  • Button
  • CheckBox
  • Numeric stepper
  • All of the above can be used
  1. 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
  1. 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();
  1. Which type of a value does the Effect.targets property accept?

Answers:

  • Array
  • String
  • Number
  • XML
  1. When creating a new Event object, which of the following attributes must be defined?

Answers:

  • type
  • id
  • bubbles
  • cancellable
  1. 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
  1. 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();

Comments

comments

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.