Deck 6: Methods, Functions, and More About Variables

Full screen (f)
exit full mode
Question
What is the term for a method that is written by programmers as needed?

A) Dummy
B) Custom
C) Designer
D) Variable
E) None of these
Use Space or
up arrow
down arrow
to flip the card.
Question
The practice of writing a method to perform a single task and then calling that method whenever you need to perform that task is called:

A) Code reuse
B) Divide and conquer
C) Inheritance
D) Parameter
E) None of these
Question
Which of the following is used to create a variable in a class-level function?

A) Create new parameter button in the Method Editor
B) Create new variable button in the Method Editor
C) Create new variable button in the Details Panel
D) Create new method button in the Details Panel
E) None of these
Question
Additional properties can be added to an object by creating class-level variables.
Question
If a class does not provide a method that you need, you can write your own custom method for an object of that class.
Question
Which of the following are available from a class-level method?

A) Class-level function associated with the same class
B) Class-level method associated with a different class
C) Class-level variable associated with a different class
D) All of the above
E) None of these
Question
Which of the following properties is used to turn on the fog effect.

A) fogDensity
B) fogStyle
C) makeFog
D) fogOn
E) None of these
Question
Which of the following is used to keep two objects together so they move as one?

A) Billboard
B) Dummy
C) Pose
D) Vehicle property
E) None of these
Question
The strategy that is used to break a problem down into smaller pieces that can be more easily handled is called:

A) Code reuse
B) Divide and conquer
C) Inheritance
D) Parameter
E) None of these
Question
Which of the following are available from a world-level method?

A) Class-level function
B) Class-level method
C) World-level variable
D) All of the above
E) None of these
Question
Which of the following is used to create a variable in a class-level method?

A) Create new parameter button in the Method Editor
B) Create new variable button in the Method Editor
C) Create new variable button in the Details Panel
D) Create new method button in the Details Panel
E) None of these
Question
Which of the following is used to create a class-level variable?

A) Create new parameter button in the Method Editor
B) Create new variable button in the Method Editor
C) Create new variable button in the Details Panel
D) Create new method button in the Details Panel
E) None of these
Question
Which of the following can be created by a programmer?

A) Class-level function
B) World-level function
C) World-level method
D) All of the above
E) None of these
Question
What is the term used to specify that a class that is based on a prior class has access to the methods and properties of that other class?

A) Code reuse
B) Divide and conquer
C) Inheritance
D) Parameter
E) None of these
Question
Which of the following is used to return an object to a physical arrangement that was previously saved?

A) Billboard
B) Dummy
C) Pose
D) Vehicle
E) None of these
Question
Which of the following is used to insert images into a world?

A) Billboard
B) Dummy
C) Pose
D) Vehicle
E) None of these
Question
When you create a custom method for an object, it is automatically added to that object's class.
Question
The parameter of a custom method cannot be an object.
Question
Because properties are variables that belong to objects, they are referred to as:
a.
Property variables
b.
World-level variables
c.
Object variables
d.
Class-level variables
e.
None of these
Question
Which of the following is used to move the camera to different locations around the world?

A) Billboard
B) Dummy
C) Pose
D) Vehicle
E) None of these
Question
Inheritance allows programmers to reuse code.
Question
A method can accept ___________________, which allow data to be passed into the method when it is called.
Question
While custom class-level methods can be created, it is not possible to create a custom class-level function.
Question
A(n) ___________________ is used to insert images into a world.
Question
The ___________________button in the Method Editor is used to add a parameter to a custom method.
Question
The ___________________ strategy is used to break a problem down into smaller pieces that can be more easily handled.
Question
Writing a method to perform a single task and then calling that method whenever you need to perform that task is called ___________________.
Question
A(n) ___________________ is a special variable that holds the argument being passed into a method.
Question
The two world properties, fogStyle and fogDensity, are used to create a fog effect.
Question
World-level variables are available to all world-level methods.
Question
Class-level variables are available only in the method in which they were created.
Question
Class-level ___________________ are used to add additional properties to an object.
Question
The method, my first method, which is automatically created, is a(n) __________________-level method.
Question
Once you create a parameter in a method, an argument will be required anytime the method is called.
Question
There can only be one custom world-level method.
Question
The easiest way to keep two objects together so they move as one is to use the ___________________ property.
Question
A(n) ___________________ method is written by the programmer as needed.
Question
Class-level methods should not refer to objects in other classes.
Question
A method that performs a complex task should be broken down into several smaller methods.
Question
There is no easy way to make one object turn around another object.
Question
The ___________________ method is used to point the camera at an object.
Question
The ___________________ argument is used to have one object circle around another object.
Question
The camera will follow an object around if you set its ___________________ property to that object.
Question
A captured ___________________ is used to cause an object to return to a physical arrangement that was previously saved.
Question
___________________ objects are used to easily move the camera to different locations.
Question
To take an object as an argument you have to create a(n)___________________ parameter.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/46
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 6: Methods, Functions, and More About Variables
1
What is the term for a method that is written by programmers as needed?

