Chapter: Algorithms
1.

The word                         comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi.

A. flowchart
B. flow
C. algorithm
D. syntax
Answer» C. algorithm
Explanation: the word algorithm comes from the name of a persian mathematician abu ja’far mohammed ibn-i musa al khowarizmi.
2.

In computer science, algorithm refers to a special method usable by a computer for the solution to a problem.

A. true
B. false
Answer» A. true
Explanation: the statement is true. this word algorithm refers to a special method usable by a computer for the solution to a problem. the statement of the problem specifies in general terms the desired input/output relationship.
3.

This characteristic often draws the line between what is feasible and what is impossible.

A. performance
B. system evaluation
C. modularity
D. reliability
Answer» A. performance
Explanation: algorithms help us to understand scalability. performance often draws the line between what is feasible and what is impossible.
4.

The time that depends on the input: an already sorted sequence that is easier to sort.

A. process
B. evaluation
C. running
D. input
Answer» C. running
Explanation: the running time depends on the input: an already sorted sequence is easier to sort. the running time is given by the size of the input, since short sequences are easier to sort than the longer ones. generally, we seek upper bounds on the running time, because it is reliable.
5.

When an algorithm is written in the form of a programming language, it becomes a

A. flowchart
B. program
C. pseudo code
D. syntax
Answer» B. program
Explanation: an algorithm becomes a program when it is written in the form of a programming language. thus, any program is an algorithm.
6.

Any algorithm is a program.

A. true
B. false
Answer» B. false
Explanation: the statement is false. an algorithm is represented in the form of a programming language is called a program. any program is an algorithm but the reverse is not true.
7.

A system wherein items are added from one and removed from the other end.

A. stack
B. queue
C. linked list
D. array
Answer» B. queue
Explanation: in a queue, the items are inserted from the rear end and deleted from the front end.
8.

Another name for 1-D arrays.

A. linear arrays
B. lists
C. horizontal array
D. vertical array
Answer» A. linear arrays
Explanation: linear arrays are the 1- dimensional arrays wherein only one row is present and the items are inserted.
9.

A data structure that follows the FIFO principle.

A. queue
B. ll
C. stack
D. union
Answer» A. queue
Explanation: the answer is queue. a queue follows the fifo principle. fifo stands for first in first out.
Tags
Question and answers in Algorithms, Algorithms multiple choice questions and answers, Algorithms Important MCQs, Solved MCQs for Algorithms, Algorithms MCQs with answers PDF download