Computer Fundamentals Questions and Answers – Algorithms

This set of Computer Fundamentals Multiple Choice Questions & Answers (MCQs) focuses on “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
View Answer

Answer: c
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
View Answer

Answer: a
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
View Answer

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

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
View Answer

Answer: c
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. Which of the following is incorrect?
Algorithms can be represented:
a) as pseudo codes
b) as syntax
c) as programs
d) as flowcharts
View Answer

Answer: b
Explanation: Representation of algorithms:
-As programs
-As flowcharts
-As pseudo codes.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. When an algorithm is written in the form of a programming language, it becomes a _________
a) Flowchart
b) Program
c) Pseudo code
d) Syntax
View Answer

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

7. Any algorithm is a program.
a) True
b) False
View Answer

Answer: b
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.
advertisement

8. A system wherein items are added from one and removed from the other end.
a) Stack
b) Queue
c) Linked List
d) Array
View Answer

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

9. Another name for 1-D arrays.
a) Linear arrays
b) Lists
c) Horizontal array
d) Vertical array
View Answer

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

10. A data structure that follows the FIFO principle.
a) Queue
b) LL
c) Stack
d) Union
View Answer

Answer: a
Explanation: The answer is Queue. A Queue follows the FIFO principle. FIFO stands for First In First Out.

Sanfoundry Global Education & Learning Series – Computer Fundamentals.

To practice all areas of Computer Fundamentals, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.