Deck 8: Lists and Arrays in Alice
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 8: Lists and Arrays in Alice
1
Computer programmers decide which data structures to use based on the nature of the data.
True
2
Data exits a queue in the same order in which it entered the queue.
True
3
A graph is a common data structure.
True
4
A binary tree is good for storing information that needs to be searched quickly, such as a dictionary or phone directory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
A queue would be a good data structure to use for keeping track of documents waiting to be printed on a networked printer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
A queue is a very good data structure to use for a set of objects that needs to be searched quickly.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
You should always start searching a binary tree by looking at the root node.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The efficiency of the binary tree comes from the fact that each time you look at a node, you either find the item you want, or move down one level in the tree. This cuts the remaining data to be searched in half.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
To find an item in a queue, you need to start at one end of the queue and go through each item, one at a time, until you find the item for which you are searching.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
On average, you will need to look at 500 items to find a single object in a queue with 1,000 items.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
In a binary tree with a thousand items, the longest it would take to find any item is 1/10th of a second.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Alice also has two instructions to manipulate lists - For all in order and For all together.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
For all together will perform an operation on each item in a list one at a time, beginning with the first item in the list and going through the list in order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
For all in order will perform an operation on all of the items in a list at the same time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
Do in order and Do together operate on a set of objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
For all in order and For all together operate on a set of instructions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
An array is a set of objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A list is a set of variables that hold objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
In mathematics, especially matrix algebra, index values for elements in an array are usually subscripted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
An array of the names of four cities might be referred to as city<sub>0</sub>, city<sub>1</sub>, city<sub>2</sub>, and city<sub>3</sub>, or as city[0], city[1], city[2], and city[3].
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Every array is linear.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
A list may be multidimensional.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The elements array[index] and array[index +1] are adjacent elements in an array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
In a bubble sort, the computer goes through the array, comparing each value to the one that follows it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
A bubble sort is the most efficient way to sort an array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
A(n) ____ is a scheme for organizing data in the memory of a computer.
A) index value
B) data structure
C) object
D) queue
A) index value
B) data structure
C) object
D) queue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Data enters a(n) ____ at one end and leaves it at the other.
A) index
B) list
C) array
D) queue
A) index
B) list
C) array
D) queue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
A set of names, addresses, and phone numbers stored as a table is an example of a(n) ____.
A) index
B) data structure
C) object
D) queue
A) index
B) data structure
C) object
D) queue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
A(n) ____ is a set of data items with a beginning and end.
A) index
B) data structure
C) object
D) queue
A) index
B) data structure
C) object
D) queue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
A ____ is a data structure that looks like an upside-down tree.
A) graph
B) heap
C) binary tree
D) B-tree
A) graph
B) heap
C) binary tree
D) B-tree
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Each spot on a binary tree is called a(n) ____.
A) node
B) stack
C) array
D) index
A) node
B) stack
C) array
D) index
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
A(n) ____ holds an item of data, along with a left pointer and a right pointer.
A) node
B) stack
C) list
D) array
A) node
B) stack
C) list
D) array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
The nodes at the bottom of each branch of a binary tree are called the ____.
A) links
B) leaf nodes
C) root nodes
D) edges
A) links
B) leaf nodes
C) root nodes
D) edges
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The node at the top of the binary tree is called the ____.
A) leaf node
B) edge
C) link
D) root node
A) leaf node
B) edge
C) link
D) root node
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
A(n) ____ is an ordered set of data.
A) stack
B) graph
C) list
D) array
A) stack
B) graph
C) list
D) array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
A(n) ____ is often used to store objects that are to be processed sequentially.
A) stack
B) graph
C) list
D) array
A) stack
B) graph
C) list
D) array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
____ are often used to set up queues.
A) Stacks
B) Queues
C) Lists
D) Arrays
A) Stacks
B) Queues
C) Lists
D) Arrays
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
To ____ means to go through each item in a list one at a time, beginning with the first item in the list and going through the list in order.
A) iterate a list
B) traverse a list
C) sort a list
D) index a list
A) iterate a list
B) traverse a list
C) sort a list
D) index a list
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which of the following commands inserts an item at the beginning of the world.bunnies list?
A) insert <item> at beginning of world.bunnies
B) insert <item> in world.bunnies
C) insert <item> at beginning <index> world.bunnies
D) insert <item> at position <index> world.bunnies
A) insert <item> at beginning of world.bunnies
B) insert <item> in world.bunnies
C) insert <item> at beginning <index> world.bunnies
D) insert <item> at position <index> world.bunnies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Which of the following commands inserts an item at the end of the world.bunnies list?
A) insert item end of world.bunnies
B) insert <item> at end of world.bunnies
C) insert <item> at end of position <index> world.bunnies
D) insert <item> at position <index> world.bunnies
A) insert item end of world.bunnies
B) insert <item> at end of world.bunnies
C) insert <item> at end of position <index> world.bunnies
D) insert <item> at position <index> world.bunnies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Which of the following commands removes an item from the beginning of the world.bunnies list?
A) remove item from beginning position <index> of world.bunnies
B) remove item from <index> world.bunnies
C) remove item from beginning of world.bunnies
D) remove item from world.bunnies
A) remove item from beginning position <index> of world.bunnies
B) remove item from <index> world.bunnies
C) remove item from beginning of world.bunnies
D) remove item from world.bunnies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
Which of the following commands removes an item from a specific position in the world.bunnies list?
A) remove <item> from position <index> world.bunnies
B) remove <item> at <index> of world.bunnies
C) remove <item> at position <index> world.bunnies
D) remove item from position <index> of world.bunnies
A) remove <item> from position <index> world.bunnies
B) remove <item> at <index> of world.bunnies
C) remove <item> at position <index> world.bunnies
D) remove item from position <index> of world.bunnies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
Which of the following commands inserts an item in a specific position in the world.bunnies list?
A) insert at position <index> of world.bunnies
B) insert <item> at <index> of world.bunnies
C) insert <item> at position world.bunnies
D) insert <item> at position <index> of world.bunnies
A) insert at position <index> of world.bunnies
B) insert <item> at <index> of world.bunnies
C) insert <item> at position world.bunnies
D) insert <item> at position <index> of world.bunnies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the following commands removes all items from the world.bunnies list?
A) remove item <index> from world.bunnies
B) delete item <index> from world.bunnies
C) remove all items from world.bunnies
D) delete all items from world.bunnies
A) remove item <index> from world.bunnies
B) delete item <index> from world.bunnies
C) remove all items from world.bunnies
D) delete all items from world.bunnies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Which of the following commands removes an item from the end of the world.bunnies list?
A) remove item <index> from world.bunnies
B) delete item <index> from world.bunnies
C) remove item from end of world.bunnies
D) delete item from end of world.bunnies
A) remove item <index> from world.bunnies
B) delete item <index> from world.bunnies
C) remove item from end of world.bunnies
D) delete item from end of world.bunnies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
A(n) ____ is a set of indexed variables, each containing objects of the same data type.
A) queue
B) array
C) list
D) stack
A) queue
B) array
C) list
D) stack
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
A ____ is simply a way of measuring something, such as the length, width, and height of three-dimensional objects.
A) dimension
B) point of view
C) thread
D) parameter
A) dimension
B) point of view
C) thread
D) parameter
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
A simple one-dimensional array is sometimes called a ____.
A) list
B) matrix
C) queue
D) vector
A) list
B) matrix
C) queue
D) vector
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
A two-dimensional array could be thought of as having rows and columns, with one subscript for the row and one for the column. Such a two dimensional array is sometimes called a table or a two-dimensional ____.
A) vector
B) list
C) matrix
D) queue
A) vector
B) list
C) matrix
D) queue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
A(n) ____ is used to show us an array in an Alice world, rather than just creating it in the memory of the computer.
A) Array Visualization Object
B) Visual Array Object
C) World Array
D) Array Instance
A) Array Visualization Object
B) Visual Array Object
C) World Array
D) Array Instance
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck