MCQ

Algorithms MCQ Questions and Answers – Fundamentals – Part 1

Computer architecture MCQ questions and answers for the preparation of tests, exams, and certifications. So you will find questions about loops and conditionals, data structure, complexity, flowchart, pseudocode, and much more. This systematic learning method will easily prepare anyone to pass their exam.
 

1. What is an algorithm?

A A flowchart

B A flowchart or pseudocode

C A decision

D Step by step instructions used to solve a problem

D
Every problem solution starts with a plan. This plan is called an algorithm.
An algorithm is a plan to solve a problem, and there are many ways to write it.

 

 
 

2. What are the three algorithm constructions?

A Input, Output, Process

B Sequence, Selection, Repeat

C Input/Output, Decision, Repeat

D Loop, Input/Output, Process

B
An algorithm is a sequence of simple steps that can be followed to solve a problem. These steps must be organized in a logical and clear manner. We design algorithms using three basic control methods:

  • Sequence,
  • Selection,
  • Repetition.

 

 

3. What is the difference between a flowchart and a pseudocode?

A A flowchart is a diagram while the pseudocode is written in a programming language (e.g. Pascal or Java)

B A flowchart is textual but the pseudocode is a diagram

C A flowchart is a schematic description of an algorithm, while pseudocode is a textual description of an algorithm.

D A flowchart and a pseudocode are the same

C

 

 

4. In a flowchart, an input or output instruction is represented by _____?

A A diamond

B Rectangle

C Parallelogram

D A circle
 

 
C
In a flowchart, an input or output instruction is represented by a parallelogram.

 

 

5. In a flowchart, a calculation (process) is represented by _____?

A A diamond

B Rectangle

C Parallelogram

D A circle

B
In a flowchart, a calculation is represented by a rectangle.

 

 

6. To repeat a task, we use a ____?

A Input

B Condition

C Loop

D Output

C
A loop is a sequence of instructions repeated continuously until a given condition is reached.

 

 

7. If ....... then ....... else ....... End If check ____?

A Only one condition

B Two conditions

C Three conditions

D Multiple conditions

B

 

 

8. REPEAT <processing> UNTIL <condition> is a ______?

A Positive loop

B Negative loop
 

 
A
We say that this loop uses a “positive” logic because it continues “as long as” a condition is true.

The following example uses the REPEAT UNTIL structure to read and validate a positive value:

REPEAT 
    WRITE "Enter a positive number?"
    READ number
UNTIL number > 0

 

 
9. A flowchart should represent the situation in which, for each grade, a student receives a “Good” or ” Average” the system will consider the grade and if it is equal to or greater than 12, assigns a “Good” grade, otherwise it assigns a “Passable” grade. Which of the following options will be used?
 
A Input

B Condition

C Loop

D Output

B

 

 

10. What is a Flowchart?

A A way to design a text-based algorithm

B A specific programming language

C A diagram that represents a set of instructions

D A scheme of instructions

C
A flowchart is a type of diagram that represents an algorithm, workflow or process. A flowchart can also be defined as a schematic representation of an algorithm (step-by-step approach to solving a task).

 

 
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *