Class 11 Flow of Control MCQ

Teachers and Examiners (CBSESkillEduction) collaborated to create the Class 11 Flow of Control MCQ. All the important Information are taken from the NCERT Textbook Computer Science (083) class 11.

Class 11 Flow of Control MCQ

1. The order of execution of the statements in a program is known as ___________.
a. Flow of control 
b. Flow of structure
c. Flow of chart
d. None of the above

Show Answer ⟶
a. Flow of control

2. Python supports _________ control structures.
a. Selection
b. Repetition
c. Both a) and b) 
d. None of the above

Show Answer ⟶
c. Both a) and b)

Class 11 Flow of Control MCQ

3. Which one is the correct syntax of if statement in python.
a. if condition: 
statement(s)
b. if condition
statement(s)
a. if (condition)
statement(s)
a. if condition then
statement(s)

Show Answer ⟶
a. if condition: statement(s)

4. Number of ________ is dependent on the number of conditions to be checked. If the first condition is false, then the next condition is checked, and so on.
a. Elese if
b. If Else
c. Elif 
d. All of the above

Show Answer ⟶
c. Elif

Class 11 Flow of Control MCQ

5. The statements within a block are put inside __________.
a. Single quotes
b. Double quotes
c. Curly brackets 
d. Square brackets

Show Answer ⟶
c. Curly brackets

6. Leading whitespace (spaces and tabs) at the beginning of a statement is called ________.
a. Indentation 
b. Repetition
c. Code
d. None of the above

Show Answer ⟶
a. Indentation

7. This kind of repetition is also called __________ .
a. Indentation
b. Iteration 
c. Both a) and b)
d. None of the above

Show Answer ⟶
b. Iteration

8. _________ constructs provide the facility to execute a set of statements in a program repetitively, based on a condition.
a. Conditional Statement
b. Looping Statement 
c. Both a) and b)
d. None of the above

Show Answer ⟶
b. Looping Statement

9. The statements in a loop are executed again and again as long as particular logical condition remains true.
a. For loop
b. While loop
c. Do-while loop
d. All of the above 

Show Answer ⟶
d. All of the above

Class 11 Flow of Control MCQ

10. What will happen when condition becomes false in the loop.
a. Loop Execute
b. Loop Terminates 
c. Loop Repeat once again
d. All of the above

Show Answer ⟶
b. Loop Terminates

11. What keyword would you add to an if statement to add a different condition?
a. Else if
b. Ifelse
c. elif 
d. None of the above

Show Answer ⟶
c. elif

12. What is the output of the given below program?
if 4 + 2 == 8:
print(“Condition is True”)
else:
print(“Condition is False”)

a. Condition is True
b. Condition is False
c. No Output
d. Error

Show Answer ⟶
b. Condition is False

13. What is the output of the given below program?
if 4 + 2 == 8:
print(“Condition is True”)
else:
print(“Condition is False”)
print(“Welcome”)

a. Condition is True
b. Condition is False 
Welcome
c. Condition is True
Welcome
d. Error

Show Answer ⟶
Condition is False Welcome

14. Find the output of the given Python program?
a = 50
b = 60
if a < 50:
print(“Condition is True”)
if b <= 60:
print(“Condition is True”)
else:
print(“Condition is False”)

a. Condition is True 
b. Condition is False
c. No Output
d. Error

Show Answer ⟶
a. Condition is True

Class 11 Flow of Control MCQ

15. What is the output of the given below program?
a = 35
if a >= 35:
print(“Condition is True”)
if a <= 35:
print(“Condition is True”)
else:
print(“Condition is False”)

a. Condition is True
b. Condition is True 
Condition is True
c. Condition is True
Condition is False
d. Condition is False
Condition is True

Show Answer ⟶
b. Condition is True t
Condition is True

16. Find the output of the given Python program?
a, b, c = 1, 2, 3
if a > 0:
if b < 2:
print(“Welcome”)
elif c >= 3:
print(“Welcome to my School”)
else:
print(“New School”)

a. Welcome
b. Welcome to my School 
c. New School
d. Run time error

Show Answer ⟶
b. Welcome to my School

17. Find the output of the given Python program?
a, b, c = 1, 2, 3
if a + b + c:
print(“Condition is True”)
else:
print(“Condition is False”)

a. Condition is True 
b. Condition is False
c. No Output
d. Runt time error

Show Answer ⟶
a. Condition is True 

18. What is the output of the given below program?
b = 5
if a < b:
print(“Condition is True”)
else:
print(“Condition is False”)

a. Condition is True
b. Condition is False
c. NameError: name ‘a’ is not defined 
d. No Output

Show Answer ⟶
c. NameError: name ‘a’ is not defined

19. What is the output of the given below program?
a = b = true
if (a and b):
print(“Condition is True”)
else:
print(“Condition is False”)

a. Condition is True
b. Condition is False
c. NameError: name ‘true’ is not defined 
d. No Output

Show Answer ⟶
c. NameError: name ‘true’ is not defined

Class 11 Flow of Control MCQ

20. Which of the following is not a Python loop?
a. for loop
b. do-while loop 
c. while loop
d. None of the above

Show Answer ⟶
b. do-while loop

21. Regarding Python loops, which of the following statements is false?
a. Loops are utilized to repeat specific actions.
b. When several statements need to be performed repeatedly until the specified condition turns false, the while loop is employed. 
c. When several statements need to be run repeatedly until the provided condition is true, a while loop is employed.
d. List elements can be repeated through using a for loop.

Show Answer ⟶
b. When several statements need to be performed repeatedly until the specified condition turns false, the while loop is employed.

22. What does range() function returns ?
a. list of numbers.
b. integer object.
c. range object. 
d. None of the above

Show Answer ⟶
c. range object.

23. Which of the following statements about Python loops is True?
a. The keyword “end” should be used to end loops.
b. The components of strings cannot be repeated over using a loop.
c. You can break control from the current loop by using the keyword “break.” 
d. To continue with the remaining statements inside the loop, use the keyword “continue.”

Show Answer ⟶
c. You can break control from the current loop by using the keyword “break.”

24. What will be the output of given Python code?
a=7
b=0
while(a):
if(a>5):
b=b+a-2
a=a-1
else:
break
print(a)
print(b)

a. 4 7
b. 5 9 
c. 4 10
d. 5 3

Show Answer ⟶
b. 5 9

Class 11 Flow of Control MCQ

25. Which of the following is a valid for loop in Python?
a. for i in range(5,5)
b. for i in range(0,5)
c. for i in range(0,5): 
d. for i in range(5)

Show Answer ⟶
c. for i in range(0,5):

26. What will be the output of given Python code?
str=”Welcome”
sum=0
for n in str:
if(n!=”l”):
sum=sum+1
else:
pass
print(sum)

a. 5
b. 6 
c. 4
d. 9

Show Answer ⟶
b. 6

27. How many times will the loop run?
i=5
while(i>0):
i=i-1
print (i)

a. 5 
b. 4
c. 3
d. 2

Show Answer ⟶
a. 5

28. What will be the output of the following code?
x = 12
for i in x:
print(i)

a. 12
b. 1 2
c. Error 
d. None of the above

Show Answer ⟶
c. Error

29. One loop may be used inside another loop using the Python programming language, which is known as?
a. switch
b. foreach
c. nested 
d. forall

Show Answer ⟶
c. nested

Class 11 Flow of Control MCQ

30. Which of the following loop is work on the particular range in python ?
a. while loop
b. for loop 
c. do while loop
d. None of the above

Show Answer ⟶
b. for loop

31.What does break statement do?
a. Stop 
b. Repeat
c. Skip
d. Print

Show Answer ⟶
a. Stop

