Free Adobe 9A0-082 Exam Questions (page: 7)

Which of the following access attributes in ActionScript 3.0 allows access only to the methods of the class itself, and any other class extending this class?

  1. Internal
  2. Public
  3. Protected
  4. Private

Answer(s): C

Explanation:

Access attributes are used to control access of the users from all the properties and methods of a particular class. These attributes are written prior to the names of the classes that decide access and modification privileges for the users. Different types of access attributes are as follows:



Which static properties of the XML class determine how they parse and expose data to E4X expressions? Each correct answer represents a complete solution. Choose two.

  1. ignoreComments
  2. ignoreEscape
  3. ignoreString
  4. ignoreWhitespace

Answer(s): A,D

Explanation:

properties, that determine how the XML class should parse and expose data to E4X expressions, are as follows:
· ignoreComments: If the ignoreComments value is true, it strips comments out of an XML string during the parsing process.
· ignoreProcessinglnstructions: If the ignoreProcessinglnstructions value is true, it strips processing instructions out of an XML string during the parsing process. · ignoreWhitespace: If the ignoreWhitespace value is true, it removes beginning and ending white space characters from text nodes during the parsing process.

Answer options C and B are incorrect. Both are invalid properties.



What is the default resultFormat when complex data is returned by the <mx.HTTPService> class?

  1. Object
  2. Plain text
  3. Raw XML
  4. ActionScript tree of objects

Answer(s): A

Explanation:

Object is the default resultFormat when complex data is returned by the <mx. HTTPService> class. The resultFormat property of the HTTPService component determines how data is exposed in the Flex application when it is received from the server. The values of the result Format property are as follows:



What is the way to control the size and position by anchoring components sides, centers, or baselines to locations in their container?

  1. Explicit sizing
  2. Percentage-based sizing
  3. Default sizing
  4. Constraint-based layout

Answer(s): D

Explanation:

The various ways to control the size of visual components provided by the Flex sizing and layout mechanisms are as follows:

· Default sizing: It automatically determines the sizes of controls and containers. · Explicit sizing: It is used to set the height and width properties to pixel values. By using this, a user can set the component dimension to absolute sizes, and Flex does not override these values.
· Percentage-based sizing: It is used to specify the component size as a percentage of its container size. By using this, a user can specify the percentHeight and percentWidth properties in MXML tags.
· Constraint-based layout: It is used to control the size and position by anchoring components sides, centers, or baselines to locations in their container. A user can do it by specifying the top, bottom, left, right, baseline, horizontalCenter, and verticalCenter styles.



You allow the users to select more than one item at a time by holding down the Ctrl key while clicking on the items.
Which of the following properties will you use to accomplish the task?

  1. allowCtrlSelections
  2. allowMulipleSelections
  3. selectedlndices
  4. selectedltem

Answer(s): B

Explanation:

The allowMulipleSelections property allows the users to select more than one item at a time by holding down the Ctrl key while clicking on the items. Answer options C and D are incorrect. The selectedlndices property is an array of indices of the currently selected items and the selectedltem property is the numeric index of the currently selected item. Answer option A is incorrect. allowCtrlSelections is not a valid property.



Which of the following controls is used to allow users to select only one option at a time?

  1. PopUpButton
  2. RadoButton
  3. ToggleButtonBar
  4. LinkButton

Answer(s): B

Explanation:

RadioButton controls are used in groups of controls that represent mutually exclusive options. In radio buttons a user can select only one option at a time. The properties of

RadioButton controls are as follows: Answer option A is incorrect. The PopUpButton control is a subclass of the Button control. It inherits all the properties of the PopUpButton control, such as events, styles, and methods with the exception of the toggle property and the styles used for a selected button. It allows a user to create a Button with the help of two sub-buttons, a display button, and a pop-up button.
When a user clicks on the button, it presents a visual control as a pop-up window. It has the following characteristics:
· The property of pop-up specifies the pop-up controls. · The open() and close() methods help a user to open and close the pop-up automatically. · Both events open and close are dispatched when the pop-up control opens and closes. A user can use the popUpSkin and arrowButton Width style properties to define the PopUpButton controls appearance. Answer option C is incorrect. The ToggleButton Bar control is used to define a horizontal or vertical group of buttons, which maintain their selected or deselected state.
When a user selects a button in a ToggleButtonBar control, the button remains in the selected state until the user selects a different button.



Based on the following code, what does the XML_URL refer to? var myXML:XML = new XMLQ;
var XML_URL:String =
var myXMLURL:URLRequest = new URLRequest(XML_URL); var myLoader:URLLoader = new URLLoader(myXMLURL);
myLoader.addEventListener('complete', xmlLoaded);
function xmlLoaded(event:Event):void
{
myXML = XML(myLoader.data);
trace("Data Ioaded.')
}

  1. The XML file name
  2. The name of the dynamic text where the XML will be stored
  3. The XMLfile URL
  4. The SWF path

Answer(s): C

Explanation:

The XML_URL is a string variable, which includes the XML file of the loaded content path. The above code is used to call the external content stored in the XML format. Answer options D, A, and B are incorrect. These are not valid options that are referred by the XML_URL.



Toggle Button Bar control has the following default characteristics:
· Preferred size: It is the size wide enough to contain all buttons with their label text and icons.
· Control resizing rules: By default, ToggleButtonBar cannot be resized. However, a developer can specify percentage sizes if he wants the ToggleButtonBar to be resized based on the size of its parent container.
· selectedlndex: It determines which button will be selected when the control is created.
When its value is 0, it selects the leftmost button in the bar.
When its value is set to -1, it deselects all buttons in the bar.
· Padding: By default, ToggleButtonBar control uses 0 pixels for the left and right properties.
Answer option D is incorrect. The LinkButton control is a borderless Button control. Its contents are highlighted when a user moves the mouse over it. In its initial state, the LinkButton is transparent and shows only its label and icon.
When the cursor hovers over the LinkButton, its background color changes and the pointing hand mouse cursor appears at that moment.



You want to send the HTTP request with the help of a Button component.
Which of the following syntaxes should you use used?

  1. <mx: Button label = "Request" click = "service.sendo">
  2. <mx: Button label = "Request" click = service.sendo>
  3. <mx: Button label = "Request" service.sendo>
  4. <mx: Button label = "Request, service.sendo>

Answer(s): A

Explanation:

A user can send an HTTP request using the HTTPRequest objects send() method. For example, if a user wants to retrieve data when the application starts, he can call the send() method in the applications creationComplete event handler:
<mx:Application xmlns:mx=http://www.adobe.com/2006/mxml" creationComplete= "httpservice.sendQ'>

</mx:Application>
On the other hand, the user can also send the request upon a user event, such as to send data on a mouse click using the event handler of the Button component:
<mx:Button label=Request" click="service.sendQ/>
Answer options C, B, and D are incorrect. <mx: Button label = "Request" service.sendo>, <mx:
Button label = "Request" click = service.sendo>, and <mx: Button label = "Request, service.send()
> are invalid syntaxes to send the HTTP request with the help of a Button component.



Viewing page 7 of 17



Post your Comments and Discuss Adobe 9A0-082 exam prep with other Community members:

9A0-082 Exam Discussions & Posts