Algorithmic
Problem Solving
Specification
and Abstraction
Part I
Choose the Best Answer
1. Which of the following
activities is algorithmic in nature?
(a) Assemble a bicycle.
(b)
Describe a bicycle.
(c)
Label the parts of a bicycle.
(d)
Explain how a bicycle works.
2. Which of the following
activities is not algorithmic in nature?
(a)
Multiply two numbers.
(b)
Draw a kolam.
(c)
Walk in the park.
(d) Braid the hair.
3. Omitting details inessential to
the task and representing only the essential features of the task is known as
(a)
specification
(b) abstraction
(c)
composition
(d)
decomposition
4. Stating the input property and
the as :-output relation a problem is known
(a) specification
(b)
statement
(c)
algorithm
(d)
definition
5. Ensuring the input-output
relation is
(a)
the responsibility of the algorithm and the right of the user.
(b)
the responsibility of the user and the right of the algorithm.
(c)
the responsibility of the algorithm but not the right of the user.
(d) the responsibility of both the
user and the algorithm.
6. If i = 5 before the assignment i
:= i-1 after the assignment, the value of i is
(a)
5
(b) 4
(c)
3
(d)
2
7. If 0 < i before the
assignment i := i-1 after the assignment, we can conclude that
(a)
0 < i
(b) 0 ≤ i
(c)
i = 0
(d)
0 ≥i
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.