32. What does continue statement do?
a. Print
b. Stop
c. Skip 
d. Repeat

Show Answer ⟶
c. Skip

33. The if statement is used for _________.
a. Selection making
b. Decision making
c. Both a) and b)
d. None of the above

Show Answer ⟶
c. Both a) and b)

34. ___________ statement iterates over a range of values or a sequence.
a. For 
b. While
c. Do-While
d. None of the above

Show Answer ⟶
a. For

Class 11 Flow of Control MCQ

35. The statements within the body of the ________ must ensure that the condition eventually becomes false; otherwise, the loop will become an infinite loop, leading to a logical error in the program.
a. For loop
b. While loop 
c. Do-While loop
d. None of the above

Show Answer ⟶
b. While loop

36. The __________ statement immediately exits a loop, skipping the rest of the loop’s body. Execution continues with the statement immediately following the body of the loop.
a. Break 
b. Continue
c. Exit
d. None of the above

Show Answer ⟶
a. Break

37. When a _________ statement is encountered, the control jumps to the beginning of the loop for the next iteration.
a. Break
b. Continue 
c. Exit
d. None of the above

Show Answer ⟶
b. Continue

38. A loop contained within another loop is called a __________.
a. Another Loop
b. Nested Loop 
c. Next Loop
d. None of the above

Show Answer ⟶
b. Nested Loop

39. Python executes one statement to another statement from starting to end, this is known as ____________.
a. Selection construct
c. Sequential Construct 
b. Iteration Construct
d. All of the above

Show Answer ⟶
c. Sequential Construct

Class 11 Flow of Control MCQ

40. The sequence in which statements in a programme are executed is referred to as ___________.
a. Constant flow
c. Flow of control 
b. Selection flow
d. None of the above

Show Answer ⟶
c. Flow of control

41. There are _______ types of control structures that Python supports.
a. 4
b. 3
c. 2 
a. 1

Show Answer ⟶
c. 2

42. Which of the following is a Python control structure?
a. Iteration
b. Selection
c. Both a) and b) 
d. None of the above

Show Answer ⟶
c. Both a) and b)

43. With the use of a __________ statement, the idea of decision-making or selection is implemented in programming.
a. For loop
b. While loop
c. If & Else 
d. Break & Continue

Show Answer ⟶
c. If & Else

44. A program’s elif count depends on the _____________.
a. Dependent on the condition 
b. Dependent on the writing methods
c. Dependent on the loop
d. None of the above

Show Answer ⟶
a. Dependent on the condition

Class 11 Flow of Control MCQ

45. ________ is an empty statement in Python.
a. Fail
b. Pass 
c. Null
d. None of the above

Show Answer ⟶
b. Pass

46. There are ______ spaces of indentation around a statement inside of “if.”
a. 4 
b. 8
c. 16
d. 20

Show Answer ⟶
a. 4

47. If the condition is True, Amit wants to display “Welcome,” else “Welcome to my webpage” if the condition is false. Which of the following statements makes it easier to put this into practice?
a. For Statement
b. While Statement
c. If & Else Statement 
d. None of the above

Show Answer ⟶
c. If & Else Statement

48. In order to determine if a number is even or odd, Amit wants to develop a programme. He needs to have a solid understanding of _________ to do this.
a. Conditional Statement 
b. Break Statement
c. Continue Statement
d. None of the above

Show Answer ⟶
a. Conditional Statement

49. When if-elif statement is used in python?
a. Only one condition
b. Multiple condition 
c. Never used
d. None of the above

Show Answer ⟶
b. Multiple condition

50. What is the purpose of “else” statement?
a. It will execute when condition is false 
b. It will execute when condition is true
c. It will never execuite.
d. Both a) and b)

Show Answer ⟶
a. It will execute when condition is false
Computer Science Class 11 Notes
Computer Science Class 11 MCQ
Computer Science Class 11 NCERT Solutions

Computer

error: Content is protected !!