Deck 3: Variables, Functions, Math, and Strings

ملء الشاشة (f)
exit full mode
سؤال
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
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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
سؤال
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
سؤال
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
سؤال
A parameter variable belongs to a specific object.
سؤال
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
سؤال
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
سؤال
A class-level variable belongs to the world.
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
Before you can use a local variable in a method, you must create the variable.
سؤال
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
سؤال
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
سؤال
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
سؤال
A parameter is a storage location that is represented by a name.
سؤال
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
سؤال
75
B) 2
C) 3
D) 4
E) None of these
سؤال
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
سؤال
Local variables are created in the local area of the Method Editor.
سؤال
A(n) ___________________ variable holds an argument that is passed to a method.
سؤال
A(n) ___________________ is a named location in memory.
سؤال
A Boolean variable can only store the two values true or false.
سؤال
A(n) ___________________ variable belongs to a specific object.
سؤال
A string is a sequence of characters and is used to store text.
سؤال
String addition is used to join two strings together.
سؤال
The ask user functions are used to get input from the user.
سؤال
The ___________________ function is used to input a numeric value from the user.
سؤال
A(n) ___________________ variable belongs to the world.
سؤال
Local variables are created in the ___________________ area of the Method Editor.
سؤال
The ___________________ function is used to input a Boolean value from the user.
سؤال
A(n) ___________________ variable can hold one of two values: true or false.
سؤال
A local variable belongs to a specific method.
سؤال
A function is not considered to be a method.
سؤال
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.
سؤال
A(n) ___________________ variable belongs to a specific method.
سؤال
An object variable can hold any type of data.
سؤال
A(n) ___________________ is a special type of method that returns a value.
سؤال
Each object in an Alice world has a set of primitive functions.
سؤال
Given that the variable hours has a value of 10, the following expression would evaluate to what value?
hours / 5 + 2
سؤال
A(n) ___________________ is a sequence of characters and is used to store text.
سؤال
String ___________________ is used to join two strings together.
سؤال
Variables you create in Alice must have a(n) ___________________.
سؤال
Alice has a special object called ___________________ text that allows you to add text to a world.
سؤال
The ___________________ functions return values indicating an object's proximity to another object.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/46
auto play flashcards
العب
simple tutorial
ملء الشاشة (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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
5
A parameter variable belongs to a specific object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
8
A class-level variable belongs to the world.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
13
Before you can use a local variable in a method, you must create the variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
17
A parameter is a storage location that is represented by a name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
19
75
B) 2
C) 3
D) 4
E) None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
21
Local variables are created in the local area of the Method Editor.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ___________________ variable holds an argument that is passed to a method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
23
A(n) ___________________ is a named location in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
24
A Boolean variable can only store the two values true or false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
25
A(n) ___________________ variable belongs to a specific object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
26
A string is a sequence of characters and is used to store text.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
27
String addition is used to join two strings together.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
28
The ask user functions are used to get input from the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
29
The ___________________ function is used to input a numeric value from the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
30
A(n) ___________________ variable belongs to the world.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
31
Local variables are created in the ___________________ area of the Method Editor.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
32
The ___________________ function is used to input a Boolean value from the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
33
A(n) ___________________ variable can hold one of two values: true or false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
34
A local variable belongs to a specific method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
35
A function is not considered to be a method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
37
A(n) ___________________ variable belongs to a specific method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
38
An object variable can hold any type of data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
39
A(n) ___________________ is a special type of method that returns a value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
40
Each object in an Alice world has a set of primitive functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
42
A(n) ___________________ is a sequence of characters and is used to store text.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
43
String ___________________ is used to join two strings together.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
44
Variables you create in Alice must have a(n) ___________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
45
Alice has a special object called ___________________ text that allows you to add text to a world.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
46
The ___________________ functions return values indicating an object's proximity to another object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.