In this post, we cover all important Questions from the topic "Algorithms and Flowcharts to Solve Python Problems".

These MCQs will definitely help to pass IT and Computer students in any exam and interview that have Algorithms and Flowcharts to Solve Python Problems topic.

#### Algorithms and Flowcharts to Solve Python Problems chapter covers the following topics:

1. Flow Chart Symbols.

2. Basic algorithms/flowcharts for sequential processing, decision based                      processing and iterative processing.

3. Some examples like: Exchanging values of two variables, summation of a set of        numbers, Decimal

4. Base to Binary Base conversion, Reversing digits of an integer, GCD (Greatest

Common Division) of two numbers, Test whether a number is prime, factorial

computation, Fibonacci sequence, Evaluate ‘sin x’ as sum of a series, Reverse

order of elements of an array, Find largest number in an array, Print elements of

upper triangular matrix, etc.

#### After completion of Algorithms and Flowcharts to Solve Python Problems unit, Students will be able to:

• Understand the concepts and purposes of algorithm and flowchart.
• Use algorithm and flowchart to solve problem independent of language.
• Gain knowledge of different constructs of algorithm and flowchart.

# Algorithms and Flowcharts to Solve Python Problems MCQs

Here are the 40 most important and frequently asked MCQs from the  "Algorithms and Flowcharts to Solve Python Problems" topic.

1. What is the standard terminal symbol for a flowchart?

a.Circle

b.Parallelogram

c.Diamond

d.Square

Ans.a Circle

2. Which of the following is a pictorial representation of an algorithm?

a.Pseudo code

b.Program

c.Flowchart

d.Algorithm

Ans.c. Flowchart

3. Pseodocode is used for

a.Denoting the program Flow

b.Program code

c.For coding the program

d.To write program steps

Ans.d.

4. __________ uses standardized symbols to describe the steps of a procedure.

a. Pseudocode

b. Source code

c. Flowchart

d. Algorithm

Ans.c

5. Selection logic also called as

a.Decision Logic

b.Iteration Logic

c.Sequence Logic

d.Looping Logic

Ans.a Decision Logic

6. In structure charts modules are described as

a.Circle

b.Triangles

c.Rectangle

d.Ellipse

Ans.b. Triangles

7. Execution of two or more programs by a single CPU is known as

a.Multiprogramming

b.Multiprocessing

c.Timesharing

d.Timespacing

Ans.b. Multiprocessing

8. Method which uses a list of well defined instructions to complete a task starting from a given initial state from a given initial state to end state is calls as

a.Program

b.Flowchart

c.Algorithm

d.A & B

Ans.c. Algorithm

9. The sequence logic will not be used while

a.Accepting input from user

b.Giving output to the user

c.Comparing two sets of data

Ans. a.Accepting input from user

10. What shape represents the beginning and end of a flowchart?

a. Oval

b. Rectangle

c. Diamond

d. Square

Ans.a

11. Pseudo code emphasizes on

a.Development

b.Coding

c.Design

d.Debugging

Ans.c. Design

12. What symbol is used to represent output in a flowchart?

a.Square

b.Circle

c.Parallelogram

d.Triangle

Ans.c. Parallelogram

13. The following pseudo code is an example of _______ structure: Get number While number is positive Add to sum

a.Sequence

b.Decision

c.Loop

d.Nested

Ans.c. Loop

14. Which of the following logic is used to produce loops in program logic when one or more instruction may be executed several times depending on some conditions?

a.Iteration Logic

b.Selection Logic

c.Sequence Logic

d.Decision Logic

Ans.a Iteration Logic

15. The chart that contains only function flow and no code is called as

a.flowchart

b.Structure chart

c.Both A and B

d.None

Ans.b. Structure chart

16. Which of the following is used to avoid infinite loops?

a.Sequentiol

b.For

c.While

d.Do while

Ans.a Sequentiol

17. Which of the following contains parenthesis after the „while‟ loop?

a.Condition

b.statement

c.count

d.value

Ans.a Condition

18. The condition being tested within the loop may be relational or relational or logical operations

a.while

b.switch

c.break

d.continue

Ans.a while

19. Which of the following loop uses three things initialization, condition to terminate loop and increasing the value of loop counter?

a.for

b.while

c.goto

d.switch

Ans. a for

20. Kite box in the flow chart is used for

a.Connecter

b.Decision

c.Statement

d.All of the above

Ans.b. Decision

21. Which of the following is not a characteristic of good algorithm?

a.Precise

b.Ambiguous

c.Finite number of steps

d.Logical flow of control

Ans.c. Finite number of steps

22. After a programmer plans the logic of a program ,she /he will next____

a.Understand the problem

b.Translate the program

c.Test the program

d.Code the program

Ans.d. Code the program

23. In a case structure of the loop, the loop body continues to execute as long as the answer to the controlling question is yes, or true.

a.Else

b.Then

c.Default

d.Loop

Ans.a Else

24. The main module of a program contains the following sequences of statements Call Module A —————— Call Module B —————— Call Module C —————— Which of the following statements is executed after Call Module B?

a.Call Module A

b.Call Module C

c.The first Statement in Module B

d.None

Ans.c. The first Statement in Module B

25. Which of the following statements is executed after all statements in ModuleB have been carried out in above Q ?

a.Call Module A

b.Call Module C

c.The first Statement in Module C

d.None

Ans.b. Call Module C

26. Which of the following statement allows us to make a decision from the number of choices?

a.break

b.Switch

c.for

d.go to

Ans.b. Switch

27. Which of the following statement allows the programmer to make the control to the beginning of the loop ,without executing the statement inside the loop?

a.while

b.continue

c.go to

d.if

Ans.b. Continue

28. Diagrammatic representation of an algorithm is

a.Flowchart

b.Data flow Diagram

c.Algorithm design

d.Pseudo code

Ans. a Flowchart

29. Which of the following can be replaced by if

a.switch

b.while

c.continue

d.for

Ans.a switch

30. Which of the following statement is useful while writing menu-driven programs

a.while

b.break

c.switch

d.if

Ans. a while

31. The mechanism used to convey information to the function is the

a.Argument

b.commands

c.loops

d.statements

Ans. an Argument

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

a. Only one condition

b. Two conditions

c. Three conditions

d. Multiple conditions

Ans.b

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

a. Positive loop

b. Negative loop

Ans.a

34. In which of the following pseudo code instructions are written in the order or sequence in which they are to be performed?

a.Selection Logic

b.Sequence Logic

c.Iteration Logic

d.Looping Logic

Ans.b. Sequence Logic

35. We can show the sequence of steps of an algorithm in a structural diagram called flowchart?

a. True

b. False

Ans.a

36. The following pseudo code is an example of ______structure:Get number Get another number If first number is greater than second then Print first number Else print second number

a.Sequence

b.Decision

c.Loop

d.Nested

Ans.b. Decision

37. The following pseudo code is an example of ________structure: Get number Get another number Multiply numbers Print result

a.Sequence

b.Decision

c.Loop

d.Nested

Ans.a Sequence

38. The input/output, arithmetic operation and variable assignment instructions are of which structure type?

a. Loop

b. Sequential

c. Array

d. Selection

Ans.b

39. Max ← 5 and var ← 2 are examples of _________?

a. Assigning variables

b. Arithmetic operations

c. Output

d. Input

Ans.a

40. Which of the following words would not be used in a selection structure?

a. Else

b. Then

c. If

d. Repeat

Ans.d