Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Câu hỏi ôn tập lập trình Flash Action Script 3
1. ÔN TẬP MÔN LẬP TRÌNH FLASH
(ShareCode4u.Com)
1. How to turn on the background sound with the highest volume?
a. SoundMixer.soundTransform = new SoundTransform(100)
b. SoundMixer.soundTransform = new SoundTransform(1)
c. SoundMixer.soundTransform.volume = 100
d. SoundMixer.soundTransform.volume = 1
2. Each movie clip has its own Timeline and can in turn include other movie clips.
a. True
b. False
3. To insert value into begin of an Array, we use _____ method.
a. shift
b. unshift
c. push
d. pop
4. How can you move to 10th frame which is labeled “ShowDialog”? (select 2)
a. gotoAndPlay(“Show Dialog”)
b. moveToFrame(“ShowDialog”)
c. gotoAndStop(10)
d. moveToFrame(10)
5. Which character can you enter for Textfield text1, if it’s restrict is “a-z^abcd^0-
9”? (select 3)
a. Including lowercasealphabetic characters.
b. Excluding a, b, c and d
c. Including number digits
d. Excluding number digits
6. The backScene() public method can be used to move the playhead to the
previous scene of the movie clip.
a. True
b. False
7. The month property of Date object will return a value from 1 to 12.
a. True
b. False
2. 8. The _____event occurs when the mouse pointer is moved within the interactive
display object.
a. mouseOver
b. mouseOut
c. mouseWheel
d. mouseMove
9. Using the _____, youcan swap quickly between the scripts in a Flash
document.
a. Acitons Toolbox
b. Script Navigator
c. Script Panel
d. Movie Explorer
10.The _____method can be used to move back the playhead 1 frame before
current frame.
a. prevFrame()
b. prevFrame(1)
c. backFrame()
d. backFrame(1)
11.To display an movie clip instance, which method will be used
a. displayMovieclip
b. displayChild
c. showChild
d. addChild
12.By default, the autoSize property is set to _____
a. NONE
b. LEFT
c. RIGHT
d. CENTER
13.While drawing a circle, _____ parameter determines the size of this circle.
a. With
b. Height
c. Size
d. Radius
14.How to make a Textfield text1 as a password field.
a. text1.password= true
3. b. text1.passwordChar = “*”
c. text1.displayAsPassword = true
d. text1.password = “*”
15.The _____event will be used to check if the image is loaded finish.
a. Event.FINISH
b. Event.SUCCESS
c. Event.COMPLETE
d. Event.DONE
16.Which function is used for debug variables in Flash?
a. write
b. print
c. output
d. trace
17.To display borderfor Textfield text1, which codes will be used? (select 2)
a. text1.border = true
b. text1.borderColor= 0x00000
c. text1.border = “black”
d. text1.borderColor = true
18.Which is not an access modify for properties when you create a class?
a. static
b. public
c. private
d. protected
19.While using lineStyle() method, you must set value for alpha parameter from
_____ to _____.
a. 1, 100
b. 0, 1
c. 0, 100
d. 0, less than 1
20.Which keyword will be used when you implement child class Cylinder of
parent class Circle?
a. extends
b. implement
c. super
d. this
4. Share by ShareCode4U.Com
21.Which is the result of unsigned integer variable R when R =
uint.MAX_VALUE and R = R + 1.
a. Runtime error
b. Compile error
c. 0
d. uint.MAX_VALUE
22.How to convert a string “Str” to a number “Num” using Action Script 3.0?
a. Num = (Number)Str
b. Num = Number Str
c. Num = Number(Str)
d. Num = Str
23.Which keyword will be used when a child class’s method has a same name with
the parent class?
a. override
b. overwrite
c. overload
d. overloading
24.Which is the result of variable R when R = 9 and R %= 2.
a. 18
b. 11
c. 7
d. 1
25.How to display a website using URL?
a. navigateToURL(new URLRequest(“http://www.site.com/”))
b. gotoURL(new URLRequest(“http://www.site.com/”))
c. navigateToURL(“http://www.site.com/”)
d. gotoURL(“http://www.site.com/”)
26.To delete a movie clip, _____ method can be used.
a. deleteChild
b. hideChild
c. removeChild
d. unshowChild
5. 27.The _____propertyreturns the character codevalue of the key pressed or
released by the user.
a. charCode
b. keyCode
c. keyDown
d. charEvent
28.To make the mouse pointer disappear, which codewill be used?
a. Mouse.visible = false
b. Mouse.hide()
c. MouseManager.hide()
d. MouseManager.visible = false
29.The codeMath.floor(Math.random()*20) + 10 will generate a random number
between _____ and _____.
a. 10 and 29
b. 10 and 30
c. 10 and 20
d. 0 and 30
30.How to set borderradius when drawing a rectangle using Action Script 3.0?
(select 2)
a. Using drawRoundRect() method
b. Using drawRoundRectComplex() method
c. Using drawRoundRectangle()method
d. Using drawRectangle()method
31.Which event will be used to make the animation smoother?
a. Event.PLAY
b. Event.UPDATE
c. Event.FRAME_PLAY
d. Event.ENTER_FRAME
32.Which keyword will be used to access parent class members?
a. upper
b. parent
c. super
d. this
33.Which is the result of variable R when M = 9 and R = M > 5? “P”: “F”.
a. “P”
6. b. “F”
c. “PF”
d. “FP”
34.Which method is not a member of Math built-in class?
a. sin(90)
b. ceil(3.5)
c. max(5, 7, 2)
d. random(10, 50)
35.The value of Textfield text1 is “ActionScript3.0”, which text will be selected
when the code“text1.setSelection(2, 6)” is running?
a. tion
b. ionS
c. ctio
d. ctio
36.How to catch an action of user when they click on a button?
a. Using method addListener for this button.
b. Using method addEvent for this button.
c. Using method addEventListener for this button.
d. Using method addMouseEventListener for this button.
37.To change forecolor of Textfield text1, which codewill be used? (select 2)
a. text1.htmlText = “<font color=’#ff0000’>Change forecolor</font>”
b. text1.htmlText = “<font color=’red’>Changeforecolor</font>”
c. text1.color= 0xff0000
d. text1.color = “0xff0000”
38.To remove value from the end of an Array, we use _____method.
a. shift
b. unshift
c. push
d. pop
39.How to display the Action Panel in Flash? (select 2)
a. PressedF9
b. On the Windows menu click Actions.
c. Pressed Ctrl + F9
d. On the Windows menu select Other Panel and click Actions.
40.What is AVM stands for?
7. a. ActionScript Virtual Machine
b. ActionScript Virtual Memory
c. flAsh Virtual Machine
d. flAsh Virtual Memory
Xem thêm: Đề thi trắc nghiệm lập trình Flash