Flex and ActionScript Web Technologies

Quiz covering Apache Flex framework and ActionScript programming for building Rich Internet Applications, including components, data handling, and event management.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following container is sub class of Panel Container

  1. ViewStack
  2. TitleWindow
  3. Accordion
  4. Application
Question 2 Multiple Choice (Single Answer)

Which of the following is the default value of creationPolicy property of any application?

  1. QUEUED
  2. AUTO
  3. ALL
  4. NONE
Question 3 Multiple Choice (Single Answer)

Which of the following component can be used to present a dialog box style window?

  1. TitleWindow
  2. ControlBar
  3. PopUpBBar
  4. ButtonBar
Question 4 Multiple Choice (Single Answer)

The method in Array which is used to sort the Objects in Array on specific property in the Object is

  1. sort
  2. sortOn
  3. reverse
  4. sortBy
Question 5 Multiple Choice (Single Answer)

Which of the following is correct code to define a contructor in ActionScript class?

  1. private constructor classname()
  2. public constructor classname()
  3. private function classname()
  4. public function classname()
Question 6 Multiple Choice (Single Answer)

Which of the following component is used to encapsulate data and behaviours related to the data processed by the appliation

  1. Controller
  2. View
  3. Pattern
  4. Model
Question 7 Multiple Choice (Single Answer)

What is NOT possible with mx:DataGrid ?

  1. Sortable Columns
  2. Rearrange columns at runtime
  3. Represent hierarchical data
  4. Customize a cell in datagrid
Question 8 Multiple Choice (Single Answer)

You have a requirement to create a itemrenderer which need to be used in more than one column in a datagrid. Which type of ItemRender will be good practice?

  1. DropIn ItemRenderer
  2. Inline ItemRenderer
  3. Custom Component ItemRender
  4. No way to do that in Flex.
Question 9 Multiple Choice (Single Answer)

How do you get access to the object corresponding to the datagrid row inside an itemRenderer?

  1. Access via parent
  2. Have a variable outside of the datagrid to hod the data
  3. Using implicit object called “data”
  4. Using implicit object called “object”
Question 10 Multiple Choice (Single Answer)

How do you pass data to an event handler while dispatching an event?

  1. Use the property called “data” in event Object
  2. Use the property called “payload” in event Object
  3. Create a Custom Event and have your own public variable to hold the data to be passed to the handler
  4. No way to do that.
Question 11 Multiple Choice (Single Answer)

You need to reposition the children of a container when loadin the application based on some custom logic. Which is the correct place to trigger the logic?

  1. preinitialize of the Container
  2. initialize of the container
  3. creationComplete of the child Components of the container
  4. creationComplete of the Container
Question 12 Multiple Choice (Single Answer)

public class Name { private String first, last; public Name(String first, String last) { this.first = first; this.last = last; } public boolean equals(Object o) { if (!(o instanceof Name)) return false; Name n = (Name)o; return n.first.equals(first) && n.last.equals(last); } public static void main(String[] args) { Set s = new HashSet(); s.add(new Name("Donald", "Duck")); System.out.println(s.contains(new Name("Donald", "Duck"))); } } What is the output?

  1. true
  2. false
  3. Compile Error
  4. None of the above
Question 13 Multiple Choice (Single Answer)

Expanstion of AJAX ......

  1. Asyncronous Java eXtensible Language
  2. Asyncronous Java XML
  3. Asyncronous JavaScript XML
  4. Asyncronous J2EE XML
Question 14 Multiple Choice (Single Answer)

Which command will delete all data from a table and will not write to the rollback segment?

  1. DROP
  2. DELETE
  3. CASCADE
  4. TRUNCATE
Question 15 Multiple Choice (Single Answer)

In which case would you use a FULL OUTER JOIN ?

  1. You want all unmatched data from both table
  2. You want all matched data from both table
  3. You want all matched and unmatched data from both table
  4. You want all unmatched data from one table