Deck 8: Abstract Data Types and Subprograms

ملء الشاشة (f)
exit full mode
سؤال
Which of the following is organized as a hierarchy?

A) List
B) Stack
C) Queue
D) Binary search tree
E) Graph
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which of the following scientists developed the basic computer architecture that continues to be used today?

A) Wernher von Braun
B) George Polya
C) Tony Hoare
D) John von Neumann
E) Richard Feynman
سؤال
An abstract data type (ADT) is a container whose properties (data and operations) are specified independently of any particular implementation.
سؤال
A binary tree cannot contain decimal (base-10) data.
سؤال
A directed graph is a graph whose edges go in only one direction.
سؤال
A(n) _______________ structure is based on the concept of a node and pointers between nodes.
سؤال
Adding an item to a stack is called the _______________ operation.
سؤال
A(n) _______________ is an abstract data type behaves in a manner similar to a waiting line at a bank or supermarket.
سؤال
In a(n) _______________ graph, the edges point from one node to another.
سؤال
In a(n) _______________ tree, the values stored in the nodes are organized to allow an item to be found efficiently.
سؤال
A(n) _______________ is an abstract data type that operates on a "first in, first out" (FIFO) manner.
سؤال
Give an example of the logical view of data if the problem is to print values in reverse order.
سؤال
What is a value parameter?
سؤال
An array is fixed sized, but a list is variable sized. Explain.
سؤال
What is a reference parameter?
سؤال
Give an example of the application view of data if the problem is to represent people in a waiting line.
سؤال
Give an example of the application view of data if the problem is to print values in reverse order.
سؤال
What is the role of a container?
سؤال
What are the properties of a binary tree?
سؤال
Which level provides a view that deals with the underlying data structure used to manage the data?

A) Implementation level
B) Logical level
C) Array level
D) Linked level
E) Application level
سؤال
Which of the following is an abstract data type that operates on a "last in, first out" (LIFO) manner?

A) Stack
B) Queue
C) List
D) Tree
E) Container
سؤال
Which of the following can be either directed or undirected?

A) List
B) Stack
C) Queue
D) Binary search tree
E) Graph
سؤال
Which of the following is made up of a set of nodes called vertices and a set of lines called edges (or arcs)?

A) List
B) Stack
C) Graph
D) Binary search tree
E) Linked structure
سؤال
What is the minimum number of nodes in a binary tree with 3 levels?

A) 1
B) 3
C) 7
D) 8
E) 16
سؤال
Which level provides an abstract view of data and the operations that manipulate them?

A) Implementation level
B) Logical level
C) Array level
D) Linked level
E) Application level
سؤال
The properties of an abstract data type are tightly related to the implementation of that data type.
سؤال
The effect of the following queue operations will be to print "HI": Enque(myQueue,'I'), Enque(myQueue,'H'), Dequeue(myQueue,value), Write value, Dequeue(myQueue, value), Write value.
سؤال
The operations on a stack occur at one end.
سؤال
A stack is managed in a FIFO manner.
سؤال
The root node in a tree has no children.
سؤال
The root node in a tree is the only node that does not have a parent.
سؤال
In a binary tree, each node has at most two child nodes.
سؤال
Parameters are the identifiers listed in parentheses beside a subprogram name.
سؤال
Non-value-returning subprograms must always have a RETURN statement.
سؤال
Which of the following would you use to represent airline flights between cities?

A) List
B) Stack
C) Queue
D) Binary search tree
E) Graph
سؤال
What is the maximum number of nodes in a binary tree with 3 levels?

A) 1
B) 3
C) 7
D) 8
E) 16
سؤال
The operations on a list differ depending on the implementation strategy used.
سؤال
A queue is similar to a waiting line at a bank.
سؤال
A leaf node has no child nodes.
سؤال
The root of a tree has no child nodes.
سؤال
In the parameter passing process, the substitution mechanism can be thought of as a message board.
سؤال
In order to answer the question of whether you can travel from Boston to Los Angeles on your favorite airline, you would use a(n) __________________ searching algorithm defined on a graph.
سؤال
In order to determine how you can fly from Boston to Los Angeles in the fewest number of stops, you would use a(n) _____________________ searching algorithm defined on a graph.
سؤال
A(n) _______________ is a data type whose data and operations are specified independently of any particular implementation.
سؤال
Removing an item from a stack is called the _______________ operation.
سؤال
In a(n) _______________ tree, each node has no more than two children.
سؤال
A graphical map with vertices representing the names of cities and with edges linking the vertices representing two-way roads between the cities is an example of a(n) _______________ graph.
سؤال
A(n)______________ graph is one in which there are values attached to the edges in the graph.
سؤال
In order to determine what the shortest flight in miles from Boston to Los Angeles would be, you would use a(n) ___________ searching algorithm defined on a graph.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/49
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 8: Abstract Data Types and Subprograms
1
Which of the following is organized as a hierarchy?

A) List
B) Stack
C) Queue
D) Binary search tree
E) Graph
D
2
Which of the following scientists developed the basic computer architecture that continues to be used today?

A) Wernher von Braun
B) George Polya
C) Tony Hoare
D) John von Neumann
E) Richard Feynman
D
3
An abstract data type (ADT) is a container whose properties (data and operations) are specified independently of any particular implementation.
True
4
A binary tree cannot contain decimal (base-10) data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
5
A directed graph is a graph whose edges go in only one direction.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
6
A(n) _______________ structure is based on the concept of a node and pointers between nodes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
7
Adding an item to a stack is called the _______________ operation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
8
A(n) _______________ is an abstract data type behaves in a manner similar to a waiting line at a bank or supermarket.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
9
In a(n) _______________ graph, the edges point from one node to another.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
10
In a(n) _______________ tree, the values stored in the nodes are organized to allow an item to be found efficiently.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
11
A(n) _______________ is an abstract data type that operates on a "first in, first out" (FIFO) manner.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
12
Give an example of the logical view of data if the problem is to print values in reverse order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
13
What is a value parameter?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
14
An array is fixed sized, but a list is variable sized. Explain.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
15
What is a reference parameter?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
16
Give an example of the application view of data if the problem is to represent people in a waiting line.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
17
Give an example of the application view of data if the problem is to print values in reverse order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
18
What is the role of a container?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
19
What are the properties of a binary tree?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which level provides a view that deals with the underlying data structure used to manage the data?

A) Implementation level
B) Logical level
C) Array level
D) Linked level
E) Application level
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which of the following is an abstract data type that operates on a "last in, first out" (LIFO) manner?

A) Stack
B) Queue
C) List
D) Tree
E) Container
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which of the following can be either directed or undirected?

A) List
B) Stack
C) Queue
D) Binary search tree
E) Graph
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of the following is made up of a set of nodes called vertices and a set of lines called edges (or arcs)?

A) List
B) Stack
C) Graph
D) Binary search tree
E) Linked structure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
24
What is the minimum number of nodes in a binary tree with 3 levels?

A) 1
B) 3
C) 7
D) 8
E) 16
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which level provides an abstract view of data and the operations that manipulate them?

A) Implementation level
B) Logical level
C) Array level
D) Linked level
E) Application level
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
26
The properties of an abstract data type are tightly related to the implementation of that data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
27
The effect of the following queue operations will be to print "HI": Enque(myQueue,'I'), Enque(myQueue,'H'), Dequeue(myQueue,value), Write value, Dequeue(myQueue, value), Write value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
28
The operations on a stack occur at one end.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
29
A stack is managed in a FIFO manner.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
30
The root node in a tree has no children.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
31
The root node in a tree is the only node that does not have a parent.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
32
In a binary tree, each node has at most two child nodes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
33
Parameters are the identifiers listed in parentheses beside a subprogram name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
34
Non-value-returning subprograms must always have a RETURN statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
35
Which of the following would you use to represent airline flights between cities?

A) List
B) Stack
C) Queue
D) Binary search tree
E) Graph
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
36
What is the maximum number of nodes in a binary tree with 3 levels?

A) 1
B) 3
C) 7
D) 8
E) 16
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
37
The operations on a list differ depending on the implementation strategy used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
38
A queue is similar to a waiting line at a bank.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
39
A leaf node has no child nodes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
40
The root of a tree has no child nodes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
41
In the parameter passing process, the substitution mechanism can be thought of as a message board.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
42
In order to answer the question of whether you can travel from Boston to Los Angeles on your favorite airline, you would use a(n) __________________ searching algorithm defined on a graph.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
43
In order to determine how you can fly from Boston to Los Angeles in the fewest number of stops, you would use a(n) _____________________ searching algorithm defined on a graph.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
44
A(n) _______________ is a data type whose data and operations are specified independently of any particular implementation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
45
Removing an item from a stack is called the _______________ operation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
46
In a(n) _______________ tree, each node has no more than two children.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
47
A graphical map with vertices representing the names of cities and with edges linking the vertices representing two-way roads between the cities is an example of a(n) _______________ graph.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
48
A(n)______________ graph is one in which there are values attached to the edges in the graph.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
49
In order to determine what the shortest flight in miles from Boston to Los Angeles would be, you would use a(n) ___________ searching algorithm defined on a graph.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.