Note: This Question is unanswered, help us to find answer for this one
9. The source of an ArrayCollection is of the type:
Answer
Correct Answer:
Array
Note: This Question is unanswered, help us to find answer for this one
10.
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 click event is fired on CompA?
Answer
Correct Answer:
Both func1 and func2 are called.
Note: This Question is unanswered, help us to find answer for this one
11.
What will the output of the following trace statement?
trace(myXML..employee.(lastName=="Zmed"));
Answer
Correct Answer:
The first employee block is printed on the console.
Note: This Question is unanswered, help us to find answer for this one
12. An Swf in a local security sandbox:
Answer
Correct Answer:
can access all resources in the local security sandbox.
Note: This Question is unanswered, help us to find answer for this one
13. Which property of the Event object contains information about the component which generated that event?
Answer
Correct Answer:
target
Note: This Question is unanswered, help us to find answer for this one
14.
What will be the output of the following code snippet?
var num1 : String="Hello";
var num2:String="Hello";
if (num1===num2) {
trace ("Equal");
} else {
trace ("Unequal");
}
Answer
Correct Answer:
Equal
Note: This Question is unanswered, help us to find answer for this one
15. Which of the following is a valid variable name?
Answer
Correct Answer:
_123
Note: This Question is unanswered, help us to find answer for this one
16.
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");
trace("try");
} catch(err : Error) {
trace("catch");
return;
}finally{
trace("finally");
}
trace("Code End");
}
Answer
Correct Answer:
Code Start catch finally
Note: This Question is unanswered, help us to find answer for this one
17. Which of the following methods of the XML object class can be used to add a new node to an XML object?
Answer
Correct Answer:
prependChild()
Note: This Question is unanswered, help us to find answer for this one
18.
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());
}
Answer
Correct Answer:
Line 1 Value of num in try: Infinity Value of num: 0
Note: This Question is unanswered, help us to find answer for this one
19. The compiled output of an Action script file is:
Answer
Correct Answer:
'.swf' file
Note: This Question is unanswered, help us to find answer for this one
20. Which of the following is not a valid quantifier metacharacter used in Regular expressions?
Answer
Correct Answer:
–
Note: This Question is unanswered, help us to find answer for this one
21. Given a number, num = 23, which of the following methods will be used to convert it to a String:
Answer
Correct Answer:
num.toString();
Note: This Question is unanswered, help us to find answer for this one
22. If no Access modifier is specified for a property in a class, then by default, the property is:
Answer
Correct Answer:
Internal
Note: This Question is unanswered, help us to find answer for this one
23. Which of the following is not a security-sandbox type?
Answer
Correct Answer:
Remote-with-networking
Note: This Question is unanswered, help us to find answer for this one
24. The trim() method of StringUtil Class is used:
Answer
Correct Answer:
to remove all white spaces from the beginning and the end of the string.
Note: This Question is unanswered, help us to find answer for this one
25. The addEventListener() method of the EventDispatcher class is used to:
Answer
Correct Answer:
add/register a new listener for an event
Note: This Question is unanswered, help us to find answer for this one
26.
Given the following string variable declaration, where 3 is an int var myString : String = "These are " + 3 + " lines"
The value stored in myString is:
Answer
Correct Answer:
These are 3 lines
Note: This Question is unanswered, help us to find answer for this one
27. Which of the following keywords is used to bring control out of a loop?
Answer
Correct Answer:
break
Note: This Question is unanswered, help us to find answer for this one
28. The Error class serves as the base class for all run-time errors thrown by Flash.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
29. Which of the following statements about the System class is true?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
30.
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 can extend another interface
Answer
Correct Answer:
Only i, ii and iv are true
Note: This Question is unanswered, help us to find answer for this one
31. Which event is triggered when a timer completes its execution?
Answer
Correct Answer:
TimerEvent.TIMER_COMPLETE
Note: This Question is unanswered, help us to find answer for this one
32. 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 to detect mouse click events inside the Child.swf?
Answer
Correct Answer:
Yes, for any event
Note: This Question is unanswered, help us to find answer for this one
33. Which class is the parent class of all custom event classes?
Answer
Correct Answer:
EventDispatcher
Note: This Question is unanswered, help us to find answer for this one
34. Which of the following properties of the Date class does not accepts 0 as a value?
Answer
Correct Answer:
date
Note: This Question is unanswered, help us to find answer for this one
35. Which of the following loop structures are used to access dynamic instance variables of an object?
Answer
Correct Answer:
for-each-in
Note: This Question is unanswered, help us to find answer for this one
36. In the date formatter
Answer
Correct Answer:
M
Note: This Question is unanswered, help us to find answer for this one
37. The default values of String and int type variables are:
Answer
Correct Answer:
null and 0 respectively.
Note: This Question is unanswered, help us to find answer for this one
38.
What will be the output of the following trace statement?
trace(myXML..employee.*.@*);
Answer
Correct Answer:
An XMLList that includes every attribute defined on the employee tag's descendants but not on the employee tag
Note: This Question is unanswered, help us to find answer for this one
39.
What will be the output of the following code snippet?
try {
try {
trace("<< try >>");
throw new ArgumentError ("throw this error");
} catch(error : ArgumentError) {
trace("<< catch >> " + error);
trace("<< throw >>");
throw error;
} catch(error:Error) {
trace ("<< Error >> " + error);
}
} catch (error:ArgumentError) {
trace ("<< catch >> " + error);
Answer
Correct Answer:
<< try >> << catch >> ArgumentError: throw this error << throw >> << catch >> ArgumentError: throw this error
Note: This Question is unanswered, help us to find answer for this one
40. Which of the following is not a phase in the event propagation lifecycle?
Answer
Correct Answer:
Cancelling
Note: This Question is unanswered, help us to find answer for this one
41. 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, ActionScript deems an operation in violation of a security rule, the __________ event is dispatched.
Note: This Question is unanswered, help us to find answer for this one
42. Which of these is not a valid access modifier?
Answer
Correct Answer:
All of the above are valid.
Note: This Question is unanswered, help us to find answer for this one
43. Which of the following types of variables can be accessed without creating an instance of a class?
Answer
Correct Answer:
Static
Note: This Question is unanswered, help us to find answer for this one
44.
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 Date(); //Line4
Answer
Correct Answer:
No error. The code will compile and run without errors.
Note: This Question is unanswered, help us to find answer for this one
45. A String is:
Answer
Correct Answer:
a series of zero or more characters.
Note: This Question is unanswered, help us to find answer for this one
46. What does XML stand for?
Answer
Correct Answer:
Extensible Markup Language
Note: This Question is unanswered, help us to find answer for this one
47. The following regular expression : var pattern : RegExp = /\d+/; will match:
Answer
Correct Answer:
one or more digits
Note: This Question is unanswered, help us to find answer for this one
48. Which of the following statements is true?
Answer
Correct Answer:
An array is a collection of objects irrespective of the data types.
Note: This Question is unanswered, help us to find answer for this one
49. Which of the following conditions must be true to facilitate the usage of seek() function of an Array Collection
Answer
Correct Answer:
The Array Collection must be sorted.
Note: This Question is unanswered, help us to find answer for this one
50.
Given the declaration "a timer", which of the following statements is correct? var myTimer:Timer = new Timer (500,5);
Answer
Correct Answer:
When the timer is started, the TimerEvent.TIMER event is dispatched 5 times with a difference of 0.5 seconds between 2 successive events.
Note: This Question is unanswered, help us to find answer for this one
51. Which of the following property of the String class returns the no. of characters in a string?
Answer
Correct Answer:
length
Note: This Question is unanswered, help us to find answer for this one
52. Which of the following syntax would be used to call a method name helloWorld(), (defined in the html Wrapper) from actionscript?
Answer
Correct Answer:
ExternalInterface.call ()
Note: This Question is unanswered, help us to find answer for this one
53. The minimum version of flash player required to run Action script 3.0 is:
Answer
Correct Answer:
9.0
Note: This Question is unanswered, help us to find answer for this one
54. Which of the following classes is not used to interact with the client system environment?
Answer
Correct Answer:
Application Class
Note: This Question is unanswered, help us to find answer for this one
55. A constant (const) variable can be initiated only once.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
56. Which of the following methods of the String class does not accept a regular expression as its parameter?
Answer
Correct Answer:
substring()
Note: This Question is unanswered, help us to find answer for this one
57. Based on the above mentioned declaration of myXML, how can we access the id attribute of the 'employee' tag?
Answer
Correct Answer:
myXML.managers.employee[1].@id
Note: This Question is unanswered, help us to find answer for this one
58. Given the following statements about the try/catch/finally block, choose the correct option.
Answer
Correct Answer:
Finally is optional but try and catch are required.
Note: This Question is unanswered, help us to find answer for this one
59. The useWeakReference parameter in the addEventListener method is used to:
Answer
Correct Answer:
make the listener eligible for garbage collection
Note: This Question is unanswered, help us to find answer for this one
60. Which of the following Errors does not occur at runtime?
Answer
Correct Answer:
Compile time error
Note: This Question is unanswered, help us to find answer for this one
61. Which of the following statement is not correct?
Answer
Correct Answer:
While accessing child nodes of an XMLList, the array access operator '[]' can be used but the starting Index in this case is 1.
Note: This Question is unanswered, help us to find answer for this one
62.
Given the following instantiation of a date type variable, choose the statement which is true.
var myDate : Date = new Date()
Answer
Correct Answer:
The value of myDate is the current time stamp.
Note: This Question is unanswered, help us to find answer for this one
63. The only difference between a timer and a loop is that timers are machine speed independent while loops are not.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
64. Which of the following is not a valid Action script data type?
Answer
Correct Answer:
long
Note: This Question is unanswered, help us to find answer for this one
65. Which of the following statements is correct?
Answer
Correct Answer:
The '.' and '@' operator can be used both to read and write data.
Note: This Question is unanswered, help us to find answer for this one
66.
Given the code snippet below, what will be the value of myFlag after the 2nd assignment:
var myFlag : Boolean=false;
myFlag=Boolean (new Date ( ) );
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
67. What does the addItem() method of the ArrayCollection class do?
Answer
Correct Answer:
It adds an item at the end of the collection.
Note: This Question is unanswered, help us to find answer for this one
68. When a variable is of the type protected, it is accessible in:
Answer
Correct Answer:
all child classes irrespective of the package
Note: This Question is unanswered, help us to find answer for this one
69. Which of the following are primitive datatypes in Action script 3.0:
Answer
Correct Answer:
String
Note: This Question is unanswered, help us to find answer for this one
70. 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: return "Three"; } } What will be returned if we pass call the above function as helloWorld(2):
Answer
Correct Answer:
Two
Note: This Question is unanswered, help us to find answer for this one
71. Which of the following statements is not correct?
Answer
Correct Answer:
When a timer is instantiated, it starts automatically.
Note: This Question is unanswered, help us to find answer for this one
72. 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 myCursor.current?
Answer
Correct Answer:
Null
Note: This Question is unanswered, help us to find answer for this one
73. By default, Which SWL local sandbox system is used by flash players to place all local SWF files and assets?
Answer
Correct Answer:
local-with-filesystem sandbox
Note: This Question is unanswered, help us to find answer for this one
74. 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;
Answer
Correct Answer:
only ii & iii are valid
Note: This Question is unanswered, help us to find answer for this one
75. What is the length of the given array?
var myArray1 : Array = new Array ("One", "Two", "Three");
Answer
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
76. 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];
}
trace(myArray1.length);
Answer
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
77. Which class is the parent class of all those classes that dispatch events?
Answer
Correct Answer:
EventDispatcher
Note: This Question is unanswered, help us to find answer for this one
78. Given the following code snippet:
public class Student {
public function Student () {
trace("Student variable created");
}
public function hello () : String {
return "Hello World";
}
}
-------------------------------------------------------
public function helloWorld () : String {
var student1 : Student;
return student1.hello ();
}
What will the function helloWorld() return?
Answer
Correct Answer:
Program execution ends with a Runtime error
Note: This Question is unanswered, help us to find answer for this one
79. 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?
Answer
Correct Answer:
str1.concat(str2);
Note: This Question is unanswered, help us to find answer for this one
80. 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);
Answer
Correct Answer:
One,Four,Three
Note: This Question is unanswered, help us to find answer for this one
81. Which kind of error is thrown when parsing error occurs in the ActionScript?
Answer
Correct Answer:
Syntax error
Note: This Question is unanswered, help us to find answer for this one
82. While accessing the clipboard through the SystemManager AS3 Flex class, we can:
Answer
Correct Answer:
write data to the clipboard.
Note: This Question is unanswered, help us to find answer for this one
83. What is the default access modifier if none is specified?
Answer
Correct Answer:
internal
Note: This Question is unanswered, help us to find answer for this one
84. Which is true about Stage?
Answer
Correct Answer:
Stage can be scaled.
Note: This Question is unanswered, help us to find answer for this one
85. Which of the following can you NOT do through the System class?
Answer
Correct Answer:
Read the user's clipboard
Note: This Question is unanswered, help us to find answer for this one
86. What is the output of the following snippet? var s:String = "Pandas use tea cups to drink tea"; s.replace("tea", "");
Answer
Correct Answer:
Pandas use tea cups to drink tea
Note: This Question is unanswered, help us to find answer for this one
87. What is an appropriate class to utilize when storing data to an external file?
Answer
Correct Answer:
There is no such class
Note: This Question is unanswered, help us to find answer for this one
88. What is the result of the following code: var b:Number = ["0","1","2","3","4"].indexOf(0); trace(b)
Answer
Correct Answer:
-1
Note: This Question is unanswered, help us to find answer for this one
89. The Loader object exists in which package?
Answer
Correct Answer:
flash.display
Note: This Question is unanswered, help us to find answer for this one
90. To make a Sprite have hand cursor when hovered you do the following:
Answer
Correct Answer:
All of these
Note: This Question is unanswered, help us to find answer for this one
91. Which event fires when the display objects of a frame have loaded but before any frame scripts run?
Answer
Correct Answer:
frameConstructed
Note: This Question is unanswered, help us to find answer for this one
92. Tween easing is loaded by importing:
Answer
Correct Answer:
fl.transitions.easing
Note: This Question is unanswered, help us to find answer for this one
93. Which of the following is NOT a property of a GeolocationEvent?
Answer
Correct Answer:
timezone
Note: This Question is unanswered, help us to find answer for this one
94. Which is not a correct StageScaleMode Constant?
Answer
Correct Answer:
StageScaleMode.STRETCH;
Note: This Question is unanswered, help us to find answer for this one
95. To hide the standard context menu options, which function can you call?
Answer
Correct Answer:
hideBuiltInItems()
Note: This Question is unanswered, help us to find answer for this one
96. MovieClip is a direct child of which class?
Answer
Correct Answer:
Sprite
Note: This Question is unanswered, help us to find answer for this one
97. To bind a Class to a bitmap object you do the following:
Answer
Correct Answer:
bitmap = new myClass();
Note: This Question is unanswered, help us to find answer for this one
98. Which class of objects can be focused by setting stage.focus?
Answer
Correct Answer:
InteractiveObject
Note: This Question is unanswered, help us to find answer for this one
99. How to change the text color of a TextField?
Answer
Correct Answer:
field.textColor = 0x000000;
Note: This Question is unanswered, help us to find answer for this one
100. Read the following code: var str1:String = "Hello world!"; trace(str1.substr(2,7)); What will be the output?
Answer
Correct Answer:
llo wor
Note: This Question is unanswered, help us to find answer for this one
101. What effect does the following code have? button.useHandCursor = true; button.buttonMode = true; button.mouseChildren = false;
Answer
Correct Answer:
Pointer Mouse cursor
Note: This Question is unanswered, help us to find answer for this one
102. Which of these is not a valid class?
Answer
Correct Answer:
Integer
Note: This Question is unanswered, help us to find answer for this one
103. Which of the following snippets will set String myDay to the current day of the week?
Answer
Correct Answer:
var d:Date = new Date(); myDay = d.day;
Note: This Question is unanswered, help us to find answer for this one
104. What property of the Date class does not accept 0 as a parameter?
Answer
Correct Answer:
date
Note: This Question is unanswered, help us to find answer for this one
105. The following code will create: box.graphics.beginFill(0xffffff,0);
Answer
Correct Answer:
Nothing
Note: This Question is unanswered, help us to find answer for this one
106. What is the difference between Shape and Sprite?
Answer
Correct Answer:
Shape cannot add children to it self.
Note: This Question is unanswered, help us to find answer for this one
107. Which of these functions of ArrayCollection adds an item at the end of a collection?
Answer
Correct Answer:
addItem()
Note: This Question is unanswered, help us to find answer for this one
108. What is the result of the following code: import flash.utils.getDefinitionByName; var ClassReference:Class = getDefinitionByName("flash.display.Sprite") as Class; var instance:Object = new ClassReference(); trace(instance);
Answer
Correct Answer:
[object Sprite]
Note: This Question is unanswered, help us to find answer for this one
109. What class creates a two way connection between a client Flash/AIR application and a server?
Answer
Correct Answer:
NetConnection
Note: This Question is unanswered, help us to find answer for this one
110. Which of the following will NOT be garbage collected?
Note: This Question is unanswered, help us to find answer for this one
115. What does the following display? for each (var someVar in someArray) { trace(someVar); }
Answer
Correct Answer:
The contents of the array someArray
Note: This Question is unanswered, help us to find answer for this one
116. Which keyword will prevent a method from being overwritten by a child class?
Answer
Correct Answer:
final
Note: This Question is unanswered, help us to find answer for this one
117. To cast a class as a specific type the correct syntax is:
Answer
Correct Answer:
type:myType = new Type() as myType;
Note: This Question is unanswered, help us to find answer for this one
118. What are the three phases of the event flow?
Answer
Correct Answer:
capture, target and bubbling
Note: This Question is unanswered, help us to find answer for this one
119. Which of the following text controls allows the user to input text? i. Text ii. TextArea iii. TextInput iv. RichTextEditor
Answer
Correct Answer:
ii, iii, and iv
Note: This Question is unanswered, help us to find answer for this one
120. Which of the following is a valid way to create a Vector of type String? i. var v: Vector. = new ["str1", "str2", "str3"]; ii. var v:Vector. = new Vector.(); iii. var v:Vector = new Vector(); iv. var v: Vector = ["str1", "str2", "str3"];
Answer
Correct Answer:
i and ii
Note: This Question is unanswered, help us to find answer for this one
121. To display hand cursor over a Sprite you declare:
Answer
Correct Answer:
useHandCursor = true;
Note: This Question is unanswered, help us to find answer for this one
122. Which of the following is a function of the Timer class?
Answer
Correct Answer:
reset()
Note: This Question is unanswered, help us to find answer for this one
123. Read the following code: var bool1:Boolean = true; var bool2:Boolean = false; trace(bool1 ||= bool2); trace(bool1 &&= bool2); What will be the output?
Answer
Correct Answer:
true, false
Note: This Question is unanswered, help us to find answer for this one
124. The volume of a sound can be adjusted using what class?
Answer
Correct Answer:
SoundTransform
Note: This Question is unanswered, help us to find answer for this one
125. Which of the following ways can be used to concatenate String str1 and String str2? 1). str1 = str1 + str2; 2). str1.concat(str2); 3). str1.concat(str1, str2); 4). str1 += str2;
Answer
Correct Answer:
1, 2, and 4
Note: This Question is unanswered, help us to find answer for this one
126. What property of an event listener refers to the object actively processing an Event object?
Answer
Correct Answer:
currentTarget
Note: This Question is unanswered, help us to find answer for this one
127. How do you store data in a Dictionary?
Answer
Correct Answer:
dictionary[key] = 'key';
Note: This Question is unanswered, help us to find answer for this one
128. What is the default maximum size for a remote shared object?
Answer
Correct Answer:
100 kB
Note: This Question is unanswered, help us to find answer for this one
129. Which one is a valid method of opening a link in ActionScript 3?
Note: This Question is unanswered, help us to find answer for this one
151. Read the following code: var str1:String = "foobar"; var str2:String = "helloWorld"; var str3:String = (str1.length > 5) ? str1 : str2; trace(str3); What will be the output?
Answer
Correct Answer:
foobar
Note: This Question is unanswered, help us to find answer for this one
152. Which method allows you to join two Arrays into a new Array?
Answer
Correct Answer:
var myNewArray:Array = myArray1.concat(myArray2);
Note: This Question is unanswered, help us to find answer for this one
153. Which of the following is not a primitive type in ActionScript 3.0?
Answer
Correct Answer:
Array
Note: This Question is unanswered, help us to find answer for this one
154. Choose the BEST appropriate data type for the following situation: Your boss wants you to calculate the percentage of people that donated more than five dollars to your non-profit.
Answer
Correct Answer:
Number
Note: This Question is unanswered, help us to find answer for this one
155. Which of the following is an example of a bitwise operator
Answer
Correct Answer:
>>
Note: This Question is unanswered, help us to find answer for this one
156. To detect when an object has entered into a stage we listen for:
Note: This Question is unanswered, help us to find answer for this one
157. What is the name of the function of the StringUtil Class that removes all white spaces from the beginning and end of a String?
Answer
Correct Answer:
trim()
Note: This Question is unanswered, help us to find answer for this one
158. Which class is used to load an XML File?
Answer
Correct Answer:
URLLoader
Note: This Question is unanswered, help us to find answer for this one
159. What is the result of the following code? var b:Array = [1,2,3].map(function(i) { return i+1 }); trace(b);
Answer
Correct Answer:
2,3,4
Note: This Question is unanswered, help us to find answer for this one
160. What class is needed to change the alignment of text in a TextField?
Answer
Correct Answer:
TextFormat
Note: This Question is unanswered, help us to find answer for this one
161. What is a correct syntax to cast a String "str" into a Number?
Answer
Correct Answer:
newNum = Number(str);
Note: This Question is unanswered, help us to find answer for this one
162. Which is required to download images from another domain?
Answer
Correct Answer:
crossdomain policy file
Note: This Question is unanswered, help us to find answer for this one
163. What does the stop() action do?
Answer
Correct Answer:
It stops playback in the timeline it is called in
Note: This Question is unanswered, help us to find answer for this one
164. Referring to the index position of an array item that doesn't exist will throw which error?
Answer
Correct Answer:
RangeError
Note: This Question is unanswered, help us to find answer for this one
165. The proper syntax for assigning an object literal is:
Answer
Correct Answer:
var obj:Object = {prop1:"foo", prop2:"bar"}
Note: This Question is unanswered, help us to find answer for this one
166. Sprite is a class of the following package:
Answer
Correct Answer:
flash.display
Note: This Question is unanswered, help us to find answer for this one
167. The function Date.getDay() will return a zero for what day of the week?
Answer
Correct Answer:
Sunday
Note: This Question is unanswered, help us to find answer for this one
168. What event is dispatched when a Loader finishes loading?
Answer
Correct Answer:
Event.COMPLETE
Note: This Question is unanswered, help us to find answer for this one
169. To communicate with Javascript the correct synxtax is:
Answer
Correct Answer:
ExternalInterface.call('foo');
Note: This Question is unanswered, help us to find answer for this one
170. On an Event handler function, how do you know which item fired the event ?
Answer
Correct Answer:
By accessing the target property of the event
Note: This Question is unanswered, help us to find answer for this one
171. Which class can be used to find the size in bytes of your SWF or other media file?
Answer
Correct Answer:
LoaderInfo
Note: This Question is unanswered, help us to find answer for this one
172. How would you load an image from an external file?
Answer
Correct Answer:
var urlReq:URLRequest = new URLRequest("file location");
Note: This Question is unanswered, help us to find answer for this one
173. public function someFunction(value: Number) { switch(value) { case 5: trace ("Hello"); case 9: trace ("World"); } trace("Apples"); } What would the output be if someFunction(4) were called?
Answer
Correct Answer:
Apples
Note: This Question is unanswered, help us to find answer for this one
174. Choose the BEST appropriate data type for the following situation: A teacher would like you to record a list of student names and grades in an array.
Answer
Correct Answer:
String
Note: This Question is unanswered, help us to find answer for this one
175. What symbols represent an XML literal tag delimiter?
Answer
Correct Answer:
< >
Note: This Question is unanswered, help us to find answer for this one
176. Which class can be used to change the color of a display object?
Answer
Correct Answer:
ColorTransform
Note: This Question is unanswered, help us to find answer for this one
177. The correct syntax for removing an object from a specific index position of the stage is:
Answer
Correct Answer:
stage.removeChildAt(index);
Note: This Question is unanswered, help us to find answer for this one
178. How do you add an object to the display list?
Answer
Correct Answer:
addChild(object);
Note: This Question is unanswered, help us to find answer for this one
179. What is the smallest amount by which the Timer class measures time?
Answer
Correct Answer:
Milliseconds
Note: This Question is unanswered, help us to find answer for this one
180. What is the difference between .swc and .swf?
Answer
Correct Answer:
.swc can be imported as a standalone library
Note: This Question is unanswered, help us to find answer for this one
181. The addEventListener() function is used to ________.
Answer
Correct Answer:
Register an event listener for an event
Note: This Question is unanswered, help us to find answer for this one
182. ButtonOne.addEventListener(MouseEvent.CLICK,runA); ButtonTwo.addEventListener(MouseEvent.CLICK,runB); What happens when ButtonOne's click event is triggered?
Answer
Correct Answer:
runA is called
Note: This Question is unanswered, help us to find answer for this one
183. Which statement can be used to exit an otherwise infinite for loop?
Answer
Correct Answer:
break;
Note: This Question is unanswered, help us to find answer for this one
184. Which event class can be used to tell if a user clicks on an object?
Answer
Correct Answer:
MouseEvent
Note: This Question is unanswered, help us to find answer for this one
185. Which of the following is NOT a function of the String class?
Answer
Correct Answer:
color
Note: This Question is unanswered, help us to find answer for this one
186. How do you end filling on a shape object?
Answer
Correct Answer:
obj.graphics.endFill();
Note: This Question is unanswered, help us to find answer for this one
187. Which function of the String class returns the number of characters in a string?
Answer
Correct Answer:
length()
Note: This Question is unanswered, help us to find answer for this one
188. What element appears above and below lines of annotated code to distinguish them from working code?
Answer
Correct Answer:
/* and */
Note: This Question is unanswered, help us to find answer for this one
189. What expression will insert a new line into a String?
Answer
Correct Answer:
\n
Note: This Question is unanswered, help us to find answer for this one
190. Which of these is a valid variable declaration?
Answer
Correct Answer:
var a:Number = 0;
Note: This Question is unanswered, help us to find answer for this one
191. Which one of the following is a strict type declaration?
Answer
Correct Answer:
var myVar:Sprite = new Sprite();
Note: This Question is unanswered, help us to find answer for this one
192. To disable mouse selection to an InteractiveObject, the correct syntax is:
Answer
Correct Answer:
item.mouseEnabled = false;
Note: This Question is unanswered, help us to find answer for this one
193. What is the method to add a DisplayObject on the DisplayList ?
Answer
Correct Answer:
addChild()
Note: This Question is unanswered, help us to find answer for this one
194. What is a Sprite?
Answer
Correct Answer:
A display object container
Note: This Question is unanswered, help us to find answer for this one
195. Which of the following is a function of the MovieClip class?
Answer
Correct Answer:
play()
Note: This Question is unanswered, help us to find answer for this one
196. What is the correct function to call in order to open an external url?
Note: This Question is unanswered, help us to find answer for this one
197. Choose the BEST appropriate data type for the following situation: Lucy wants to store the names of the animals at the zoo into an array of variables.
Answer
Correct Answer:
String
Note: This Question is unanswered, help us to find answer for this one
198. To bind an event listener the correct syxtax is:
Note: This Question is unanswered, help us to find answer for this one
199. What is the modular and performance-oriented concept upon which ActionScript is built?
Answer
Correct Answer:
Object Oriented Programming
Note: This Question is unanswered, help us to find answer for this one
200. What is the output of the following snippet? var string1:String = "Hello World"; var string2:String = "Hello World"; if (string1 == string2) { trace("TRUE"); } else { trace("FALSE"); }
Answer
Correct Answer:
TRUE
Note: This Question is unanswered, help us to find answer for this one
201. The correct syntax for opening a webpage using the default web browser is:
Note: This Question is unanswered, help us to find answer for this one
202. To display messages on the console we type:
Answer
Correct Answer:
trace('foo');
Note: This Question is unanswered, help us to find answer for this one
203. What is the import statement for Mouse Click events?
Answer
Correct Answer:
flash.events.MouseEvent;
Note: This Question is unanswered, help us to find answer for this one
204. How do you create a circle?
Answer
Correct Answer:
obj.graphics.drawCircle();
Note: This Question is unanswered, help us to find answer for this one
205. To detect when an object was entered to stage we listen for:
Answer
Correct Answer:
ADDED_TO_STAGE
Note: This Question is unanswered, help us to find answer for this one
206. var check:Boolean = 0; will have value of?
Answer
Correct Answer:
false
Note: This Question is unanswered, help us to find answer for this one
207. Which keyword allows a child class to overwrite a parent class's method?
Answer
Correct Answer:
override
Note: This Question is unanswered, help us to find answer for this one
208. Which method will call the constructor of a parent class?
Answer
Correct Answer:
super()
Note: This Question is unanswered, help us to find answer for this one
209. What is the output of the following snippet? var animal1:String = "Lions"; var animal2:String = "Dogs"; var zoo:Array = new Array(animal1, animal2, " and Bears"); zoo[1] = "Tigers"; trace(zoo);
Answer
Correct Answer:
Lions,Tigers, and Bears
Note: This Question is unanswered, help us to find answer for this one
210. Which class can be used to read the URL that your SWF or media file is currently running on?
Answer
Correct Answer:
LoaderInfo
Note: This Question is unanswered, help us to find answer for this one
211. What will be in output console? var a: Sprite = new Sprite(); var b: Sprite = a; a = null; trace(b);
Answer
Correct Answer:
[Object Sprite]
Note: This Question is unanswered, help us to find answer for this one
212. What keyword brings control out of a loop?
Answer
Correct Answer:
break
Note: This Question is unanswered, help us to find answer for this one