Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

VEX Data Types 2

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.
How do you declare a global attribute in VEX?
a)
Using the @ symbol
b)
Using the #define directive
c)
By prefixing with $
d)
By declaring it outside a function
2.
Which of the following is a valid VEX variable name?
a)
1var
b)
_variable
c)
float
d)
@attr
3.
What is the primary difference between attributes and variables in VEX?
a)
Attributes are local, variables are global
b)
Attributes are stored with geometry, variables are temporary
c)
Attributes are faster to access
d)
Variables can only hold integers
4.
How do you declare an integer variable in VEX?
a)
int myVar;
b)
integer myVar;
c)
int32 myVar;
d)
number myVar;
5.
Which data type would you use to store RGB color values in VEX?
a)
Matrix
b)
Vector
c)
Array
d)
Float
6.
How can you modify an existing attribute in VEX?
a)
By assigning a value directly
b)
By using the @ symbol and reassigning
c)
By creating a new node
d)
By running a Python script
7.
What is the function of a detail attribute in VEX?
a)
It stores per-geometry data
b)
It stores per-point data
c)
It modifies shader properties
d)
It changes rendering settings
8.
Which keyword is used to declare a constant in VEX?
a)
const
b)
constant
c)
static
d)
define
9.
What does the length() function do in VEX?
a)
Calculates the length of a string
b)
Calculates the magnitude of a vector
c)
Returns the size of an array
d)
Measures the length of geometry
10.
How do you declare an array in VEX?
a)
array myArray[];
b)
int[] myArray;
c)
float myArray{};
d)
arr myArray[];