Practice Python Boolean MCQs with Answers provided below. The MCQ Questions for [current-page:node:field_class] Boolean [current-page:node:field_subject] with answers and follow the latest [current-page:node:field_board]/ NCERT and KVS patterns. Refer to more Chapter-wise MCQs for [current-page:node:field_board] [current-page:node:field_class] [current-page:node:field_subject] and also download more latest study material for all subjects
MCQ for [current-page:node:field_class] [current-page:node:field_subject] Boolean
[current-page:node:field_class] [current-page:node:field_subject] students should review the 50 questions and answers to strengthen understanding of core concepts in Boolean
Boolean MCQ Questions [current-page:node:field_class] [current-page:node:field_subject] with Answers
Question. What will be the output of the following Python code snippet?
\( \text{bool}(‘False’) \)
\( \text{bool}() \)
(a) True True
(b) False True
(c) False False
(d) True False
Answer: (d)
Explanation: The Boolean function returns true if the argument passed to the bool function does not amount to zero. In the first example, the string ‘False’ is passed to the function bool. This does not amount to zero and hence the output is true. In the second function, an empty list is passed to the function bool. Hence the output is false.
Question. What will be the output of the following Python code snippet?
['hello', 'morning'][\( \text{bool}(‘’) \)]
(a) error
(b) no output
(c) hello
(d) morning
Answer: (c)
Explanation: The line of code shown above can be simplified to state that ‘hello’ should be printed if the argument passed to the Boolean function amounts to zero, else ‘morning’ will be printed.
Question. What will be the output of the following Python code snippet?
\( \text{not}(3>4) \)
\( \text{not}(1\&1) \)
(a) True True
(b) True False
(c) False True
(d) False False
Answer: (b)
Explanation: The function not returns true if the argument amounts to false, and false if the argument amounts to true. Hence the first function returns false, and the second function returns false.
Question. What will be the output of the following Python code?
['f', 't'][\( \text{bool}(‘spam’) \)]
(a) t
(b) f
(c) No output
(d) Error
Answer: (a)
Explanation: The line of code can be translated to state that ‘f’ is printed if the argument passed to the Boolean function amount to zero. Else ‘t’ is printed. The argument given to the Boolean function in the above case is ‘spam’, which does not amount to zero. Hence the output is t.
Question. What will be the output of the following Python code?
\( l=[1, 0, 2, 0, 'hello', '', []] \)
\( \text{list}(\text{filter}(\text{bool}, l)) \)
(a) Error
(b) [1, 0, 2, 0, ‘hello’, ”, []]
(c) [1, 0, 2, ‘hello’, ”, []]
(d) [1, 2, ‘hello’]
Answer: (d)
Explanation: The code shown above returns a new list containing only those elements of the list l which do not amount to zero. Hence the output is: [1, 2, ‘hello’].
Question. What will be the output of the following Python code if the system date is 21st June, 2017 (Wednesday)?
[] or {}
{} or []
(a) [] {}
(b) [] []
(c) {} []
(d) {} {}
Answer: (c)
Explanation: The code shown above shows two functions. In both the cases the right operand is returned. This is because each function is evaluated from left to right. Since the left operand is false, it is assumed that the right operand must be true and hence the right operand is returned in each of the above case.
Question. What will be the output of the following Python code?
class Truth:
pass
x=Truth()
bool(x)
(a) pass
(b) true
(c) false
(d) error
Answer: (b)
Explanation: If the truth method is not defined, the object is considered true. Hence the output of the code shown above is true.
Question. What will be the output of the following Python code?
if \( (9 < 0) \) and \( (0 < -9) \):
print("hello")
elif \( (9 > 0) \) or False:
print("good")
else:
print("bad")
(a) error
(b) hello
(c) good
(d) bad
Answer: (c)
Explanation: The code shown above prints the appropriate option depending on the conditions given. The condition which matches is (9>0), and hence the output is: good.
Question. Which of the following Boolean expressions is not logically equivalent to the other three?
(a) \( \text{not}(-6<0 \text{ or } -6>10) \)
(b) \( -6>=0 \text{ and } -6<=10 \)
(c) \( \text{not}(-6<10 \text{ or } -6==10) \)
(d) \( \text{not}(-6>10 \text{ or } -6==10) \)
Answer: (d)
Explanation: The expression not(-6<0 or -6>10) returns the output False. The expression -6>=0 and -6<=10 returns the output False. The expression not(-6<10 or -6==10) returns the output False. The expression not(-6>10 or -6==10) returns the output True.
Question. What will be the output of the following Python code snippet?
\( \text{not}(10<20) \) and \( \text{not}(10>30) \)
(a) True
(b) False
(c) Error
(d) No output
Answer: (b)
Explanation: The expression not(10<20) returns false. The expression not(10>30) returns true. The and operation between false and true returns false. Hence the output is false.
MCQs for Boolean [current-page:node:field_subject] [current-page:node:field_class]
Students can use these MCQs for Boolean to quickly test their knowledge of the chapter. These multiple-choice questions have been designed as per the latest syllabus for [current-page:node:field_class] [current-page:node:field_subject] released by [current-page:node:field_board]. Our expert teachers suggest that you should practice daily and solving these objective questions of Boolean to understand the important concepts and better marks in your school tests.
Boolean NCERT Based Objective Questions
Our expert teachers have designed these [current-page:node:field_subject] MCQs based on the official NCERT book for [current-page:node:field_class]. We have identified all questions from the most important topics that are always asked in exams. After solving these, please compare your choices with our provided answers. For better understanding of Boolean, you should also refer to our NCERT solutions for [current-page:node:field_class] [current-page:node:field_subject] created by our team.
Online Practice and Revision for Boolean [current-page:node:field_subject]
To prepare for your exams you should also take the [current-page:node:field_class] [current-page:node:field_subject] MCQ Test for this chapter on our website. This will help you improve your speed and accuracy and its also free for you. Regular revision of these [current-page:node:field_subject] topics will make you an expert in all important chapters of your course.
FAQs
You can get most exhaustive Python Boolean MCQs with Answers for free on StudiesToday.com. These MCQs for are updated for the 2026-27 academic session as per examination standards.
Yes, our Python Boolean MCQs with Answers include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the paper is now competency-based.
By solving our Python Boolean MCQs with Answers, students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the .
Yes, MCQs for have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused exams.
Yes, you can also access online interactive tests for Python Boolean MCQs with Answers on StudiesToday.com as they provide instant answers and score to help you track your progress in .