A constant (const) variable can be initiated only once.
A String is:
a series of zero or more characters. 66.0%
a series of one or more characters. 33.0%
a single character. 0.0%
a set of no more than 5 characters. 0.0%
An Swf in a local security sandbox:
can access all resources in the local security sandbox. 33.0%
can access some but not all resources in the local security sandbox. 66.0%
can access no resources in the local security sandbox. 0.0%
can access resources in the local as well as the remote security sandbox. 0.0%
Based on the above mentioned declaration of myXML, how can we access the id attribute of the 'employee' tag?
myXML.managers.employee[1].@id 66.0%
myXML.employeeList.managers.employee[1].@id 0.0%
myXML.managers.employee[1].id 33.0%
myXML.employeeList.managers.employee[1].id 0.0%
E4X in Action script is used to:
manipulate complex numeric data. 0.0%
manipulate String data. 0.0%
manipulate string and numeric data. 0.0%
manipulate XML data. 100.0%
Given a number, num = 23, which of the following methods will be used to convert it to a String:
num.toString(); 100.0%
num.toSentence(); 0.0%
num.toWord(); 0.0%
num.toNumber(); 0.0%
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...
func1 is called but func2 is not called. 0.0%
func2 is called but func1 is not called. 0.0%
Either func1 or func2 are randomly chosen and called. 0.0%
Both func1 and func2 are called. 100.0%
Given the code snippet below, what will be the value of myFlag after the 2nd assignment: var myFlag : Boolean=false; myFlag=Boolean (new Date ( ) );
True 66.0%
False 0.0%
Run time error 0.0%
Type Coercion error at compile time 33.0%
Given the declaration 'a timer', which of the following statements is correct? var myTimer:Timer = new Timer (500,5);
When the timer is started, the TimerEvent.TIMER event is dispatched 5 times with a difference of 0.5 seconds between 2 successive events. 100.0%
When the timer is started, the TimerEvent.TIMER_COMPLETE event is dispatched 5 times with a difference of 500 seconds between 2 successive events. 0.0%
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")...
Code Start try catch finally Code End 0.0%
Code Start catch finally 66.0%
Code Start try catch finally 33.0%
Code Start catch 0.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;...
Line1 Value of num in try: 25 Value of num in catch: 25 Value of num: 0 0.0%
Line1 Value of num in catch: 25 Value of num: 0 66.0%
Line1 Value of num in try: 25 Value of num in catch: 25 0.0%
Line 1 Value of num in try: Infinity Value of num: 0 33.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...
One 0.0%
Two 100.0%
Three 0.0%
No match 0.0%
Given the following code snippet: public class Student { public function Student () { trace("Student variable created"); } public function hello () : String { return "He...
Hello World 66.0%
Blank string 0.0%
Program execution ends with a Runtime error 33.0%
Compilation error 0.0%
Given the following instantiation of a date type variable, choose the statement which is true. var myDate : Date = new Date()
The value of myDate is the current time stamp. 100.0%
The value of myDate is an instance of the date class with all values set to either 0 or blank. 0.0%
The value of myDate is null. 0.0%
None of the above 0.0%
Given the following statements about the try/catch/finally block, choose the correct option.
Try is optional but catch and finally are required. 0.0%
Catch is optional but try and finally are required. 0.0%
Finally is optional but try and catch are required. 100.0%
All three blocks are required. 0.0%
Given the following string variable declaration, where 3 is an int var myString : String = "These are " + 3 + " lines" The value stored in myString is:
These are 3 lines 66.0%
These are lines 0.0%
These are three lines 0.0%
Compilation Error: could not convert int to String 33.0%
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?
str1= str1+str2; 33.0%
str2.concat(str1,str2); 0.0%
str1.concat(str1,str2); 16.0%
str1.concat(str2); 50.0%
str2.concat(str1); 0.0%
If no Access modifier is specified for a property in a class, then by default, the property is:
Public 0.0%
Private 66.0%
Protected 0.0%
Internal 33.0%
In the date formatter's format string, which of the following pattern letter represents minutes?
M 100.0%
N 0.0%
S 0.0%
Y 0.0%
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;
only i & ii are valid 0.0%
only ii & iii are valid 33.0%
only i & iii are valid 0.0%
i, ii & iii are all valid 66.0%
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...
Only i and ii are true 0.0%
Only i, ii and iii are true 0.0%
Only i, ii and iv are true 100.0%
All the four are true 0.0%
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...
Null 100.0%
A reference to the last item in the array collection 0.0%
A reference to the first item in the array collection 0.0%
A reference to any random item in the array collection 0.0%
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...
Yes, for any event 100.0%
Yes, but only for MouseEvent.CLICK 0.0%
No, events that occur in the Child.swf do not propagate outside that swf 0.0%
None of the above 0.0%
The addEventListener() method of the EventDispatcher class is used to:
create a new Event 33.0%
delete an event 0.0%
add/register a new listener for an event 66.0%
deregister an event listener 0.0%
The compiled output of an Action script file is:
'.class' file 0.0%
'.swf' file 100.0%
'.as' file 0.0%
'.mxml' file 0.0%
The default values of String and int type variables are:
null and 0 respectively. 100.0%
"" and NaN respectively. 0.0%
null and Nan respectively. 0.0%
"" and 0 respectively. 0.0%
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:
one or more words 0.0%
zero or more words 0.0%
one or more digits 100.0%
zero or more digits 0.0%
The minimum version of flash player required to run Action script 3.0 is:
6.0 0.0%
8.0 0.0%
9.0 100.0%
10.0 0.0%
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:
ArrayCollection 0.0%
int 0.0%
String 0.0%
Array 100.0%
The trim() method of StringUtil Class is used:
only to remove all white spaces from the beginning of the string. 0.0%
only to remove all white spaces from the end of the string. 0.0%
to remove all white spaces from the beginning and the end of the string. 100.0%
to remove all whitespaces in the string including those inside the string. 0.0%
The useWeakReference parameter in the addEventListener method is used to:
make the listener eligible for garbage collection 33.0%
make the Component for which the event is registered eligible for garbage collection. 33.0%
make the parent of the Component for which the event is registered eligible for garbage collection. 0.0%
All of the above 33.0%
What does the addItem() method of the ArrayCollection class do?
It adds an item at the beginning of the collection. 33.0%
It adds an item at the end of the collection. 66.0%
It removes an item from the beginning of the collection. 0.0%
It removes an item from the end of the collection. 0.0%
What does XML stand for?
Exclusive Markup Language 0.0%
Extensible Markup Language 100.0%
Exclusive Model Language 0.0%
Extensible Model Language 0.0%
What is the length of the given array? var myArray1 : Array = new Array ("One", "Two", "Three");
0 0.0%
1 0.0%
2 0.0%
3 100.0%
What will be the output of the following code snippet? var num1 : String="Hello"; var num2:String="Hello"; if (num1===num2) { trace ("Equal"); } els...
Equal 100.0%
Unequal 0.0%
"" 0.0%
Compilation error: Syntax error 0.0%
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);
One,Two,Three 25.0%
Four,Two,Three 25.0%
One,Four,Three 50.0%
Two,Three,Four 0.0%
What will be the output of the following code snippet? try { try { trace("<< try >>"); throw new ArgumentError ("throw this error"); } catch(error : ArgumentError) { ...
<< try >> << catch >> ArgumentError: throw this error << throw >> << Error >> ArgumentError: throw this error << catch >> ArgumentError: throw this error 0.0%
<< try >> << catch >> ArgumentError: throw this error << throw >> 33.0%
<< try >> << catch >> ArgumentError: throw this error << throw >> << catch >> ArgumentError: throw this error 66.0%
Compilation error: Nesting or try catch block not permitted 0.0%
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...
Undefined 0.0%
0 100.0%
3 0.0%
Runtime error: Null pointer reference 0.0%
What will be the output of the following trace statement? trace ("output: " + 10 > 20);
output: true 0.0%
output: false 0.0%
true 0.0%
false 100.0%
What will be the output of the following trace statement? trace(myXML..employee.*.@*);
An XMLList that includes every attribute defined on the employee tag, its parent and all descendants 0.0%
An XMLList that includes every attribute defined on the employee's parent tag and all descendant tags 0.0%
An XMLList that includes every attribute defined on the employee tag's descendants but not on the employee tag 50.0%
An XMLList that includes every attribute defined on the employee tag and all its descendants 50.0%
What will the output of the following trace statement? trace(myXML..employee.(lastName=="Zmed"));
All employee blocks are printed on the console. 0.0%
The first employee block is printed on the console. 100.0%
The complete structure of myXML is printed in the console. 0.0%
Only the lastName tag with value "Zmed" is printed. 0.0%
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); ...
Compilation error at line1 0.0%
Compilation error at line4 50.0%
Compilation error at line5 0.0%
No error. The code will compile and run without errors. 50.0%
When a variable is of the type protected, it is accessible in:
all child classes irrespective of the package 100.0%
only child classes in the same package 0.0%
only child classes outside the current package 0.0%
not accessible in any of the child classes. 0.0%
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...
Security, SecurityErrorEvent.SECURITY_ERROR 0.0%
SecurityError, SecurityErrorEvent.ERROR 0.0%
SecurityError, SecurityErrorEvent.SECURITY_ERROR 100.0%
Security, SecurityErrorEvent.ERROR 0.0%
When in application, in what order do the following events take place (starting from the first)?
Creation complete, pre-Initialize, Initialize, Application complete 0.0%
pre-Initialize, Creation complete, Initialize, Application complete 0.0%
pre-Initialize, Initialize, Application complete, Creation complete 0.0%
pre-Initialize, Initialize, Creation complete, Application complete 100.0%
Which class is the parent class of all custom event classes?
Event 100.0%
MouseEvent 0.0%
ResultEvent 0.0%
EventDispatcher 0.0%
Which event is triggered when a timer completes its execution?
TimerEvent.CYCLE_COMPLETE 0.0%
TimerEvent. END 0.0%
TimerEvent. COMPLETE 0.0%
TimerEvent.TIMER_COMPLETE 100.0%
Which kind of an error is thrown when parsing error occurs in the action script?
Type error 0.0%
Syntax error 100.0%
Argument error 0.0%
Verify error 0.0%
Which nature of ActionScript is depicted by the use of Events?
Synchronous 0.0%
Asynchronous 100.0%
Procedure oriented 0.0%
Object oriented 0.0%
Which of the following are primitive datatypes in Action script 3.0:
Array 0.0%
Date 0.0%
String 50.0%
XML 25.0%
Null 25.0%
Which of the following classes is not used to interact with the client system environment?
Application Class 0.0%
ApplicationDomain Class 100.0%
System Class 0.0%
Capabilities Class 0.0%
Which of the following conditions must be true to facilitate the usage of seek() function of an Array Collection's Cursor?
The Array Collection must contain only similar data types. 0.0%
The Array Collection must be sorted. 0.0%
The Array Collection should have more than 278 objects. 0.0%
None of the above 100.0%
Which of the following Errors does not occur at runtime?
Compile time error 100.0%
Runtime-error 0.0%
Synchronous error 0.0%
Asynchronous error 0.0%
Which of the following is a valid variable name?
_123 50.0%
123 0.0%
my@Var 0.0%
my-Var 50.0%
Which of the following is not a correct way of adding an item to an Array myArr?
myArr.push(item); 0.0%
myArr.addItem(item); 100.0%
myArr[0] = item; 0.0%
All of the above 0.0%
Which of the following is not a phase in the event propagation lifecycle?
Targeting 0.0%
Bubbling 0.0%
Cancelling 50.0%
Capturing 50.0%
Which of the following is not a security-sandbox type?
Local-trusted 0.0%
Local-with-networking 0.0%
Remote 0.0%
Remote-with-networking 100.0%
Which of the following is not a valid Action script data type?
int 0.0%
uint 0.0%
long 100.0%
String 0.0%
Which of the following is not a valid quantifier metacharacter used in Regular expressions?
+ 0.0%
– 100.0%
* 0.0%
? 0.0%
Which of the following keywords is used to bring control out of a loop?
break 100.0%
continue 0.0%
end 0.0%
terminate 0.0%
Which of the following loop structures are used to access dynamic instance variables of an object?
while 0.0%
do-while 0.0%
for 0.0%
for-each-in 100.0%
Which of the following methods of the String class does not accept a regular expression as its parameter?
search() 0.0%
substring() 100.0%
replace() 0.0%
match() 0.0%
Which of the following methods of the XML object class can be used to add a new node to an XML object?
addNode() 0.0%
appendNode() 33.0%
addChild() 0.0%
appendChild() 33.0%
prependChild() 33.0%
Which of the following properties of the Date class does not accepts 0 as a value?
hours 0.0%
date 100.0%
day 0.0%
month 0.0%
Which of the following property of the String class returns the no. of characters in a string?
size 0.0%
numChar 0.0%
length 100.0%
None of the above 0.0%
Which of the following statement is not correct?
While accessing child nodes of an XMLList, the array access operator '[]' can be used and the starting Index is 0. 50.0%
While accessing child nodes of an XMLList, the array access operator '[]' can be used but the starting Index in this case is 1. 50.0%
While fetching children of an XMLList, the children() method of the XML class can be used interchangeably with the '*' operator. 0.0%
All of the above statements are correct. 0.0%
Which of the following statements about the System class is true?
It is used to access the user's operating system. 0.0%
It can be used to set the content of the user's clipboard. 0.0%
It can be used to retrieve current memory usage for flash player. 50.0%
All of the above 50.0%
Which of the following statements is correct?
The '.' and '@' operator can be used only to read data. 0.0%
The '.' operator can be used to read data and write data but the '@' operator can be used only to read data. 0.0%
The '.' and '@' operator can be used both to read and write data. 50.0%
The '@' operator can be used to read data and write data but the '.' operator can be used only to read data. 50.0%
Which of the following statements is not correct?
TimerEvent.TIMER is dispatched when one cycle of the timer is complete. 0.0%
When the repeat count in a timer is set as 0, the timer continues indefinitely until the stop() method is invoked. 0.0%
When a timer is instantiated, it starts automatically. 100.0%
All of the above statements are correct. 0.0%
Which of the following statements is true?
An array is a collection of objects of the same data type. 0.0%
An array is a collection of objects irrespective of the data types. 100.0%
The size of an array must be declared when the array is first declared. 0.0%
The starting index of an array is 1. 0.0%
Which of the following syntax would be used to call a method name helloWorld(), (defined in the html Wrapper) from actionscript?
Application.call ("helloWorld"); 0.0%
ExternalApplication.call ("helloWorld"); 50.0%
ExternalInterface.call ("helloWorld"); 50.0%
helloWorld (); 0.0%
Which of the following types of variables can be accessed without creating an instance of a class?
Constant 0.0%
Final 0.0%
Static 100.0%
Global 0.0%
Which of these is not a valid access modifier?
Private 0.0%
Protected 0.0%
Internal 0.0%
All of the above are valid. 100.0%
Which property of the Event object contains information about the component which generated that event?
target 100.0%
currentTarget 0.0%
type 0.0%
eventPhase 0.0%
While accessing the clipboard through the system manager class, we can:
read data from the clipboard. 50.0%
write data to the clipboard. 50.0%
read data from and write data to the clipboard. 0.0%
Neither read data from nor write data to the clipboard. 0.0%