wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Variables and Functions

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.
How do you declare a variable in actionscript?
a)
dec
b)
var
c)
variable
d)
declare
2.
Select the best answer: Object Oriented programming is
a)
the use of binary code to move objects
b)
the use of binary code to move requires many hours of drinking coffee to understand and code
c)
programming language model organized around objects such as strings, movieclips, integers
d)
the use of line by line programming to accomplish desired effect with movie clips and other data types
3.
When referring to datatype in actionScript we are referring to:
a)
A data type defines a set of values. For example movie clip, integers, or strings.
b)
elements that can be used for analysis for computer speed
c)
The type of compiler that is used to interpret actionscript
d)
The name of the variable.
4.
You can recognize functions of an object because it will always have these symbols as part of it's name.
a)
[ ]
b)
{ }
c)
< >
d)
( )
5.
The = sign used in ActionScript means what?
a)
equal to
b)
it is not used in actionscript
c)
add the variable together.
d)
assignment
6.
When a programmer give a name to a function or variable the name is called:
a)
initializer
b)
identifier
c)
assignment
d)
object
7.
Which of the following variable name is incorrect:
a)
sallySeaShells5
b)
5sallySeaShells
c)
$sallySeaShells
d)
_ShellsbySally5
8.
How do you declare a function?
a)
declare
b)
fun
c)
var
d)
function
9.
How would you call this function in your program? function addNumbers (num1:int, num2:int) { trace( num1+num2); }
a)
call function addNumbers();
b)
addNumbers();
c)
addnumbers(55,15);
d)
addNumbers(14,17);
10.
Which of the following is a String object?
a)
Hello World
b)
9*15
c)
"Hello World"
d)
15