A) Dummy
B) Custom
C) Designer
D) Variable
E) None of these
B
2
The practice of writing a method to perform a single task and then calling that method whenever you need to perform that task is called:

A) Code reuse
B) Divide and conquer
C) Inheritance
D) Parameter
E) None of these
A
3
Which of the following is used to create a variable in a class-level function?

A) Create new parameter button in the Method Editor
B) Create new variable button in the Method Editor
C) Create new variable button in the Details Panel
D) Create new method button in the Details Panel
E) None of these
B
4
Additional properties can be added to an object by creating class-level variables.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
5
If a class does not provide a method that you need, you can write your own custom method for an object of that class.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
6
Which of the following are available from a class-level method?

A) Class-level function associated with the same class
B) Class-level method associated with a different class
C) Class-level variable associated with a different class
D) All of the above
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following properties is used to turn on the fog effect.

A) fogDensity
B) fogStyle
C) makeFog
D) fogOn
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following is used to keep two objects together so they move as one?

A) Billboard
B) Dummy
C) Pose
D) Vehicle property
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
9
The strategy that is used to break a problem down into smaller pieces that can be more easily handled is called:

A) Code reuse
B) Divide and conquer
C) Inheritance
D) Parameter
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following are available from a world-level method?

A) Class-level function
B) Class-level method
C) World-level variable
D) All of the above
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is used to create a variable in a class-level method?

A) Create new parameter button in the Method Editor
B) Create new variable button in the Method Editor
C) Create new variable button in the Details Panel
D) Create new method button in the Details Panel
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is used to create a class-level variable?

A) Create new parameter button in the Method Editor
B) Create new variable button in the Method Editor
C) Create new variable button in the Details Panel
D) Create new method button in the Details Panel
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following can be created by a programmer?

A) Class-level function
B) World-level function
C) World-level method
D) All of the above
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
14
What is the term used to specify that a class that is based on a prior class has access to the methods and properties of that other class?

A) Code reuse
B) Divide and conquer
C) Inheritance
D) Parameter
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is used to return an object to a physical arrangement that was previously saved?

A) Billboard
B) Dummy
C) Pose
D) Vehicle
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is used to insert images into a world?

A) Billboard
B) Dummy
C) Pose
D) Vehicle
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
17
When you create a custom method for an object, it is automatically added to that object's class.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
18
The parameter of a custom method cannot be an object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
19
Because properties are variables that belong to objects, they are referred to as:
a.
Property variables
b.
World-level variables
c.
Object variables
d.
Class-level variables
e.
None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following is used to move the camera to different locations around the world?

A) Billboard
B) Dummy
C) Pose
D) Vehicle
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
21
Inheritance allows programmers to reuse code.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
22
A method can accept ___________________, which allow data to be passed into the method when it is called.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
23
While custom class-level methods can be created, it is not possible to create a custom class-level function.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
24
A(n) ___________________ is used to insert images into a world.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
25
The ___________________button in the Method Editor is used to add a parameter to a custom method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
26
The ___________________ strategy is used to break a problem down into smaller pieces that can be more easily handled.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
27
Writing a method to perform a single task and then calling that method whenever you need to perform that task is called ___________________.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
28
A(n) ___________________ is a special variable that holds the argument being passed into a method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
29
The two world properties, fogStyle and fogDensity, are used to create a fog effect.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
30
World-level variables are available to all world-level methods.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
31
Class-level variables are available only in the method in which they were created.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
32
Class-level ___________________ are used to add additional properties to an object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
33
The method, my first method, which is automatically created, is a(n) __________________-level method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
34
Once you create a parameter in a method, an argument will be required anytime the method is called.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
35
There can only be one custom world-level method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
36
The easiest way to keep two objects together so they move as one is to use the ___________________ property.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) ___________________ method is written by the programmer as needed.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
38
Class-level methods should not refer to objects in other classes.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
39
A method that performs a complex task should be broken down into several smaller methods.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
40
There is no easy way to make one object turn around another object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
41
The ___________________ method is used to point the camera at an object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
42
The ___________________ argument is used to have one object circle around another object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
43
The camera will follow an object around if you set its ___________________ property to that object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
44
A captured ___________________ is used to cause an object to return to a physical arrangement that was previously saved.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
45
___________________ objects are used to easily move the camera to different locations.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
46
To take an object as an argument you have to create a(n)___________________ parameter.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 46 flashcards in this deck.