Search Header Logo

VEX Global Variables and Channels 1

Authored by Davide Bestetti

Information Technology (IT)

Professional Development

Used 2+ times

VEX Global Variables and Channels 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What are global variables in VEX?

Variables defined in functions
Predefined variables available in any context
User-defined variables
Variables that control rendering

Answer explanation

Global variables in VEX are predefined and available in any context.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is a global variable in VEX?

@P
N
Cd
@N

Answer explanation

'N' is a global variable representing the surface normal.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you create a custom parameter in VEX?

By declaring a global variable
By using ch() function
By creating a new node
By writing a Python script

Answer explanation

The ch() function is used to reference custom parameters in VEX.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the ch() function do in VEX?

Changes a variable
Creates a channel reference
Modifies global variables
Accesses shader settings

Answer explanation

The ch() function creates a channel reference for custom parameters.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which global variable holds point positions?

@Cd
P
N
@ptnum

Answer explanation

'P' is a global variable that holds point positions.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you access a custom float parameter in VEX?

chf()
ch()
chv()
chp()

Answer explanation

The ch() function is used for accessing custom parameters, including floats.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is @ptnum in VEX?

A predefined variable for the total number of points
A global variable for the current point number
A custom parameter
A local variable for geometry attributes

Answer explanation

@ptnum is a global variable representing the current point number.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?