Action Script 3.0 Test
A constant (const) variable can be initiated only once.
A String is:
An Swf in a local security sandbox:
Based on the above mentioned declaration of myXML, how can we access the id attribute of the 'employee' tag?
E4X in Action script is used to:
Given a number, num = 23, which of the following methods will be used to convert it to a String:
Given that two event listeners are registered for a component CompA as: CompA.addEventListener(MouseEvent.CLICK, func1); CompA.addEventListener(MouseEvent.CLICK, func2); What will happen when a c...
Given the code snippet below, what will be the value of myFlag after the 2nd assignment: var myFlag : Boolean=false; myFlag=Boolean (new Date ( ) );
Given the declaration 'a timer', which of the following statements is correct? var myTimer:Timer = new Timer (500,5);
Given the following code snippet, what will be the output when helloWorld( ) is run? public function helloWorld() : void { trace("Code Start" ); try{ throw new Error ("Test_Error")...
Given the following code snippet, what will be the output when helloWorld() is run? public function helloWorld() : void { trace("Line 1" ); var num : Number=25; try{ num=num/0;...
Given the following code snippet: public function helloWorld(value:int) : String { switch(value){ case 1: return "One"; break; case 2: return "Two"; break; case 3: return...
Given the following code snippet: public class Student { public function Student () { trace("Student variable created"); } public function hello () : String { return "He...
Given the following instantiation of a date type variable, choose the statement which is true. var myDate : Date = new Date()
Given the following statements about the try/catch/finally block, choose the correct option.
Given the following string variable declaration, where 3 is an int var myString : String = "These are " + 3 + " lines" The value stored in myString is:
Given two String variables str1="Hello" and str2="World", which of the following 2 ways can be used to concatenate the 2 strings and store the result in str1?
If no Access modifier is specified for a property in a class, then by default, the property is:
In the date formatter's format string, which of the following pattern letter represents minutes?
Look at the following function declarations and then choose the correct option. i. public function myFunction():*; ii. public function myFunction():void; iii. public function myFunction():String;
Read the following statements and then choose the correct option. i. A class can extend another class ii. A class can Implement an Interface iii. An interface can extend a class iv. An interface ca...
Suppose we have an arrayCollection whose cursor (myCursor) has been created using the arraycollection's getCursor() method. At runtime, when myCursor.afterLast returns true, what is the value of my...
Suppose we have two swf's named Parent.swf and Child.swf (in the same domain), where the Child.swf is loaded inside the Parent.swf as a module, can an Event listener be registered in the Parent.swf...
The addEventListener() method of the EventDispatcher class is used to:
The compiled output of an Action script file is:
The default values of String and int type variables are:
The Error class serves as the base class for all run-time errors thrown by Flash.
The following regular expression : var pattern : RegExp = /d+/; will match:
The minimum version of flash player required to run Action script 3.0 is:
The only difference between a timer and a loop is that timers are machine speed independent while loops are not.
The source of an ArrayCollection is of the type:
The trim() method of StringUtil Class is used:
The useWeakReference parameter in the addEventListener method is used to:
What does the addItem() method of the ArrayCollection class do?
What does XML stand for?
What is the length of the given array? var myArray1 : Array = new Array ("One", "Two", "Three");
What will be the output of the following code snippet? var num1 : String="Hello"; var num2:String="Hello"; if (num1===num2) { trace ("Equal"); } els...
What will be the output of the following code snippet? var myArray1 : Array = new Array("One", "Two", "Three"); var myArray2 : Array = myArray1; myArray2[1] = "Four"; trace(myArray1);
What will be the output of the following code snippet? try { try { trace("<< try >>"); throw new ArgumentError ("throw this error"); } catch(error : ArgumentError) { ...
What will be the output of the following code snippet? var myArray1 : Array = new Array ("One", "Two", "Three"); for(var i : int=0; i<3; i++) { delete myArray1[i]; } tra...
What will be the output of the following trace statement? trace ("output: " + 10 > 20);
What will be the output of the following trace statement? trace(myXML..employee.*.@*);
What will the output of the following trace statement? trace(myXML..employee.(lastName=="Zmed"));
What would happen when the following piece of code is compiled and run? var p : * = new ArrayCollection() //Line1 p.addItem("vishal"); //Line2 p.addItem(24); ...
When a variable is of the type protected, it is accessible in:
When ActionScript can immediately judge an operation to be in violation of a security rule, the __________ exception is thrown, and if, after waiting for some asynchronous task to complete, ActionS...
When in application, in what order do the following events take place (starting from the first)?
Which class is the parent class of all custom event classes?
Which event is triggered when a timer completes its execution?
Which kind of an error is thrown when parsing error occurs in the action script?
Which nature of ActionScript is depicted by the use of Events?
Which of the following are primitive datatypes in Action script 3.0:
Which of the following classes is not used to interact with the client system environment?
Which of the following conditions must be true to facilitate the usage of seek() function of an Array Collection's Cursor?
Which of the following Errors does not occur at runtime?
Which of the following is a valid variable name?
Which of the following is not a correct way of adding an item to an Array myArr?
Which of the following is not a phase in the event propagation lifecycle?
Which of the following is not a security-sandbox type?
Which of the following is not a valid Action script data type?
Which of the following is not a valid quantifier metacharacter used in Regular expressions?
Which of the following keywords is used to bring control out of a loop?
Which of the following loop structures are used to access dynamic instance variables of an object?
Which of the following methods of the String class does not accept a regular expression as its parameter?
Which of the following methods of the XML object class can be used to add a new node to an XML object?
Which of the following properties of the Date class does not accepts 0 as a value?
Which of the following property of the String class returns the no. of characters in a string?
Which of the following statement is not correct?
Which of the following statements about the System class is true?
Which of the following statements is correct?
Which of the following statements is not correct?
Which of the following statements is true?
Which of the following syntax would be used to call a method name helloWorld(), (defined in the html Wrapper) from actionscript?
Which of the following types of variables can be accessed without creating an instance of a class?
Which of these is not a valid access modifier?
Which property of the Event object contains information about the component which generated that event?
While accessing the clipboard through the system manager class, we can: