Deck 4: Efficiency, Complexity Theory, and Algorithms

ملء الشاشة (f)
exit full mode
سؤال
The------- can be a useful tool when a program must be modified months or years after the original writing.

A)Flowchart
B)Hierarchy chart
C)Pseudo code
D)Variable declaration
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Declaring a variable involves selecting a name and a __

A)Size
B)Length
C)Style
D)Type
سؤال
A group of variables is often called a __ .

A)Linked group
B)Data structure
C)Data object
D)Module
سؤال
When a variable is __ it is both declared and initialized.

A)Set
B)Instantiated
C)Defined
D)Documented
سؤال
The time factor when determining the efficiency of algorithm is measured by

A)counting microseconds
B)Counting the number of key operations
C)Counting the number of statements
D)Counting the kilobytes of algorithm
سؤال
The space factor when determining the efficiency of algorithm is measured by

A)Counting The Maximum Memory Needed By The Algorithm
B)Counting The Minimum Memory Needed By The Algorithm
C)Counting The Average Memory Needed By The (A)lgorithm
D)Counting the maximum disk space needed by the algorithm
سؤال
Which of the following case does not exist in complexity theory

A)Best case
B)Worst case
C)Average case
D)Null case
سؤال
The Worst case occur in linear search algorithm when

A)Item is somewhere in the middle of the array
B)Item is not in the array at all
C)Item is the last element in the array
D)Item is the last element in the array or is not there at all
سؤال
The Average case occur in linear search algorithm

A)When Item is somewhere in the middle of the array
B)When Item is not in the array at all
C)When Item is the last element in the array
D)When Item is the last element in the array or is not there at all
سؤال
Finiteness property of an Algorithm is

A)The number of steps in the algorithm should be finite.
B)The algorithm should terminate after a finite no. of times.
C)For all possible combinations of input data, the algorithm terminates after a finite no. of steps.
D)None of above
سؤال
Instructions in algorithms should be_____

A)Precise
B)Unambiguous
C)Precise & Unambiguous
D)None of above
سؤال
As compared to a flowchart, it is easier to modify the_________of a program logic when program modifications are necessary.

A)Macro flowchart
B)Micro flowchart
C)Terminal
D)Pseudo code.
سؤال
Algorithm halts in __________

A)Finite time
B)Infinite time
C)Logarithmic time
D)Exponential time
سؤال
The __ flow chart symbol(s) represents one way flow of control.

A)Processing
B)Decision
C)Terminal
D)All above
سؤال
What is an infinite loop?

A)It is an endless loop
B)It means multiple loops
C)It is a nested loop
D)It is an unclosed loop
سؤال
The normal flow of flowchart is from

A)Left to Right
B)Right to Left
C)A & D
D)Top to Bottom
سؤال
Which tool shows textual design solution?

A)Flowchart
B)Structure chart
C)Pseudocode
D)Algorithm
سؤال
Method which uses a list of well-defined instructions to complete a task, starting from a given initial state to end state, is called

A)Program
B)Algorithm
C)High level Language
D)Flowchart
سؤال
Diamond shape in flow chart denotes

A)Start
B)Decision
C)End
D)Input - Output task
سؤال
Which of the following shape is used for representing a Conditional Statement in a Flow chart?

A)Parallelogram
B)Rhombus
C)Trapezoid
D)Rectangle
سؤال
Any program can be written using structures.

A)Sequence logic, Merge logic, Insertion logic
B)Sequence logic, Selection logic, Iteration logic
C)Sequence logic, Branch logic, Iteration logic
D)None of the above
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/21
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 4: Efficiency, Complexity Theory, and Algorithms
1
The------- can be a useful tool when a program must be modified months or years after the original writing.

A)Flowchart
B)Hierarchy chart
C)Pseudo code
D)Variable declaration
Pseudo code
2
Declaring a variable involves selecting a name and a __

A)Size
B)Length
C)Style
D)Type
Type
3
A group of variables is often called a __ .

A)Linked group
B)Data structure
C)Data object
D)Module
Data structure
4
When a variable is __ it is both declared and initialized.

A)Set
B)Instantiated
C)Defined
D)Documented
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
5
The time factor when determining the efficiency of algorithm is measured by

A)counting microseconds
B)Counting the number of key operations
C)Counting the number of statements
D)Counting the kilobytes of algorithm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
6
The space factor when determining the efficiency of algorithm is measured by

A)Counting The Maximum Memory Needed By The Algorithm
B)Counting The Minimum Memory Needed By The Algorithm
C)Counting The Average Memory Needed By The (A)lgorithm
D)Counting the maximum disk space needed by the algorithm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of the following case does not exist in complexity theory

A)Best case
B)Worst case
C)Average case
D)Null case
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
8
The Worst case occur in linear search algorithm when

A)Item is somewhere in the middle of the array
B)Item is not in the array at all
C)Item is the last element in the array
D)Item is the last element in the array or is not there at all
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
9
The Average case occur in linear search algorithm

A)When Item is somewhere in the middle of the array
B)When Item is not in the array at all
C)When Item is the last element in the array
D)When Item is the last element in the array or is not there at all
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
10
Finiteness property of an Algorithm is

A)The number of steps in the algorithm should be finite.
B)The algorithm should terminate after a finite no. of times.
C)For all possible combinations of input data, the algorithm terminates after a finite no. of steps.
D)None of above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
11
Instructions in algorithms should be_____

A)Precise
B)Unambiguous
C)Precise & Unambiguous
D)None of above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
12
As compared to a flowchart, it is easier to modify the_________of a program logic when program modifications are necessary.

A)Macro flowchart
B)Micro flowchart
C)Terminal
D)Pseudo code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
13
Algorithm halts in __________

A)Finite time
B)Infinite time
C)Logarithmic time
D)Exponential time
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
14
The __ flow chart symbol(s) represents one way flow of control.

A)Processing
B)Decision
C)Terminal
D)All above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
15
What is an infinite loop?

A)It is an endless loop
B)It means multiple loops
C)It is a nested loop
D)It is an unclosed loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
16
The normal flow of flowchart is from

A)Left to Right
B)Right to Left
C)A & D
D)Top to Bottom
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which tool shows textual design solution?

A)Flowchart
B)Structure chart
C)Pseudocode
D)Algorithm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
18
Method which uses a list of well-defined instructions to complete a task, starting from a given initial state to end state, is called

A)Program
B)Algorithm
C)High level Language
D)Flowchart
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
19
Diamond shape in flow chart denotes

A)Start
B)Decision
C)End
D)Input - Output task
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of the following shape is used for representing a Conditional Statement in a Flow chart?

A)Parallelogram
B)Rhombus
C)Trapezoid
D)Rectangle
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
21
Any program can be written using structures.

A)Sequence logic, Merge logic, Insertion logic
B)Sequence logic, Selection logic, Iteration logic
C)Sequence logic, Branch logic, Iteration logic
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 21 في هذه المجموعة.