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