Action Script 3.0 Test (Mac Version)
Which of the
following methods of the String class returns the no. of characters in
a string?
Which of the
following is not a valid quantifier metacharacter used in Regular expressions?
Which of the
following is not a phase in the event propagation lifecycle?
The
addEventListener() method of the EventDispatcher class is used to:
Which of the
following statements is true?
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 loop structures are used to access dynamic instance variables of an
object?
When a variable is
of the type protected, it is accessible in:
Based on the above
mentioned declaration of myXML, how can we access the id attribute of the
'employee' tag?
What would be the
output of the following code snippet?
private var myStr : String;
private var myStr : String;
public function get myStr() : String {
return myStr;
}
public function set myStr (value:String) : void {
myStr=value;
}
-------------------------------------------------------
myStr="Hello";
trace(myStr);
Which of the
following conditions must be true to facilitate the usage of seek() function of
an Array Collection's Cursor?
Which property of
the Event object contains information about the component which generated that
event?
An Swf in a local
security sandbox:
Which of the
following statements about the system class is true?
Which of the
following are primitive datatypes in Action script 3.0:
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;
trace ("Value of num in try: "+num.toString());}
catch (err : IOError) {
trace("Value of num in catch: "+num.toString());}
finally{
num=0;}
trace("Value of num: "+num.toString());
}
var num : Number=25;
try{
num=num/0;
trace ("Value of num in try: "+num.toString());}
catch (err : IOError) {
trace("Value of num in catch: "+num.toString());}
finally{
num=0;}
trace("Value of num: "+num.toString());
}
0 comments:
Post a Comment