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

You want to play a transition effect whenever you press the enter key.
Which of the following triggers will you use?

  1. focuslnEffect
  2. hideEffect
  3. creationComplete Effect
  4. moveEffect

Answer(s): A

Explanation:

According to the question, you want to play a transition effect whenever you press the enter key. For this, you will use the focuslnEffect trigger. The focuslnEffect is used to play a transition when a component gains keyboard focus. Answer option C is incorrect. The creationCompleteEffect is used to play a transition when a component has been completely created in Flash Player memory. Answer option B is incorrect. The hideEffect is used to play a transition when a components visible property is set to false or becomes invisible due to a navigator container changing its active container. Answer option D is incorrect. The moveEffect is used to play a transition when the component is moved.



Which of the following statements are true about the combined layout? Each correct answer represents a complete solution. Choose all that apply.

  1. The combined layout uses the x and y properties of child components for pixel-perfect layouts.
  2. A user can create custom components from the existing components while working with the combined layout.
  3. A user can nest containers to create the sophisticated combined layout.
  4. The containers in the combined layout can hold other containers.
    E: A combined layout property must be set to absolute.

Answer(s): B,C,D

Explanation:

The combined layout has the following properties:
· Its containers can hold other containers.
· A user can nest containers to create sophisticated layouts. · A user can create custom components from the existing components. Answer options A and E are incorrect. The combined layout does not use the x and y properties of child components for pixel-perfect layouts. Besides this, there is no restriction that a combined layout property must be set to absolute.



Which of the following containers is used to arrange its children in a single vertical stack, or column?

  1. ViewStack
  2. VBox
  3. TabNavigator
  4. Accordion

Answer(s): B

Explanation:

VBox is a layout container that is used to arrange its children in a single vertical stack, or column. This container behaves like the application component when its layout is set to vertical. It has the following default sizing characteristics:



· Default size: The height of a VBox layout container is large enough to hold all its children at the default. The width of a VBox layout container is the default or width of the widest child along with left and right padding of the container. · Default padding: It has 0 pixels for the top, bottom, left, and right values. Answer option D is incorrect. Accordion is a navigator container, which shows its children containers as a series of panels. It contains a collection of child containers, however, only one of them is visible at a time. It creates and manages navigator buttons (accordion headers), which a user uses to navigate between the children. Accordion does not extend the ViewStack container; however, it implements all the properties, methods, styles, and events of the ViewStack container, such as selectedlndex and selectedChild. An Accordion container has the following default sizing characteristics: Answer option A is incorrect. ViewStack is a container that contains other child containers stacked on top of each other like a deck of cards. It consists of a collection of child containers stacked on top of each other, where only one child at a time is visible.
When the user selects different child containers, the ViewStack container gives the impression of replacing the old one because a new child container appears in the same location. The sizing characteristics of the ViewStack container are follows: Answer option C is incorrect. The TabNavigator container is a child class of the ViewStack container having a collection of child containers, in which only one child can be visible at a time. It automatically creates a TabBar container at the top of the TabNavigator container along with a tab related to each child container. The TabNavigator container has the following characteristics:



Which of the following metadata tags is used to define the allowed data type of each element of an array?

  1. [Bindable]
  2. [DefaultProperty]
  3. [Deprecated]
  4. [ArrayElementType]

Answer(s): D

Explanation:

The [ArrayElementType] metadata tag is used to define the allowed data type of each element of an array. The syntax of [ArrayElementType] is as follows:
[ArrayElementType('String")]
public var arrayOfStrings:Array;
[ArrayElementType('Number")]
public var arrayOfNumbers:Array;
[ArrayElementType("mx.core.UlComponent")]
public var arrayOfUlComponents:Array;
Answer option C is incorrect. It marks a class or class element as deprecated so that the compiler can recognize it and issue a warning when the element is used in an application. The syntax of the [Deprecated] metatag is as follows:

[Deprecated ("string_describing_deprecation")]
[Deprecated(message="string_describing_deprecation")] [Deprecated(replacement= "string_specifying_replacement")] [Deprecated(replacement= "string_specifying_replacement', since= "version_of_replacement")]
Answer option A is incorrect. The [Bindable] metadata tag allows for easy data synchronization within the components of your application. It can be used to bind simple data, classes, complex data, and functions. The syntax of the [Bindable] metadata tag is as follows:
[Bindable(event=eventname)]
Answer option B is incorrect. The [DefaultProperty] metadata tag is used to set a single property as a default property of a class. The syntax of the [DefaultProperty] metadata tag is as follows:
[DefaultProperty('propertyName")]



Which of the following components of the MVC data model is used for handling data interconnectivity in an application?

  1. Controller
  2. View
  3. Architecture
  4. Model

Answer(s): A

Explanation:

Model-View-Controller (MVC) is an architectural pattern that isolates business logic from input and presentation, permitting independent development, testing and maintenance of each. It increases the reusability of the components and improves the maintainability of the overall system. There are three components in MVC, which are as follows:
· Model components: It encapsulates data and behaviors related to the data processed by the application.
· View components: It defines the application's user interface, and the users view of application data.
· Controller components: It handles data interconnectivity in the application and provides application management and the business logic of the application. Answer option C is incorrect. Architecture is not a valid component.



Which of the following methods/properties are used in data traversing? Each correct answer represents a complete solution. Choose all that apply.

  1. filterFunctionQ
  2. afterLast
  3. moveNext()
  4. currer

Answer(s): B,C,D

Explanation:

The current, afterLast, and moveNext() methods/properties are used in data traversing. The following properties and methods supported by the IViewCursor interface allow a user to move through one data item at a time and determine what should be the current cursor position: Answer option A is incorrect. The filterFunction() is used to filter an Array Collection to only show the items that match certain criteria.



Which of the following keywords will be used if you want that a method can be accessed without requiring an instantiation of the class to which it belongs? Each correct answer represents a complete solution. Choose all that apply.

  1. function
  2. method
  3. static
  4. package

Answer(s): A,C

Explanation:

The static keyword will be used if you want that a method can be accessed without requiring an instantiation of the class to which it belongs. The syntax of using the static method is as follows: static final <data type> <variable>= <value>; A function is a small set of instructions designed to operate on its given input and perform some action or return some output. Answer option B is incorrect. A method is a programmed procedure that is defined as part of a class and included in any object of that class. Answer option D is incorrect. A package is used to organize a set of related classes and interfaces.



Which of the following code can be used to add a button component to the stage?

  1. bBtn.emphasized = true;
    Btn.emphasized = true;
    bBtn .addEventListener(MouseEvent.CLICK, Btn_handler); function Btn_handlerO:void {
    bBtn .setStyle("emphasizedSkin, "Button_selectedOverSkin'); }
  2. bBtn.emphasized = true;
    aBtn.emphasized = true;
    bBtn .addEventListener(MouseEvent.CLICK, Btn_handler); function Btn_handler(evt: MouseEvent):void {
    bBtn .setStyle("emphasizedSkin, "Button_selectedOverSkin); }
  3. bBtn.emphasized = true;
    aBtn.emphasized = true;
    bBtn .addEventListener(MouseEvent.CLICK);
    function Btn_handler(evt: MouseEvent):void {
    bBtn.setStyle(emphasizedSkin, "Button_selectedOverSkin); }
  4. bBtn.emphasized = true;
    aBtn.emphasized = true;
    bBtn .addEventListener(MouseEvent, Btn_handler);
    function Btn_handler(evt: MouseEvent):void {
    bBtn.setStyle("emphasizedSkin, Button_selectedOverSkin); }

Answer(s): B

Explanation:

When you add a button component to the stage, you need to define the cases of the button,

a listener for the button, and the handler function in the code frame. Therefore, the correct code is as follows:
bBtn.emphasized = true;
aBtn.emphasized = true;
bBtn.addEventListener(MouseEvent.CLICK, Btn_handler); function Btn_handler(evt:MouseEvent):void {
bBtn.setStyle('emphasizedSkin', "Button_selectedOverSkin"); }






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

9A0-082 Exam Discussions & Posts