पेज

गुरुवार, 18 नवंबर 2021

This set of Computer Fundamentals Multiple Choice Questions & Answers (MCQs) focuses on “Algorithms”.

 This set of Computer Fundamentals Multiple Choice Questions & Answers (MCQs) focuses on “Algorithms”.

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

   (1) Flowchart

   (2) Flow

   (3) Algorithm

   (4) Syntax

----

Answer: (3)

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

Q. 2. In computer science, algorithm refers to a special method useable by a computer for solution of a problem.

   (1) True

   (2) False

----

Answer: (1)

Explanation: The statement is true. This word algorithm refers to a special method useable by a computer for solution of a problem. The statement of the problem specifies in general terms the desired input/output relationship.

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

   (1) Performance

   (2) System Evaluation

   (3) Modularity

   (4) Reliability

----

Answer: (1)

Explanation: Algorithms help us to understand scalability. Performance often draws the line between what is feasible and what is impossible.

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

   (1) Process

   (2) Evaluation

   (3) Running

   (4) Input

----

Answer: (3)

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.

Q. 5. Which of the following is incorrect?

Algorithms can be represented:

   (1) as pseudo codes

   (2) as syntax

   (3) as programs

   (4) as flowcharts

----

Answer: (2)

Explanation: Representation of algorithms:

-As programs

-As flowcharts

-As pseudo codes.

Q. 6. When an algorithm is written in the form of a programming language, it becomes a _________

   (1) Flowchart

   (2) Program

   (3) Pseudo code

   (4) Syntax

----

Answer: (2)

Explanation: An algorithm becomes a program when it is written in the form of a programming language. Thus, any program is an algorithm.

Q. 7. Any algorithm is a program.

   (1) True

   (2) False

Answer: (2)

Explanation: The statement is false. An algorithm when represented in the form of a programming language is called a program. Any program is an algorithm but the reverse is not true.

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

   (1) Stack

   (2) Queue

   (3) Linked List

   (4) Array

----

Answer: (2)

Explanation: In a queue, the items are inserted from the rear end and deleted from the front end.

Q. 9. Another name for 1-D arrays.

   (1) Linear arrays

   (2) Lists

   (3) Horizontal array

   (4) Vertical array

----

Answer: (1)

Explanation: Linear arrays are the 1-Dimensional arrays wherein only one row is present and the items are inserted.

Q. 10. A data structure that follows the FIFO principle.

   (1) Queue

   (2) LL

   (3) Stack

   (4) Union

----

Answer: (3)

Explanation: The answer is Stack. A stack follows the FIFO principle. FIFO stands for First In First Out.

कोई टिप्पणी नहीं:

एक टिप्पणी भेजें