Deck 3: Variables, Functions, Math, and Strings

Full screen (f)
exit full mode
Question
Which category of primitive functions returns values indicating an object's distance or nearness to another object?

A) Point of view
B) Proximity
C) Size
D) Spatial relation
E) None of these
Use Space or
up arrow
down arrow
to flip the card.
Question
Which of the following categories of variables are available in Alice?

A) Local variables
B) Parameter variables
C) Class-Level variables
D) World-Level variables
E) All of these
Question
Which of the following functions could be used to input the user's first name?

A) ask user for a number
B) ask user for a boolean
C) ask user for yes or no
D) ask user for a string
E) None of these
Question
Which of the following belongs to the world?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Question
A parameter variable belongs to a specific object.
Question
What is the name of the operation that joins two strings together?

A) String addition
B) String add
C) String concatenation
D) String together
E) None of these
Question
Which of the following belongs to a specific method?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Question
A class-level variable belongs to the world.
Question
Which of the following variable types should be used to store someone's age?

A) Number
B) Boolean
C) Object
D) String
E) None of these
Question
Which of the following holds an argument that is passed to a method?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Question
What is the name of the special Alice object that allows you to add text to a world?

A) 3D text
B) Super text
C) Big text
D) String text
E) None of these
Question
When a local variable is declared, which of the following can be set?

A) Variable name
B) Variable type
C) Initial value
D) All of the above
E) None of these
Question
Before you can use a local variable in a method, you must create the variable.
Question
Which of the following functions will input a Boolean value from the user?

A) ask user for a number
B) ask user for a Boolean
C) ask user for yes or no
D) ask user for a string
E) None of these
Question
Which category of primitive functions has a function that returns an object's height?

A) Point of view
B) Proximity
C) Size
D) Spatial relation
E) None of these
Question
Which of the following variable types can hold a value of either true or false?

A) Number
B) Boolean
C) Object
D) String
E) None of these
Question
A parameter is a storage location that is represented by a name.
Question
Which category of primitive functions has a function that could test whether an object is above another object?

A) Point of view
B) Proximity
C) Size
D) Spatial relation
E) None of these
Question
75
B) 2
C) 3
D) 4
E) None of these
Question
Which of the following belongs to a specific object?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Question
Local variables are created in the local area of the Method Editor.
Question
A(n) ___________________ variable holds an argument that is passed to a method.
Question
A(n) ___________________ is a named location in memory.
Question
A Boolean variable can only store the two values true or false.
Question
A(n) ___________________ variable belongs to a specific object.
Question
A string is a sequence of characters and is used to store text.
Question
String addition is used to join two strings together.
Question
The ask user functions are used to get input from the user.
Question
The ___________________ function is used to input a numeric value from the user.
Question
A(n) ___________________ variable belongs to the world.
Question
Local variables are created in the ___________________ area of the Method Editor.
Question
The ___________________ function is used to input a Boolean value from the user.
Question
A(n) ___________________ variable can hold one of two values: true or false.
Question
A local variable belongs to a specific method.
Question
A function is not considered to be a method.
Question
To assign a value to a variable during run-time, drag the variable tile and drop it into the method editor where you want the set statement to be executed.
Question
A(n) ___________________ variable belongs to a specific method.
Question
An object variable can hold any type of data.
Question
A(n) ___________________ is a special type of method that returns a value.
Question
Each object in an Alice world has a set of primitive functions.
Question
Given that the variable hours has a value of 10, the following expression would evaluate to what value?
hours / 5 + 2
Question
A(n) ___________________ is a sequence of characters and is used to store text.
Question
String ___________________ is used to join two strings together.
Question
Variables you create in Alice must have a(n) ___________________.
Question
Alice has a special object called ___________________ text that allows you to add text to a world.
Question
The ___________________ functions return values indicating an object's proximity to another object.
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 3: Variables, Functions, Math, and Strings
1
Which category of primitive functions returns values indicating an object's distance or nearness to another object?

A) Point of view
B) Proximity
C) Size
D) Spatial relation
E) None of these
B
2
Which of the following categories of variables are available in Alice?

A) Local variables
B) Parameter variables
C) Class-Level variables
D) World-Level variables
E) All of these
E
3
Which of the following functions could be used to input the user's first name?

A) ask user for a number
B) ask user for a boolean
C) ask user for yes or no
D) ask user for a string
E) None of these
D
4
Which of the following belongs to the world?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
5
A parameter variable belongs to a specific object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
6
What is the name of the operation that joins two strings together?

A) String addition
B) String add
C) String concatenation
D) String together
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 belongs to a specific method?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
8
A class-level variable belongs to the world.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following variable types should be used to store someone's age?

A) Number
B) Boolean
C) Object
D) String
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 holds an argument that is passed to a method?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
11
What is the name of the special Alice object that allows you to add text to a world?

A) 3D text
B) Super text
C) Big text
D) String text
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
12
When a local variable is declared, which of the following can be set?

A) Variable name
B) Variable type
C) Initial value
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
13
Before you can use a local variable in a method, you must create the variable.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following functions will input a Boolean value from the user?

A) ask user for a number
B) ask user for a Boolean
C) ask user for yes or no
D) ask user for a string
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
15
Which category of primitive functions has a function that returns an object's height?

A) Point of view
B) Proximity
C) Size
D) Spatial relation
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 variable types can hold a value of either true or false?

A) Number
B) Boolean
C) Object
D) String
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
17
A parameter is a storage location that is represented by a name.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
18
Which category of primitive functions has a function that could test whether an object is above another object?

A) Point of view
B) Proximity
C) Size
D) Spatial relation
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
19
75
B) 2
C) 3
D) 4
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 belongs to a specific object?

A) Local variable
B) Parameter variable
C) Class-Level variable
D) World-Level variable
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
21
Local variables are created in the local area of the Method Editor.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
22
A(n) ___________________ variable holds an argument that is passed to a method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
23
A(n) ___________________ is a named location in memory.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
24
A Boolean variable can only store the two values true or false.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
25
A(n) ___________________ variable belongs to a specific object.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
26
A string is a sequence of characters and is used to store text.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
27
String addition is used to join two strings together.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
28
The ask user functions are used to get input from the user.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
29
The ___________________ function is used to input a numeric value from the user.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
30
A(n) ___________________ variable belongs to the world.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
31
Local variables are created in the ___________________ area of the Method Editor.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
32
The ___________________ function is used to input a Boolean value from the user.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
33
A(n) ___________________ variable can hold one of two values: true or false.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
34
A local variable belongs to a specific method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
35
A function is not considered to be a method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
36
To assign a value to a variable during run-time, drag the variable tile and drop it into the method editor where you want the set statement to be executed.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) ___________________ variable belongs to a specific method.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
38
An object variable can hold any type of data.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
39
A(n) ___________________ is a special type of method that returns a value.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
40
Each object in an Alice world has a set of primitive functions.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
41
Given that the variable hours has a value of 10, the following expression would evaluate to what value?
hours / 5 + 2
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
42
A(n) ___________________ is a sequence of characters and is used to store text.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
43
String ___________________ is used to join two strings together.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
44
Variables you create in Alice must have a(n) ___________________.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
45
Alice has a special object called ___________________ text that allows you to add text to a world.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
46
The ___________________ functions return values indicating an object's proximity to another object.
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.